~burhanilinux/+junk/plymouth

« back to all changes in this revision

Viewing changes to debian/plymouth.plymouth-log.init

  • Committer: Juzer Dana
  • Date: 2024-01-14 13:03:08 UTC
  • Revision ID: juzerdana@gmail.com-20240114130308-urizjbjhjqmenga6
New Commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
### BEGIN INIT INFO
 
4
# Provides:             plymouth-log
 
5
# Required-Start:       $local_fs $remote_fs
 
6
# Required-Stop:        $local_fs $remote_fs
 
7
# Should-Start:
 
8
# Should-Stop:
 
9
# Default-Start:        S
 
10
# Default-Stop:
 
11
# Short-Description:    Inform plymouth that /var/log is writable
 
12
### END INIT INFO
 
13
 
 
14
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
 
15
NAME="plymouth-log"
 
16
DESC="Boot splash manager (write log file)"
 
17
 
 
18
test -x /usr/bin/plymouth || exit 0
 
19
 
 
20
if [ -r "/etc/default/${NAME}" ]
 
21
then
 
22
        . "/etc/default/${NAME}"
 
23
fi
 
24
 
 
25
. /lib/lsb/init-functions
 
26
 
 
27
set -e
 
28
 
 
29
case "${1}" in
 
30
        start)
 
31
                if plymouth --ping
 
32
                then
 
33
                        /usr/bin/plymouth update-root-fs --read-write
 
34
                fi
 
35
                ;;
 
36
 
 
37
        stop|restart|force-reload)
 
38
 
 
39
                ;;
 
40
 
 
41
        *)
 
42
                echo "Usage: ${0} {start|stop|restart|force-reload}" >&2
 
43
                exit 1
 
44
                ;;
 
45
esac
 
46
 
 
47
exit 0