SOURCES (AC-branch): bootsplash.init - check $BOOT_SPLASH before r...

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


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

---- Files affected:
SOURCES:
   bootsplash.init (1.2.4.3 -> 1.2.4.4) 

---- Diffs:

================================================================
Index: SOURCES/bootsplash.init
diff -u SOURCES/bootsplash.init:1.2.4.3 SOURCES/bootsplash.init:1.2.4.4
--- SOURCES/bootsplash.init:1.2.4.3	Fri Jul  7 19:35:29 2006
+++ SOURCES/bootsplash.init	Wed Jul 12 09:48:31 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.2.4.3&r2=1.2.4.4&f=u



More information about the pld-cvs-commit mailing list