aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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