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

sparky cvs at pld-linux.org
Sun Mar 12 01:24:26 CET 2006


Author: sparky
Date: Sun Mar 12 01:24:20 2006
New Revision: 7147

Modified:
   ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/fbsplash
   ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/functions
Log:
- report all messages on console 12


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	Sun Mar 12 01:24:20 2006
@@ -13,11 +13,11 @@
 	&& die 1 "fbsplash needs high-color frame buffer"
 /sbin/splash_util --vc=0 -c on >/dev/null 2>&1
 
-for TTY in 2 3 4 5 6 7 8; do
+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; do
+for VC in 1 2 3 4 5 6 7 11; do
 	/sbin/splash_util --vc=$VC -m v -t darkblue -c setcfg >/dev/null 2>&1
 	/sbin/splash_util --vc=$VC -c on >/dev/null 2>&1
 done

Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/functions
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/functions	(original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/functions	Sun Mar 12 01:24:20 2006
@@ -34,9 +34,11 @@
 	ERROR=$1
 	shift
 	if [[ "$ERROR" -gt 0 ]]; then
+		echo "$cR${0##*/}: ERROR($ERROR): $*$cE" > /dev/tty12
 		echo "$cR${0##*/}: ERROR($ERROR): $*$cE" > /dev/stderr
 	else
 		ERROR=1
+		echo "$cY${0##*/}: ABORTED: $*$cE" > /dev/tty12
 		echo "$cY${0##*/}: ABORTED: $*$cE" > /dev/stderr
 	fi
 	echo $ERROR > /tmp/sig
@@ -47,6 +49,7 @@
 
 ### warn: show warning on stderr #############################################
 warn() {
+	echo "$cY${0##*/}: Warning: $*$cE" > /dev/tty12
 	echo "$cY${0##*/}: Warning: $*$cE" > /dev/stderr
 }
 
@@ -54,8 +57,7 @@
 ### verbose: display only if verbosity greater than code ($1) ################
 Eopt=
 verbose() {
-	[[ -r /verbose ]] || return
-	[[ $(< /verbose) -ge $1 ]] || return
+	VLEVEL=$1
 	shift
 	Eoptnew=
 	if [[ $1 = -n ]]; then
@@ -76,6 +78,9 @@
 			shift
 			;;
 	esac
+	echo $Eoptnew "<$VLEVEL> ${0##*/}: $color$*$endcol" > /dev/tty12
+	[[ -r /verbose ]] || return
+	[[ $(< /verbose) -ge $VLEVEL ]] || return
 	if [[ $Eopt = -n ]]; then
 		echo $Eoptnew "$color$*$endcol"
 	else


More information about the pld-cvs-commit mailing list