]>
Commit | Line | Data |
---|---|---|
90c5ca2a | 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 | |
19988949 | 23 | start|restart|reload|force-reload) |
5486492f | 24 | for console in $BOOT_SPLASH_CONSOLES; do |
25 | msg_starting "bootsplash terminal $console" | |
26 | daemon /bin/splash.bin -s -u $console -n "/etc/bootsplash/themes/$THEME/config/bootsplash-$RES.cfg" | |
27 | done | |
90c5ca2a | 28 | ;; |
29 | stop) | |
5486492f | 30 | exit 0 |
90c5ca2a | 31 | ;; |
32 | *) | |
33 | # show "Usage: %s {start|stop|restart}" | |
19988949 | 34 | msg_usage "$0 {start|stop|restart|reload|force-reload}" |
90c5ca2a | 35 | exit 3 |
36 | esac | |
37 | ||
38 | exit $RETVAL | |
39 | ||
40 | # This must be last line ! | |
41 | # vi:syntax=sh:tw=78:ts=8:sw=4 |