diff options
-rw-r--r-- | event.d/plymouth-shutdown | 24 | ||||
-rw-r--r-- | event.d/quit-plymouth | 1 | ||||
-rw-r--r-- | initscripts.spec | 3 |
3 files changed, 27 insertions, 1 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 + diff --git a/event.d/quit-plymouth b/event.d/quit-plymouth index 7f12c230..13ac3880 100644 --- a/event.d/quit-plymouth +++ b/event.d/quit-plymouth @@ -5,6 +5,7 @@ # this completes before the getty starts. # prefdm handles quit differently, though. +start on runlevel S start on stopping rc2 start on stopping rc3 start on stopping rc4 diff --git a/initscripts.spec b/initscripts.spec index 613ab74a..3afa3841 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -28,12 +28,13 @@ Requires: ethtool >= 1.8-2, /sbin/runuser Requires: udev >= 125-1 Requires: popt >= 1.12-2 Requires: cpio -Conflicts: mkinitrd < 4.0, kernel < 2.6.12, mdadm < 2.6.4-3 +Conflicts: mkinitrd < 4.0, kernel < 2.6.12, mdadm < 3.0-0.devel3.1 Conflicts: ypbind < 1.6-12, psacct < 6.3.2-12, kbd < 1.06-19, lokkit < 0.50-14 Conflicts: dhclient < 3.0.3-7 Conflicts: tcsh < 6.13-5 Conflicts: xorg-x11, glib2 < 2.11.1-2 Conflicts: alsa-utils < 1.0.18 +Conflicts: plymouth < 0.7.0-0.2009.02.26 # http://bugzilla.redhat.com/show_bug.cgi?id=252973 Conflicts: nut < 2.2.0 Obsoletes: hotplug |