aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/slugos-init/files/initscripts/leds_startup
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/slugos-init/files/initscripts/leds_startup')
-rw-r--r--recipes/slugos-init/files/initscripts/leds_startup11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/slugos-init/files/initscripts/leds_startup b/recipes/slugos-init/files/initscripts/leds_startup
new file mode 100644
index 0000000000..945d75bd02
--- /dev/null
+++ b/recipes/slugos-init/files/initscripts/leds_startup
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Bug fix: during the initial boot sysvinit sets PREVLEVEL to
+# nothing in rcS and to 'N' in the transition from rcS to the
+# user state. This script runs on that transition and, if
+# the PREVLEVEL is 'N', sets 'previous' (as in /etc/init.d/rc)
+# to 'S'
+if test "$PREVLEVEL" = N
+then
+ previous=S exec /etc/init.d/zleds stop
+fi
+exit 0