aboutsummaryrefslogtreecommitdiffstats
path: root/init/plymouth-shutdown.conf
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-12-09 16:12:26 -0500
committerBill Nottingham <notting@redhat.com>2009-12-09 16:12:26 -0500
commit12dcbfe79bbc89b23f775bfd847eb53ec17b2971 (patch)
treede4e95b14ec6c0eb0b22450e70861e8c953cfeee /init/plymouth-shutdown.conf
parent307e970174f12e4a808684151f132df1677c3999 (diff)
parent5df584569b80bb8977f181e16b0de47fb4df08f1 (diff)
downloadinitscripts-12dcbfe79bbc89b23f775bfd847eb53ec17b2971.tar
initscripts-12dcbfe79bbc89b23f775bfd847eb53ec17b2971.tar.gz
initscripts-12dcbfe79bbc89b23f775bfd847eb53ec17b2971.tar.bz2
initscripts-12dcbfe79bbc89b23f775bfd847eb53ec17b2971.tar.xz
initscripts-12dcbfe79bbc89b23f775bfd847eb53ec17b2971.zip
Merge branch 'upstart-0.6.0-branch'
Diffstat (limited to 'init/plymouth-shutdown.conf')
-rw-r--r--init/plymouth-shutdown.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/init/plymouth-shutdown.conf b/init/plymouth-shutdown.conf
new file mode 100644
index 00000000..d76dbd3f
--- /dev/null
+++ b/init/plymouth-shutdown.conf
@@ -0,0 +1,24 @@
+# plymouth-shutdown - put up shutdown splash
+#
+# This service triggers plymouth to put up a splash
+# when leaving runlevel 5.
+
+start on stopped prefdm
+
+console output
+script
+ set $(runlevel || true)
+ if [ "$2" != "0" ] && [ "$2" != "6" ]; then
+ exit 0
+ fi
+
+ /sbin/plymouthd --mode=shutdown || 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
+end script
+