diff options
Diffstat (limited to 'etc/rc.initial')
-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." |