aboutsummaryrefslogtreecommitdiffstats
path: root/init/splash-manager.conf
diff options
context:
space:
mode:
Diffstat (limited to 'init/splash-manager.conf')
-rw-r--r--init/splash-manager.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/init/splash-manager.conf b/init/splash-manager.conf
new file mode 100644
index 00000000..8e3299cf
--- /dev/null
+++ b/init/splash-manager.conf
@@ -0,0 +1,23 @@
+# splash-manager - requests splash screen
+#
+# This service emits a splash-request event when
+# its time to put up the plymouth splash
+
+start on starting rc RUNLEVEL=[06]
+task
+
+console output
+script
+ if [ "$RUNLEVEL" = "0" ]; then
+ MESSAGE=$"Shutting down..."
+ elif [ "$RUNLEVEL" = "6" ]; then
+ MESSAGE=$"Restarting..."
+ fi
+ initctl status prefdm 2>/dev/null > /tmp/cowcow
+ if cat /tmp/cowcow | grep -q stop/waiting; then
+ initctl emit splash-request IMMEDIATE=1 MODE=shutdown MESSAGE="$MESSAGE"
+ else
+ initctl emit splash-request MODE=shutdown MESSAGE="$MESSAGE"
+ fi
+end script
+