From e0e018e4a3d86e3abd83457ca220680deafdb503 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Fri, 21 Feb 2020 10:10:14 -0600 Subject: [PATCH] update rtc install method --- build-a-pi | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/build-a-pi b/build-a-pi index ca2f440..b4eb8fa 100644 --- a/build-a-pi +++ b/build-a-pi @@ -139,17 +139,10 @@ 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 +touch $HOME/RTC +#NOTE: Reboot is required before we can install. We are simply enabling i2c interface & +#writing an emptyfile that we can check for in the second part of the install fi if [ $HOTSPOT = "yes" ] > /dev/null 2>&1