]> git.pld-linux.org Git - packages/bootsplash.git/blame - bootsplash.init
- x32 rebuild
[packages/bootsplash.git] / bootsplash.init
CommitLineData
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
16RES=`fbresolution`
17
18# Get service config - may override defaults
19[ -f /etc/sysconfig/bootsplash ] && . /etc/sysconfig/bootsplash
20
21# See how we were called.
22case "$1" in
19988949 23 start|restart|reload|force-reload)
fd01194b 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
90c5ca2a 30 ;;
31 stop)
5486492f 32 exit 0
90c5ca2a 33 ;;
34 *)
35 # show "Usage: %s {start|stop|restart}"
19988949 36 msg_usage "$0 {start|stop|restart|reload|force-reload}"
90c5ca2a 37 exit 3
38esac
39
40exit $RETVAL
41
42# This must be last line !
43# vi:syntax=sh:tw=78:ts=8:sw=4
This page took 0.066566 seconds and 4 git commands to generate.