5
# Required-Start: udev $remote_fs $all
6
# Required-Stop: $remote_fs
7
# Should-Start: $x-display-manager
8
# Should-Stop: $x-display-manager
9
# Default-Start: 2 3 4 5
11
# Short-Description: Stop plymouth during boot and start it on shutdown
14
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
16
DESC="Boot splash manager"
18
test -x /usr/sbin/plymouthd || exit 0
20
if [ -r "/etc/default/${NAME}" ]
22
. "/etc/default/${NAME}"
25
. /lib/lsb/init-functions
30
for ARGUMENT in $(cat /proc/cmdline)
37
nosplash*|plymouth.enable=0)
47
/usr/bin/plymouth quit --retain-splash
57
/usr/sbin/plymouthd --mode=shutdown
60
RUNLEVEL="$(/sbin/runlevel | cut -d " " -f 2)"
64
TEXT="Shutting down system..."
68
TEXT="Restarting system..."
72
/usr/bin/plymouth message --text="${TEXT}"
74
/usr/bin/plymouth --show-splash
84
echo "Usage: ${0} {start|stop|restart|force-reload}" >&2