svn commit: r245706 - head/release
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Mon Jan 21 01:55:54 UTC 2013
Author: nwhitehorn
Date: Mon Jan 21 01:55:54 2013
New Revision: 245706
URL: http://svnweb.freebsd.org/changeset/base/245706
Log:
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.
Modified:
head/release/rc.local
Modified: head/release/rc.local
==============================================================================
--- head/release/rc.local Mon Jan 21 01:46:36 2013 (r245705)
+++ head/release/rc.local Mon Jan 21 01:55:54 2013 (r245706)
@@ -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
More information about the svn-src-all
mailing list