summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-29 20:02:07 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-29 20:02:47 -0400
commitd5b116bb93489aca9cdddfb0c96844c391ded7b5 (patch)
tree828df697a58dcd58f39a334983c8c55354f44023 /etc/rc.initial
parent20afbdfe0bb324386dac86b583d30d0a87ec161a (diff)
downloadpfsense-d5b116bb93489aca9cdddfb0c96844c391ded7b5.zip
pfsense-d5b116bb93489aca9cdddfb0c96844c391ded7b5.tar.gz
Add ! support when invoked from the CDROM boot prompt now for recovery console, installer.
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-xetc/rc.initial11
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."
OpenPOWER on IntegriCloud