]> git.pld-linux.org Git - packages/bootsplash.git/blame - bootsplash.init
- leave subsys, no deamon there, just console setting utility
[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)
90c5ca2a 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)
19988949 38 rm -f /var/lock/subsys/bootsplash
90c5ca2a 39 ;;
40 *)
41 # show "Usage: %s {start|stop|restart}"
19988949 42 msg_usage "$0 {start|stop|restart|reload|force-reload}"
90c5ca2a 43 exit 3
44esac
45
46exit $RETVAL
47
48# This must be last line !
49# vi:syntax=sh:tw=78:ts=8:sw=4
This page took 0.092537 seconds and 4 git commands to generate.