]> git.pld-linux.org Git - packages/bootsplash.git/blob - bootsplash.init
- leave subsys, no deamon there, just console setting utility
[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         # Check if the service is already running?
25         if [ ! -f /var/lock/subsys/bootsplash ]; then
26                 
27                 for console in $BOOT_SPLASH_CONSOLES; do
28                     msg_starting "bootsplash terminal $console" 
29                     daemon /bin/splash.bin -s -u $console -n "/etc/bootsplash/themes/$THEME/config/bootsplash-$RES.cfg"
30                 done
31                 RETVAL=$?
32                 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bootsplash
33         else
34                 msg_already_running bootsplash
35         fi
36         ;;
37   stop)
38         rm -f /var/lock/subsys/bootsplash
39         ;;
40   *)
41         # show "Usage: %s {start|stop|restart}"
42         msg_usage "$0 {start|stop|restart|reload|force-reload}"
43         exit 3
44 esac
45
46 exit $RETVAL
47
48 # This must be last line !
49 # vi:syntax=sh:tw=78:ts=8:sw=4
This page took 0.198951 seconds and 3 git commands to generate.