Changeset View
Changeset View
Standalone View
Standalone View
release/rc.local
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | $BSDDIALOG_OK) # Install | ||||
dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null` | dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null` | ||||
if [ ${dlv:=0} -eq 0 -a ! -f /etc/diskless ]; then | if [ ${dlv:=0} -eq 0 -a ! -f /etc/diskless ]; then | ||||
BSDINSTALL_CONFIGCURRENT=yes; export BSDINSTALL_CONFIGCURRENT | BSDINSTALL_CONFIGCURRENT=yes; export BSDINSTALL_CONFIGCURRENT | ||||
fi | fi | ||||
trap true SIGINT # Ignore cntrl-C here | trap true SIGINT # Ignore cntrl-C here | ||||
bsdinstall | bsdinstall | ||||
if [ $? -eq 0 ]; then | 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 | else | ||||
. /etc/rc.local | . /etc/rc.local | ||||
fi | fi | ||||
;; | ;; | ||||
$BSDDIALOG_CANCEL) # Live CD | $BSDDIALOG_CANCEL) # Live CD | ||||
exit 0 | exit 0 | ||||
;; | ;; | ||||
$BSDDIALOG_EXTRA) # Shell | $BSDDIALOG_EXTRA) # Shell | ||||
clear | clear | ||||
echo "When finished, type 'exit' to return to the installer." | echo "When finished, type 'exit' to return to the installer." | ||||
/bin/sh | /bin/sh | ||||
. /etc/rc.local | . /etc/rc.local | ||||
;; | ;; | ||||
esac | esac | ||||