diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-29 20:02:07 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-29 20:02:47 -0400 |
commit | d5b116bb93489aca9cdddfb0c96844c391ded7b5 (patch) | |
tree | 828df697a58dcd58f39a334983c8c55354f44023 | |
parent | 20afbdfe0bb324386dac86b583d30d0a87ec161a (diff) | |
download | pfsense-d5b116bb93489aca9cdddfb0c96844c391ded7b5.zip pfsense-d5b116bb93489aca9cdddfb0c96844c391ded7b5.tar.gz |
Add ! support when invoked from the CDROM boot prompt now for recovery console, installer.
-rwxr-xr-x | etc/rc.initial | 11 |
1 files changed, 11 insertions, 0 deletions
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." |