ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/fbsplash

sparky cvs at pld-linux.org
Thu Jul 13 20:37:15 CEST 2006


Author: sparky
Date: Thu Jul 13 20:37:15 2006
New Revision: 7515

Modified:
   ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/fbsplash
Log:
- try 32bit-color first
- simplified


Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/fbsplash
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/fbsplash	(original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/fbsplash	Thu Jul 13 20:37:15 2006
@@ -10,21 +10,19 @@
 verbose 1 -G "Trying to start fbsplash"
 
 /sbin/splash_util --vc=0 -m v -t ppcrcd -c setcfg >/dev/null 2>&1
-if /sbin/splash_util --vc=0 -m v -t ppcrcd -c setpic 2>&1 \
-		| grep -q "No 8bpp"; then
-	/usr/bin/fbset -depth 15 -a || /usr/bin/fbset -depth 16 -a || \
-		die 1 "can't change frame buffer color depth"
-	{ /sbin/splash_util --vc=0 -m v -t ppcrcd -c setpic || \
-		die 2 "something's wrong with with fbsplash"; } \
-		| grep -q "No 8bpp" && die 3 "HiColor frame buffer needed"
-fi
+
+/usr/bin/fbset -depth 32 -a || \
+	/usr/bin/fbset -depth 16 -a || \
+	/usr/bin/fbset -depth 15 -a
+
+{ /sbin/splash_util --vc=0 -m v -t ppcrcd -c setpic || \
+	die 2 "something's wrong with with fbsplash"; } \
+	| grep -q "No 8bpp" && die 3 "HiColor frame buffer needed"
+
 /sbin/splash_util --vc=0 -c on >/dev/null 2>&1
 
 for TTY in 2 3 4 5 6 7 8 12; do
 	echo -n > /dev/tty$TTY;
-done
-
-for VC in 1 2 3 4 5 6 7 11; do
-	/sbin/splash_util --vc=$VC -m v -t ppcrcd -c setcfg >/dev/null 2>&1
-	/sbin/splash_util --vc=$VC -c on >/dev/null 2>&1
+	/sbin/splash_util --tty=$TTY -m v -t ppcrcd -c setcfg >/dev/null 2>&1
+	/sbin/splash_util --tty=$TTY -c on >/dev/null 2>&1
 done


More information about the pld-cvs-commit mailing list