aboutsummaryrefslogtreecommitdiffstats
path: root/event.d/rcS
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-04-25 14:15:52 -0400
committerBill Nottingham <notting@redhat.com>2008-04-25 14:15:52 -0400
commit6d68871c340d80954e1d474c9addc5cb4f30e968 (patch)
tree1ddd345966a0d6e13d3d27c0601d7a803b8b4d42 /event.d/rcS
parent5ec2aa3a9080117be7705c6dc35f94f6099f3f10 (diff)
downloadinitscripts-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
Diffstat (limited to 'event.d/rcS')
-rw-r--r--event.d/rcS2
1 files changed, 1 insertions, 1 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