summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc7
1 files changed, 7 insertions, 0 deletions
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."
OpenPOWER on IntegriCloud