Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
# splash-manager - requests splash screen
2
#
3
# This service emits a splash-request event when
4
# its time to put up the plymouth splash
5
#
6
# Do not edit this file directly. If you want to change the behaviour,
7
# please create a file splash-manager.override and put your changes there.
8
 
9
start on starting rc RUNLEVEL=[06]
10
task
11
 
12
console output
13
script
14
        if [ "$RUNLEVEL" = "0" ]; then
15
                MESSAGE=$"Shutting down..."
16
        elif [ "$RUNLEVEL" = "6" ]; then
17
                MESSAGE=$"Restarting..."
18
        fi
19
	if initctl status prefdm 2>/dev/null | grep -q stop/waiting; then
20
                initctl emit splash-request IMMEDIATE=1 MODE=shutdown MESSAGE="$MESSAGE"
21
        else
22
                initctl emit splash-request MODE=shutdown MESSAGE="$MESSAGE"
23
        fi
24
end script
25