aboutsummaryrefslogtreecommitdiffstats
path: root/init/plymouth-shutdown.conf
diff options
context:
space:
mode:
Diffstat (limited to 'init/plymouth-shutdown.conf')
-rw-r--r--init/plymouth-shutdown.conf17
1 files changed, 4 insertions, 13 deletions
diff --git a/init/plymouth-shutdown.conf b/init/plymouth-shutdown.conf
index e251286f..49010848 100644
--- a/init/plymouth-shutdown.conf
+++ b/init/plymouth-shutdown.conf
@@ -3,23 +3,14 @@
# This service triggers plymouth to put up a splash
# when leaving runlevel 5.
-start on stopped prefdm
-task
+start on (splash-request IMMEDIATE=1) or (splash-request and stopped prefdm)
+task
console output
script
- set $(runlevel || true)
- if [ "$2" != "0" ] && [ "$2" != "6" ]; then
- exit 0
- fi
-
- /sbin/plymouthd --mode=shutdown || exit 1
+ /sbin/plymouthd --mode="$MODE" || exit 1
/bin/plymouth --sysinit
/bin/plymouth --show-splash
- if [ "$2" = "0" ]; then
- /bin/plymouth message --text="Shutting down..."
- elif [ "$2" = "6" ]; then
- /bin/plymouth message --text="Restarting..."
- fi
+ /bin/plymouth message --text="$MESSAGE"
end script