From: deejay1 Date: Thu, 25 Dec 2003 13:17:37 +0000 (+0000) Subject: - added script to start bootsplash on userdefined terminals X-Git-Tag: auto/ac/bootsplash-3_1-1~7 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=3bac0e48ba9bac601c87fe29c2a92c255b3ff856;p=packages%2Fbootsplash.git - added script to start bootsplash on userdefined terminals - BEWARE: you can't stop it :> Changed files: bootsplash.init -> 1.1 --- diff --git a/bootsplash.init b/bootsplash.init new file mode 100644 index 0000000..a57d2d7 --- /dev/null +++ b/bootsplash.init @@ -0,0 +1,61 @@ +#!/bin/sh +# +# bootsplash bootsplashed console +# +# chkconfig: 345 99 99 +# +# description: Activate bootsplashed consoles +# +# $Id$ + + +# Source function library +. /etc/rc.d/init.d/functions + +# Set defaults +RES=`fbresolution` + +# Get service config - may override defaults +[ -f /etc/sysconfig/bootsplash ] && . /etc/sysconfig/bootsplash + +# See how we were called. +case "$1" in + start) + # Check if the service is already running? + if [ ! -f /var/lock/subsys/bootsplash ]; then + + for console in $BOOT_SPLASH_CONSOLES; do + msg_starting "bootsplash terminal $console" + daemon /bin/splash.bin -s -u $console "/etc/bootsplash/themes/$THEME/config/bootsplash-$RES.cfg" + done + RETVAL=$? + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bootsplash + else + msg_already_running bootsplash + fi + ;; + stop) + if [ -f /var/lock/subsys/bootsplash ]; then + # Stop daemons. + msg_stopping bootsplash + #killproc bootsplash + rm -f /var/lock/subsys/bootsplash + else + msg_not_running bootsplash + fi + ;; + restart) + $0 stop + $0 start + exit $? + ;; + *) + # show "Usage: %s {start|stop|restart}" + msg_usage "$0 {start|stop|restart}" + exit 3 +esac + +exit $RETVAL + +# This must be last line ! +# vi:syntax=sh:tw=78:ts=8:sw=4