From d5b116bb93489aca9cdddfb0c96844c391ded7b5 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 29 May 2009 20:02:07 -0400 Subject: Add ! support when invoked from the CDROM boot prompt now for recovery console, installer. --- etc/rc.initial | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/etc/rc.initial b/etc/rc.initial index 2852c92..53d440f 100755 --- a/etc/rc.initial +++ b/etc/rc.initial @@ -10,6 +10,17 @@ product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4` + +# If recovery console shell option has been specified +if [ -f "/tmp/donotbootup" ]; then + /usr/bin/env prompt="%B[%n@%m]%b%/(%h)||RecoveryConsoleShell: " /bin/tcsh + rm "/tmp/donotbootup" + echo "Rebooting in 5 seconds... CTRL-C to abort..." + sleep 5 + /etc/rc.reboot + exit +fi + if [ -e /usr/local/etc/rc.d/dev_bootstrap.sh ]; then echo echo "A developer bootstrap is most likely in progress." -- cgit v1.1