summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-18 19:18:12 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-18 19:18:12 -0400
commit2bc1456bce54940c94cc7a049a49a36b16c06581 (patch)
treec8229a08e80b0655312df3e2e4accea90f5b1623 /etc/rc.initial
parent519d2f032ffc01bc2c14055d978f5faddec3c652 (diff)
downloadpfsense-2bc1456bce54940c94cc7a049a49a36b16c06581.zip
pfsense-2bc1456bce54940c94cc7a049a49a36b16c06581.tar.gz
Do not keep respawning to shell on exit. Alert box is rebooting in 5, sleep for 5 to allow CTRL-C
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-xetc/rc.initial4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.initial b/etc/rc.initial
index 1b1b468..1d2490d 100755
--- a/etc/rc.initial
+++ b/etc/rc.initial
@@ -3,6 +3,10 @@
# 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
OpenPOWER on IntegriCloud