From 1976bd3a90394ec585e12058acdcc40b30fd1b07 Mon Sep 17 00:00:00 2001 From: Yossi Date: Thu, 30 Nov 2017 16:18:34 +0200 Subject: [PATCH] fix typo in RTC setup --- stage2/01-sys-tweaks/01-run.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 4b5f075..3a139bb 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -327,12 +327,26 @@ sudo update-rc.d -f fake-hwclock remove # copy new file to sudo wget https://dride.io/code/hwclock-set -sudo cp dhcpd.conf /lib/udev/hwclock-set +sudo cp hwclock-set /lib/udev/hwclock-set sudo rm hwclock-set # we will sync the current date form the app using BLE # looks at /daemon/bluetooth/updateDate.js + +echo "========== Setup Accelerometer ============" +# http://www.stuffaboutcode.com/2014/06/raspberry-pi-adxl345-accelerometer.html +# enable i2c 0 +echo "dtparam=i2c_vc=on" >> /boot/config.txt + + + + + + + + + echo "========== Install Dride-core [Cardigan] ============" cd /home # https://s3.amazonaws.com/dride/releases/cardigan/latest.zip