diff --git a/build.sdcard/raspbianStretchDesktop.sh b/build.sdcard/raspbianStretchDesktop.sh index 323a35e..f68e469 100644 --- a/build.sdcard/raspbianStretchDesktop.sh +++ b/build.sdcard/raspbianStretchDesktop.sh @@ -190,6 +190,7 @@ lndVersion="0.4.2-beta" olaoluwaPGP="65317176B6857F98834EDBE8964EA263DD637C21" # setup public ip service +cat > ./getpublicip.sh < /usr/local/bin/getpublicip.sh +sudo mv ./getpublicip.sh /usr/local/bin/getpublicip.sh sudo chmod +x /usr/local/bin/getpublicip.sh -getPubliIPService='' read -r -d '' String <<"EOF" +cat > ./getpublicip.service < /etc/systemd/system/getpublicip.service +sudo mv ./getpublicip.service /etc/systemd/system/getpublicip.service sudo systemctl enable getpublicip sudo systemctl start getpublicip @@ -310,13 +311,12 @@ sudo bash -c "echo '# automatic start the LCD info loop' >> /home/pi/.bashrc" sudo bash -c "echo '/home/admin/00infoLCD.sh' >> /home/pi/.bashrc" # create /home/pi/setup.sh - which will get executed after reboot by autologin pi user -afterSetupScript='' read -r -d '' String <<"EOF" +cat > /home/pi/setup.sh < /home/pi/setup.sh sudo chmod +x /home/pi/setup.sh # *** RASPIBLITZ IMAGE READY *** diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index fa365fd..338ffea 100755 --- a/home.admin/00infoLCD.sh +++ b/home.admin/00infoLCD.sh @@ -4,9 +4,11 @@ if [ "$USER" = "pi" ]; then # check for after setup script afterSetupScriptExists=$(ls /home/pi/setup.sh 2>/dev/null | grep -c setup.sh) if [ ${afterSetupScriptExists} -eq 1 ]; then + echo "*** SETUP SCRIPT DETECTED ***" + sudo cat /home/pi/setup.sh sudo /home/pi/setup.sh sudo rm /home/pi/setup.sh - dialog --pause " ... one more reboot needed ... " 8 58 6 + echo "DONE wait 6 secs ... one more reboot needed ... " sudo shutdown -r now fi