diff options
Diffstat (limited to 'event.d/rcS-sulogin')
-rw-r--r-- | event.d/rcS-sulogin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/event.d/rcS-sulogin b/event.d/rcS-sulogin index 59a0b4d3..70cf67cc 100644 --- a/event.d/rcS-sulogin +++ b/event.d/rcS-sulogin @@ -14,7 +14,7 @@ script end script post-stop script if [ "$1" = "S" ]; then - runlevel=$(/bin/awk -F ':' '$3 == "initdefault" { print $2 }' /etc/inittab) + runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab) [ -z "$runlevel" ] && runlevel="3" exec telinit $runlevel fi |