diff options
author | Bill Nottingham <notting@redhat.com> | 2008-04-25 14:15:52 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-04-25 14:15:52 -0400 |
commit | 6d68871c340d80954e1d474c9addc5cb4f30e968 (patch) | |
tree | 1ddd345966a0d6e13d3d27c0601d7a803b8b4d42 | |
parent | 5ec2aa3a9080117be7705c6dc35f94f6099f3f10 (diff) | |
download | initscripts-6d68871c340d80954e1d474c9addc5cb4f30e968.tar initscripts-6d68871c340d80954e1d474c9addc5cb4f30e968.tar.gz initscripts-6d68871c340d80954e1d474c9addc5cb4f30e968.tar.bz2 initscripts-6d68871c340d80954e1d474c9addc5cb4f30e968.tar.xz initscripts-6d68871c340d80954e1d474c9addc5cb4f30e968.zip |
Import from event-compat-sysv-0.3.9-13.fc9
- Use the proper field in /etc/inittab
-rw-r--r-- | event.d/rcS | 2 | ||||
-rw-r--r-- | event.d/rcS-sulogin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/event.d/rcS b/event.d/rcS index f040b1e6..728ae396 100644 --- a/event.d/rcS +++ b/event.d/rcS @@ -16,7 +16,7 @@ script /etc/rc.d/rc.sysinit runlevel --reboot || true - runlevel=$(/bin/awk -F ':' '/^id:/ { print $2 }' /etc/inittab) + runlevel=$(/bin/awk -F ':' '$3 == "initdefault" { print $2 }' /etc/inittab) [ -z "$runlevel" ] && runlevel="3" for t in $(cat /proc/cmdline); do case $t in diff --git a/event.d/rcS-sulogin b/event.d/rcS-sulogin index 5125fc41..1a2f49e2 100644 --- a/event.d/rcS-sulogin +++ b/event.d/rcS-sulogin @@ -12,7 +12,7 @@ script runlevel --set S >/dev/null || true /bin/bash - runlevel=$(/bin/awk -F ':' '/^id:/ { print $2 }' /etc/inittab) + runlevel=$(/bin/awk -F ':' '$3 == "initdefault" { print $2 }' /etc/inittab) [ -z "$runlevel" ] && runlevel="3" telinit $runlevel end script |