diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-03-02 16:06:57 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-03-02 16:06:57 +0000 |
commit | 1319d944839227480c97d3d5eee61fe5507e169e (patch) | |
tree | 4dcb8b748798d8d0d6cc4311f2fabd54037282e3 /release/rc.local | |
parent | 9a3121eeae0f0ebddf0b8b95b1cc81498bc03aa5 (diff) | |
download | FreeBSD-src-1319d944839227480c97d3d5eee61fe5507e169e.zip FreeBSD-src-1319d944839227480c97d3d5eee61fe5507e169e.tar.gz |
Add additional release makefile for bsdinstall-based media, along with
support files. This does not change the default behavior of anything.
To make bsdinstall-based media, pre-build world and GENERIC, then run
the release target in Makefile.bsdinstall.
Diffstat (limited to 'release/rc.local')
-rwxr-xr-x | release/rc.local | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/release/rc.local b/release/rc.local new file mode 100755 index 0000000..24285e0 --- /dev/null +++ b/release/rc.local @@ -0,0 +1,33 @@ +#!/bin/sh +# $FreeBSD$ + +: ${DIALOG_OK=0} +: ${DIALOG_CANCEL=1} +: ${DIALOG_HELP=2} +: ${DIALOG_EXTRA=3} +: ${DIALOG_ITEM_HELP=4} +: ${DIALOG_ESC=255} + +TERM=xterm; export TERM # XXX: serial consoles + +dialog --backtitle "FreeBSD Installer" --title "Welcome" --extra-button --extra-label "Shell" --ok-label "Install" --cancel-label "Live CD" --yesno "Welcome to FreeBSD! Would you like to begin an installation or use the live CD?" 0 0 + +case $? in +$DIALOG_OK) # Install + BSDINSTALL_CONFIGCURRENT=yes; export BSDINSTALL_CONFIGCURRENT + trap true SIGINT # Ignore cntrl-C here + bsdinstall + dialog --backtitle "FreeBSD Installer" --title "Complete" --msgbox "Installation of FreeBSD complete! The system will now reboot." 0 0 + reboot + ;; +$DIALOG_CANCEL) # Live CD + exit 0 + ;; +$DIALOG_EXTRA) # Shell + clear + echo "When finished, type 'exit' to return to the installer." + /bin/sh + . /etc/rc.local + ;; +esac + |