Revision 1108,
610 bytes
checked in by daisuke, 14 years ago
(diff) |
import initscripts-8.90.6 from internal cvs repository
|
Rev | Line | |
---|
[1108] | 1 | # plymouth-shutdown - put up shutdown splash |
---|
| 2 | # |
---|
| 3 | # This service triggers plymouth to put up a splash |
---|
| 4 | # when leaving runlevel 5. |
---|
| 5 | |
---|
| 6 | start on stopped prefdm |
---|
| 7 | |
---|
| 8 | console output |
---|
| 9 | script |
---|
| 10 | set $(runlevel || true) |
---|
| 11 | if [ "$2" != "0" ] && [ "$2" != "6" ]; then |
---|
| 12 | exit 0 |
---|
| 13 | fi |
---|
| 14 | |
---|
| 15 | /sbin/plymouthd --mode=reboot || exit 1 |
---|
| 16 | /bin/plymouth --sysinit |
---|
| 17 | /bin/plymouth --show-splash |
---|
| 18 | if [ "$2" = "0" ]; then |
---|
| 19 | /bin/plymouth message --text="Shutting down..." |
---|
| 20 | elif [ "$2" = "6" ]; then |
---|
| 21 | /bin/plymouth message --text="Restarting..." |
---|
| 22 | fi |
---|
| 23 | end script |
---|
| 24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.