Update 'Installer.sh'
Fixed timer end
This commit is contained in:
parent
bf955b86f9
commit
e3c01ef7dc
14
Installer.sh
14
Installer.sh
@ -578,6 +578,13 @@ sed -i -e "s/%name%/$NAME/g" /etc/profile.d/greeting.sh
|
|||||||
mkdir -p /opt/backups/timestamps/
|
mkdir -p /opt/backups/timestamps/
|
||||||
echo "Installed on: $DATE" > /opt/backups/timestamps/OS.update
|
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
|
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
|
whiptail --title "Done!" --msgbox "Please insert the Zigbee Dongle into a USB 2.0 port. Press OK to continue." 8 78
|
||||||
fi
|
fi
|
||||||
@ -599,13 +606,6 @@ if [[ $OPTIONS == *"Homer"* ]]; then
|
|||||||
fi
|
fi
|
||||||
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
|
if grep -q "ssid=" /etc/wpa_supplicant/wpa_supplicant.conf
|
||||||
then
|
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
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user