From 34bb5b72bcfcda3f5d112db2ad4183504c4fb5c9 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 30 May 2009 18:08:29 -0400 Subject: Forgotten emergency shell commit. --- etc/rc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'etc/rc') diff --git a/etc/rc b/etc/rc index 5845800..8e99d85 100755 --- a/etc/rc +++ b/etc/rc @@ -280,6 +280,13 @@ cp /usr/local/lib/php.ini /usr/local/etc/php.ini echo -n "Launching PHP init system..." /etc/rc.bootup +# If a shell was selected from recovery +# console then just drop to the shell now. +if [ -f "/tmp/donotbootup" ]; then + echo "Dropping to recovery shell." + exit 0 +fi + echo -n "Starting CRON... " cd /tmp && /usr/sbin/cron -s 2>/dev/null echo "done." -- cgit v1.1