source: projects/initscripts/trunk/init/splash-manager.conf @ 2988

Revision 2988, 643 bytes checked in by daisuke, 13 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
6start on starting rc RUNLEVEL=[06]
7task
8
9console output
10script
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
21end script
22
Note: See TracBrowser for help on using the repository browser.