Revision 2988,
643 bytes
checked in by daisuke, 14 years ago
(diff) |
update upstart scripts
|
Line | |
---|
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 | start on starting rc RUNLEVEL=[06] |
---|
7 | task |
---|
8 | |
---|
9 | console output |
---|
10 | script |
---|
11 | if [ "$RUNLEVEL" = "0" ]; then |
---|
12 | MESSAGE=$"Shutting down..." |
---|
13 | elif [ "$RUNLEVEL" = "6" ]; then |
---|
14 | MESSAGE=$"Restarting..." |
---|
15 | fi |
---|
16 | if initctl status prefdm 2>/dev/null | grep -q stop/waiting; then |
---|
17 | initctl emit splash-request IMMEDIATE=1 MODE=shutdown MESSAGE="$MESSAGE" |
---|
18 | else |
---|
19 | initctl emit splash-request MODE=shutdown MESSAGE="$MESSAGE" |
---|
20 | fi |
---|
21 | end script |
---|
22 | |
---|
Note: See
TracBrowser
for help on using the repository browser.