SOURCES: bootsplash.init - check $BOOT_SPLASH before running

havner havner at pld-linux.org
Wed Jul 12 09:48:10 CEST 2006


Author: havner                       Date: Wed Jul 12 07:48:10 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- check $BOOT_SPLASH before running

---- Files affected:
SOURCES:
   bootsplash.init (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/bootsplash.init
diff -u SOURCES/bootsplash.init:1.8 SOURCES/bootsplash.init:1.9
--- SOURCES/bootsplash.init:1.8	Fri Jul  7 19:35:00 2006
+++ SOURCES/bootsplash.init	Wed Jul 12 09:48:04 2006
@@ -21,10 +21,12 @@
 # See how we were called.
 case "$1" in
   start|restart|reload|force-reload)
-	for console in $BOOT_SPLASH_CONSOLES; do
-	    msg_starting "bootsplash terminal $console"	
-	    daemon /bin/splash.bin -s -u $console -n "/etc/bootsplash/themes/$THEME/config/bootsplash-$RES.cfg"
-	done
+	if is_yes "$BOOT_SPLASH"; then
+	    for console in $BOOT_SPLASH_CONSOLES; do
+		msg_starting "bootsplash terminal $console"	
+		daemon /bin/splash.bin -s -u $console -n "/etc/bootsplash/themes/$THEME/config/bootsplash-$RES.cfg"
+	    done
+	fi
 	;;
   stop)
   	exit 0
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/bootsplash.init?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list