Fix RTC issues
This commit is contained in:
parent
386dfdf443
commit
ffc73f3aba
|
@ -211,11 +211,12 @@ sudo apt-get install python-smbus i2c-tools -y
|
||||||
|
|
||||||
|
|
||||||
# add to /boot/config.txt
|
# add to /boot/config.txt
|
||||||
echo "dtoverlay=i2c-rtc,ds3231,dwc2" >> /boot/config.txt
|
echo "dtoverlay=i2c-rtc,ds1307" >> /boot/config.txt
|
||||||
echo "dtparam=i2c_arm=on" >> /boot/config.txt
|
echo "dtparam=i2c_arm=on" >> /boot/config.txt
|
||||||
|
|
||||||
# add to /boot/config.txt
|
# add to /boot/config.txt
|
||||||
echo "i2c-dev" >> /etc/modules
|
echo "i2c-dev" >> /etc/modules
|
||||||
|
echo "rtc-ds1307" >> /etc/modules
|
||||||
|
|
||||||
|
|
||||||
# Remove hw-clock
|
# Remove hw-clock
|
||||||
|
|
|
@ -14,9 +14,12 @@
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
echo "Setting up HwClock"
|
||||||
|
sudo hwclock -s
|
||||||
|
|
||||||
echo "Starting dride-core"
|
echo "Starting dride-core"
|
||||||
#blink LED
|
#blink LED
|
||||||
sudo python /home/Cardigan/modules/indicators/python/states/standalone.py welcome
|
sudo python /home/Cardigan/modules/indicators/python/states/standalone.py welcome
|
||||||
|
|
||||||
# decode undecoded clips on startup
|
# decode undecoded clips on startup
|
||||||
sudo node /home/Cardigan/modules/video/helpers/ensureAllClipsAreDecoded.js &
|
sudo node /home/Cardigan/modules/video/helpers/ensureAllClipsAreDecoded.js &
|
||||||
|
|
Loading…
Reference in New Issue
Block a user