Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/startbsdinstall
- This file was copied from release/rc.local.
Property | Old Value | New Value |
---|---|---|
File Mode | 100755 | 100644 |
#!/bin/sh | #!/bin/sh | ||||
# $FreeBSD$ | |||||
: ${BSDDIALOG_OK=0} | : ${BSDDIALOG_OK=0} | ||||
: ${BSDDIALOG_CANCEL=1} | : ${BSDDIALOG_CANCEL=1} | ||||
: ${BSDDIALOG_HELP=2} | : ${BSDDIALOG_HELP=2} | ||||
: ${BSDDIALOG_EXTRA=3} | : ${BSDDIALOG_EXTRA=3} | ||||
: ${BSDDIALOG_ESC=5} | : ${BSDDIALOG_ESC=5} | ||||
: ${BSDDIALOG_ERROR=255} | : ${BSDDIALOG_ERROR=255} | ||||
# resolv.conf from DHCP ends up in here, so make sure the directory exists | |||||
mkdir /tmp/bsdinstall_etc | |||||
kbdcontrol -d >/dev/null 2>&1 | kbdcontrol -d >/dev/null 2>&1 | ||||
if [ $? -eq 0 ]; then | if [ $? -eq 0 ]; then | ||||
# Syscons: use xterm, start interesting things on other VTYs | # Syscons: use xterm, start interesting things on other VTYs | ||||
TERM=xterm | TERM=xterm | ||||
# Don't send ESC on function-key 62/63 (left/right command key) | # Don't send ESC on function-key 62/63 (left/right command key) | ||||
kbdcontrol -f 62 '' > /dev/null 2>&1 | kbdcontrol -f 62 '' > /dev/null 2>&1 | ||||
kbdcontrol -f 63 '' > /dev/null 2>&1 | kbdcontrol -f 63 '' > /dev/null 2>&1 | ||||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | if [ $? -eq 0 ]; then | ||||
$BSDDIALOG_EXTRA) # Shutdown | $BSDDIALOG_EXTRA) # Shutdown | ||||
shutdown -p now | shutdown -p now | ||||
;; | ;; | ||||
$BSDDIALOG_CANCEL) # Live CD | $BSDDIALOG_CANCEL) # Live CD | ||||
exit 0 | exit 0 | ||||
;; | ;; | ||||
esac | esac | ||||
else | else | ||||
. /etc/rc.local | . "$0" | ||||
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 | . "$0" | ||||
;; | ;; | ||||
esac | esac | ||||