add rtc install

pull/21/head
KM4ACK 2020-02-21 10:09:55 -06:00
rodzic a4730ae3fc
commit 9b6b4edd9b
1 zmienionych plików z 13 dodań i 4 usunięć

Wyświetl plik

@ -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