aboutsummaryrefslogtreecommitdiffstats
path: root/event.d/serial
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-04-09 17:00:57 -0400
committerBill Nottingham <notting@redhat.com>2008-04-09 17:00:57 -0400
commit8159d78bb7d57483673da0bfbf49f74fd1671fec (patch)
tree2f2f14c76e586543ff672414f482a17945c33e5b /event.d/serial
parent1e610b947935fa07f427c06bb0490d92ab67a0ae (diff)
downloadinitscripts-8159d78bb7d57483673da0bfbf49f74fd1671fec.tar
initscripts-8159d78bb7d57483673da0bfbf49f74fd1671fec.tar.gz
initscripts-8159d78bb7d57483673da0bfbf49f74fd1671fec.tar.bz2
initscripts-8159d78bb7d57483673da0bfbf49f74fd1671fec.tar.xz
initscripts-8159d78bb7d57483673da0bfbf49f74fd1671fec.zip
Fix serial to wait for rcS to complete as well
runlevel isn't actually set when udev is run. Oops.
Diffstat (limited to 'event.d/serial')
-rw-r--r--event.d/serial4
1 files changed, 4 insertions, 0 deletions
diff --git a/event.d/serial b/event.d/serial
index 80695338..6869090e 100644
--- a/event.d/serial
+++ b/event.d/serial
@@ -4,6 +4,10 @@ stop on runlevel [016]
instance
pre-start script
+ while /bin/true ; do
+ LANG=C /sbin/initctl status rcS | grep -wq "rcS (stop) waiting" && break
+ sleep 1
+ done
while /bin/true ; do
runlevel=$(/sbin/runlevel | /bin/awk '{ print $2 }')
case "$runlevel" in