diff options
author | Bill Nottingham <notting@redhat.com> | 2009-03-19 12:50:44 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-03-19 12:50:44 -0400 |
commit | a79cd004b1212125f1bb8f2b6d72065aa7505c4e (patch) | |
tree | fdf2b826ea2b313a1bb3e30c60962242498b3227 /event.d/plymouth-shutdown | |
parent | 67e59d33e57d4c8feba356320bead2451cbb921b (diff) | |
download | initscripts-a79cd004b1212125f1bb8f2b6d72065aa7505c4e.tar initscripts-a79cd004b1212125f1bb8f2b6d72065aa7505c4e.tar.gz initscripts-a79cd004b1212125f1bb8f2b6d72065aa7505c4e.tar.bz2 initscripts-a79cd004b1212125f1bb8f2b6d72065aa7505c4e.tar.xz initscripts-a79cd004b1212125f1bb8f2b6d72065aa7505c4e.zip |
Add plymouth shutdown script (#473237)
Diffstat (limited to 'event.d/plymouth-shutdown')
-rw-r--r-- | event.d/plymouth-shutdown | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/event.d/plymouth-shutdown b/event.d/plymouth-shutdown new file mode 100644 index 00000000..d76dbd3f --- /dev/null +++ b/event.d/plymouth-shutdown @@ -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 + |