]> git.pld-linux.org Git - packages/bootsplash.git/commitdiff
- added script to start bootsplash on userdefined terminals
authordeejay1 <deejay1@pld-linux.org>
Thu, 25 Dec 2003 13:17:37 +0000 (13:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- BEWARE: you can't stop it :>

Changed files:
    bootsplash.init -> 1.1

bootsplash.init [new file with mode: 0644]

diff --git a/bootsplash.init b/bootsplash.init
new file mode 100644 (file)
index 0000000..a57d2d7
--- /dev/null
@@ -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
This page took 0.052717 seconds and 4 git commands to generate.