mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
installer: allow halting after install
PR: https://github.com/opnsense/installer/issues/20
This commit is contained in:
parent
60f297f5a6
commit
c8871daa07
@ -29,16 +29,25 @@ if [ "$(id -u)" != "0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! bsdinstall opnsense; then
|
||||
clear
|
||||
exit 0
|
||||
fi
|
||||
bsdinstall opnsense
|
||||
|
||||
RET=${?}
|
||||
|
||||
clear
|
||||
|
||||
ACTION=Rebooting
|
||||
FINAL=reboot
|
||||
|
||||
if [ ${RET} -eq 0 ]; then
|
||||
exit 0
|
||||
elif [ ${RET} -eq 42 ]; then
|
||||
ACTION=Halting
|
||||
FINAL="halt -p"
|
||||
fi
|
||||
|
||||
echo "The installation finished successfully."
|
||||
echo
|
||||
echo "After reboot, open a web browser and navigate to"
|
||||
echo "After booting, open a web browser and navigate to"
|
||||
echo "https://192.168.1.1 (or the LAN IP address). The console"
|
||||
echo "can also be used to set a different LAN IP."
|
||||
echo
|
||||
@ -56,4 +65,4 @@ done
|
||||
|
||||
echo
|
||||
|
||||
reboot
|
||||
${FINAL}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user