add real time clock

pull/21/head
KM4ACK 2020-02-21 09:34:17 -06:00
rodzic c4ef044781
commit 8204d612f1
1 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -137,6 +137,21 @@ MAIN
source $MYDIR/config
if [ $RTC = "yes" ] > /dev/null 2>&1
then
echo "##################################################"
echo "##########INSTALLING REAL TIME CLOCK"
echo "##################################################"
sleep 2
echo;echo;echo "Please be sure the real time clock is installed on the GPIO pins"
read -n 1 -s -r -p "Press any key to continue once the RTC is installed"
sudo sed -i 's/#dtparam=i2c_arm=on/dtparam=i2c_arm=on/' /boot/config.txt
sleep 1
cd $DIR
wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/rtc
bash $DIR/rtc
fi
if [ $HOTSPOT = "yes" ] > /dev/null 2>&1
then
echo;echo;echo