aboutsummaryrefslogtreecommitdiffstats
path: root/init/rcS.conf
diff options
context:
space:
mode:
Diffstat (limited to 'init/rcS.conf')
-rw-r--r--init/rcS.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/rcS.conf b/init/rcS.conf
index 51d52312..6f2e7d17 100644
--- a/init/rcS.conf
+++ b/init/rcS.conf
@@ -15,7 +15,7 @@ console output
exec /etc/rc.d/rc.sysinit
post-stop script
if [ "$UPSTART_EVENTS" = "startup" ]; then
- runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
+ [ -f /etc/inittab ] && runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
[ -z "$runlevel" ] && runlevel="3"
for t in $(cat /proc/cmdline); do
case $t in