]> git.pld-linux.org Git - packages/bootsplash.git/blob - bootsplash.init
- x32 rebuild
[packages/bootsplash.git] / bootsplash.init
1 #!/bin/sh
2 #
3 # bootsplash    bootsplashed console
4 #
5 # chkconfig:    345 99 99
6 #
7 # description:  Activate bootsplashed consoles
8 #
9 # $Id$
10
11
12 # Source function library
13 . /etc/rc.d/init.d/functions
14
15 # Set defaults
16 RES=`fbresolution`
17
18 # Get service config - may override defaults
19 [ -f /etc/sysconfig/bootsplash ] && . /etc/sysconfig/bootsplash
20
21 # See how we were called.
22 case "$1" in
23   start|restart|reload|force-reload)
24         if is_yes "$BOOT_SPLASH"; then
25             for console in $BOOT_SPLASH_CONSOLES; do
26                 msg_starting "bootsplash terminal $console"     
27                 daemon /bin/splash.bin -s -u $console -n "/etc/bootsplash/themes/$THEME/config/bootsplash-$RES.cfg"
28             done
29         fi
30         ;;
31   stop)
32         exit 0
33         ;;
34   *)
35         # show "Usage: %s {start|stop|restart}"
36         msg_usage "$0 {start|stop|restart|reload|force-reload}"
37         exit 3
38 esac
39
40 exit $RETVAL
41
42 # This must be last line !
43 # vi:syntax=sh:tw=78:ts=8:sw=4
This page took 0.092667 seconds and 3 git commands to generate.