1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

switch to using dash via sh

This commit is contained in:
Jerry Vonau 2022-07-18 20:33:08 -05:00
parent e6155e6a86
commit 700cdc9a07

View file

@ -1,20 +1,29 @@
#!/bin/bash #!/bin/sh
if ! [ -f /etc/iiab/install-flags/iiab-network-complete ]; then if [ -f /etc/iiab/install-flags/iiab-network-complete ]; then
zenity --question --width=200 --text="You need to provision the network. Ensure you have your upstream internet active first. You might be prompted for your password. Should you not want to provision the network at this time just click NO" exit
rc=$? fi
if [ $rc == "1" ]; then
exit 0 zenity --question --width=350 --text="IIAB needs to configure networking:\n\n► Internet must be live before you begin.\n►You might be prompted for your password.\n\nContinue?"
fi case $? in
x-terminal-emulator -e /usr/local/bin/iiab-network -1|5)
rc=$? exit 1
if [ $rc == "1" ]; then ;;
zenity --question --width=200 --text="Network exited with error, please review /opt/iiab/iiab/iiab-network.log"
exit 1 1)
fi exit 0
zenity --question --width=200 --text="A REBOOT is recommended, would you like to REBOOT now?" ;;
rc=$?
if [ $rc == "1" ]; then 0)
exit 0 x-terminal-emulator -e /usr/local/bin/iiab-network
fi ;;
x-terminal-emulator -e /usr/sbin/reboot esac
if [ "$?" = "1" ]; then
zenity --warning --width=350 --text="iiab-network exited with error.\n\nPlease review /opt/iiab/iiab/iiab-network.log"
exit 1
fi
zenity --question --width=350 --text="iiab-network complete.\n\nWould you like to REBOOT now? (Recommended)"
if [ "$?" = "0" ]; then
x-terminal-emulator -e "sudo reboot"
fi fi