aboutsummaryrefslogtreecommitdiff
path: root/release/rc.local
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2013-01-21 01:55:54 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2013-01-21 01:55:54 +0000
commit4ba25c5ab2e12774cece28528495425c31484656 (patch)
treefe78017de025e0e8185fa13dc1fb61c598dacfa6 /release/rc.local
parent23dbd4334ab8f097879efeaef8e1c9a29b9c9768 (diff)
downloadsrc-4ba25c5ab2e12774cece28528495425c31484656.tar.gz
src-4ba25c5ab2e12774cece28528495425c31484656.zip
More automated install support: if a script exists at /etc/installerconfig,
point the installer there and then reboot without asking questions. This design subject to future change.
Notes
Notes: svn path=/head/; revision=245706
Diffstat (limited to 'release/rc.local')
-rwxr-xr-xrelease/rc.local11
1 files changed, 11 insertions, 0 deletions
diff --git a/release/rc.local b/release/rc.local
index b1f9b19c2253..29663e441a0d 100755
--- a/release/rc.local
+++ b/release/rc.local
@@ -45,6 +45,17 @@ else
fi
export TERM
+if [ -f /etc/installerconfig ]; then
+ bsdinstall script /etc/installerconfig
+ if [ $? -eq 0]; then
+ dialog --backtitle "FreeBSD Installer" --title "Complete" --no-cancel --ok-label "Reboot" --pause "Installation of FreeBSD complete! Rebooting in 10 seconds" 10 30 10
+ reboot
+ else
+ dialog --backtitle "FreeBSD Installer" --title "Error" --textbox /tmp/bsdinstall_log 0 0
+ fi
+ exit
+fi
+
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