summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-15 20:58:59 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-15 20:58:59 -0400
commitc1da5030f3552a3c0afb3c157be696a20b34f753 (patch)
tree61bf209a70df71a66c4df087dee1d849e9368732 /etc/rc
parent540bd3139adbb009f23e21d7b84bfed958f4a48a (diff)
downloadpfsense-c1da5030f3552a3c0afb3c157be696a20b34f753.zip
pfsense-c1da5030f3552a3c0afb3c157be696a20b34f753.tar.gz
* Reboot after installation from recovery console
* Add ! drop to shell option and bypass bootup
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 0b18ad0..579a4e9 100755
--- a/etc/rc
+++ b/etc/rc
@@ -299,6 +299,13 @@ rm -f /cf/conf/backup/backup.cache
rm -f /root/lighttpd*
/etc/rc.bootup
+# If a shell was selected from recovery
+# console then just drop to the shell now.
+if [ -f "/tmp/donotbootup" ]; then
+ echo "\nDropping to recovery shell.\n\n"
+ exit 0
+fi
+
echo -n "Starting CRON... "
cd /tmp && /usr/sbin/cron -s 2>/dev/null
echo "done."
OpenPOWER on IntegriCloud