|
@@ -39,11 +39,11 @@ if ! grep "i2c-dev" /etc/modules ; then sudo bash -c 'echo "i2c-dev" >>/etc/modu
|
|
|
if ! grep "i2c-bcm2708" /etc/modules ; then sudo bash -c 'echo "i2c-bcm2708" >>/etc/modules';fi
|
|
|
if ! grep "rtc-ds1307" /etc/modules ; then sudo bash -c 'echo "rtc-ds1307" >>/etc/modules';fi
|
|
|
if ! grep "rtc-pcf8563" /etc/modules ; then sudo bash -c 'echo "rtc-pcf8563" >>/etc/modules';fi
|
|
|
-if ! grep "dtoverlay=i2c-rtc,pcf8563" /boot/config.txt >/dev/null
|
|
|
+if ! grep "dtoverlay=i2c-rtc,ds1307" /boot/config.txt >/dev/null
|
|
|
then
|
|
|
sudo bash -c 'echo "" >>/boot/config.txt'
|
|
|
-sudo bash -c 'echo "# RTC clock pcf8563 based" >>/boot/config.txt'
|
|
|
-sudo bash -c 'echo "dtoverlay=i2c-rtc,pcf8563" >>/boot/config.txt'
|
|
|
+sudo bash -c 'echo "# RTC clock ds1307 based" >>/boot/config.txt'
|
|
|
+sudo bash -c 'echo "dtoverlay=i2c-rtc,ds1307" >>/boot/config.txt'
|
|
|
fi
|
|
|
echo -e "\n\e[31mFirst step of RTC install was done.\e[0m"
|
|
|
echo -e "\e[31mYou need to reboot and start rtc.sh again!\n\e[0m"
|