Page MenuHomeFreeBSD

D36560.diff
No OneTemporary

D36560.diff

diff --git a/release/rc.local b/release/rc.local
--- a/release/rc.local
+++ b/release/rc.local
@@ -74,7 +74,19 @@
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

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 26, 4:20 PM (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12846009
Default Alt Text
D36560.diff (876 B)

Event Timeline