SOURCES: splashutils.init - splash neutral (try: fbcondecor, fbspl...
glen
glen at pld-linux.org
Thu Apr 24 03:00:51 CEST 2008
Author: glen Date: Thu Apr 24 01:00:51 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- splash neutral (try: fbcondecor, fbsplash)
---- Files affected:
SOURCES:
splashutils.init (1.8 -> 1.9)
---- Diffs:
================================================================
Index: SOURCES/splashutils.init
diff -u SOURCES/splashutils.init:1.8 SOURCES/splashutils.init:1.9
--- SOURCES/splashutils.init:1.8 Tue Nov 6 15:28:31 2007
+++ SOURCES/splashutils.init Thu Apr 24 03:00:45 2008
@@ -1,10 +1,10 @@
#!/bin/sh
#
-# fbsplash fbsplashed console
+# splash splashed console
#
# chkconfig: 345 98 98
#
-# description: Activate fbsplashed consoles
+# description: Activate splashed consoles
#
# $Id$
@@ -13,49 +13,50 @@
. /etc/rc.d/init.d/functions
# Set defaults
-RES="`/usr/bin/fbres`"
+RES=$(/usr/bin/fbres)
# Get service config - may override defaults
-[ -f /etc/sysconfig/fbsplash ] && . /etc/sysconfig/fbsplash
+[ -f /etc/sysconfig/splash ] && . /etc/sysconfig/splash
-test -z "${SPLASH_THEME}" && SPLASH_THEME="default"
-test -z "${SPLASH_TTYS}" && SPLASH_TTYS="0 1 2 3 4 5 6 7"
+test -z "$SPLASH_THEME" && SPLASH_THEME="default"
+test -z "$SPLASH_TTYS" && SPLASH_TTYS="0 1 2 3 4 5 6 7"
start() {
# Check if the service is already running?
- if [ ! -f /var/lock/subsys/fbsplash ]; then
- if [ -e /dev/fbsplash ] && [ -e /proc/sys/kernel/fbsplash ] && [ -f /etc/splash/${SPLASH_THEME}/${RES}.cfg ]; then
+ if [ ! -f /var/lock/subsys/splash ]; then
+ for engine in fbcondecor fbsplash; do
+ if [ ! -e /dev/$engine ] || [ ! -e /proc/sys/kernel/$engine ] || [ ! -f /etc/splash/$SPLASH_THEME/$RES.cfg ]; then
+ continue
+ fi
show "Setting framebuffer console images for theme '%s'" $SPLASH_THEME; busy
- for TTY in ${SPLASH_TTYS}; do
- theme="${SPLASH_THEME}"
+ for TTY in $SPLASH_TTYS; do
+ theme=$SPLASH_THEME
- if [ -n "${SPLASH_TTY_MAP}" ]; then
- for i in ${SPLASH_TTY_MAP}; do
- if [ "${i%:*}" = "${TTY}" ]; then
+ if [ -n "$SPLASH_TTY_MAP" ]; then
+ for i in $SPLASH_TTY_MAP; do
+ if [ "${i%:*}" = "$TTY" ]; then
theme="${i#*:}"
fi
done
-
fi
- /sbin/splash_util --vc="${TTY}" -m v -t "${theme}" -c setcfg 2>/dev/null
- [ "${TTY}" -eq 0 ] && /sbin/splash_util --vc=0 -m v -t "${theme}" -c setpic
- /sbin/splash_util --vc="${TTY}" -c on 2>/dev/null
-
+ /sbin/splash_util --vc="$TTY" -m v -t "$theme" -c setcfg 2>/dev/null
+ [ "${TTY}" -eq 0 ] && /sbin/splash_util --vc=0 -m v -t "$theme" -c setpic
+ /sbin/splash_util --vc="$TTY" -c on 2>/dev/null
done
ok
- touch /var/lock/subsys/fbsplash
- fi
+ done
+ touch /var/lock/subsys/splash
else
- msg_already_running fbsplash
+ msg_already_running splash
fi
}
stop() {
- if [ -f /var/lock/subsys/fbsplash ]; then
- rm -f /var/lock/subsys/fbsplash
+ if [ -f /var/lock/subsys/splash ]; then
+ rm -f /var/lock/subsys/splash
else
- msg_not_running fbsplash
+ msg_not_running splash
fi
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/splashutils.init?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list