From 9b6b4edd9bb685ed9e40d490fe226d7213bb4599 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Fri, 21 Feb 2020 10:09:55 -0600 Subject: [PATCH] add rtc install --- addon-build-a-pi | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/addon-build-a-pi b/addon-build-a-pi index b2ec70a..f8b26a0 100644 --- a/addon-build-a-pi +++ b/addon-build-a-pi @@ -16,13 +16,22 @@ CALL=$(cat $MYDIR/callsign.txt) touch $LOG -if [ $WHO = "root" ] +RTC=$(ls $HOME | grep RTC) +if [ -z "$RTC" ] then -echo "No need for sudo with this script" -exit 0 +echo +else +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" +cd $DIR +wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/rtc +bash $DIR/rtc fi - ########################################## MAIN () { yad --height=600 --width=400 --center --list --checklist --column=Install --column=App --separator="," --text "Select the apps you wish to install." --title="Build-a-Pi by KM4ACK" --button="Exit:1" --button="Install Selected:2" < $MYDIR/addon-app-list > $MYDIR/appchoices