diff --git a/Installer.sh b/Installer.sh index cbc0f2d..d18a502 100644 --- a/Installer.sh +++ b/Installer.sh @@ -578,6 +578,13 @@ sed -i -e "s/%name%/$NAME/g" /etc/profile.d/greeting.sh mkdir -p /opt/backups/timestamps/ echo "Installed on: $DATE" > /opt/backups/timestamps/OS.update +if [[ $Timer == "yes" ]]; then + timewhendone=$(date +"%T") + echo "Setup started at: $timewhenstarted" + echo "Setup finished at: $timewhendone" + read -p "Press enter to continue" +fi + if [[ $OPTIONS == *"Zigbee2MQTT"* ]]; then whiptail --title "Done!" --msgbox "Please insert the Zigbee Dongle into a USB 2.0 port. Press OK to continue." 8 78 fi @@ -599,13 +606,6 @@ if [[ $OPTIONS == *"Homer"* ]]; then fi fi -if [[ $Timer == "yes" ]]; then - timewhendone=$(date +"%T") - echo "Setup started at: $timewhenstarted" - echo "Setup finished at: $timewhendone" - read -p "Press enter to continue" -fi - if grep -q "ssid=" /etc/wpa_supplicant/wpa_supplicant.conf then whiptail --title "Done!" --msgbox "The Raspberry Pi will shutdown,\nplease remove the LAN cable before starting up again.\n\nPress OK to continue." 10 78