aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2022-09-14 13:03:22 +0000
committerBen Woods <woodsb02@FreeBSD.org>2022-09-17 00:07:25 +0000
commite4505364c08764e7d7d70b1a0ce7de7fb041de62 (patch)
tree72e0b9fa7f21fe4ee4b97d87652057bfbb65fff5 /release
parent0e2af3b59a1517521e9fb3aab61fa06e5ce25c2c (diff)
downloadsrc-e4505364c08764e7d7d70b1a0ce7de7fb041de62.tar.gz
src-e4505364c08764e7d7d70b1a0ce7de7fb041de62.zip
Diffstat (limited to 'release')
-rwxr-xr-xrelease/rc.local14
1 files changed, 13 insertions, 1 deletions
diff --git a/release/rc.local b/release/rc.local
index 0b8df48b2085..94f8927989f5 100755
--- a/release/rc.local
+++ b/release/rc.local
@@ -74,7 +74,19 @@ $BSDDIALOG_OK) # Install
trap true SIGINT # Ignore cntrl-C here
bsdinstall
if [ $? -eq 0 ]; then
- bsddialog --backtitle "FreeBSD Installer" --title "Complete" --yes-label "Reboot" --no-label "Live CD" --yesno "Installation of FreeBSD complete! Would you like to reboot into the installed system now?" 0 0 && reboot
+ bsddialog --backtitle "FreeBSD Installer" --title "Complete" --ok-label "Reboot" --extra-button --extra-label "Shutdown" --cancel-label "Live CD" --yesno "Installation of FreeBSD complete! Would you like to reboot into the installed system now?" 0 0
+
+ case $? in
+ $BSDDIALOG_OK) # Reboot
+ reboot
+ ;;
+ $BSDDIALOG_EXTRA) # Shutdown
+ shutdown -p now
+ ;;
+ $BSDDIALOG_CANCEL) # Live CD
+ exit 0
+ ;;
+ esac
else
. /etc/rc.local
fi