From 1c4dbf5d73b2131245332e44b74c2449fc85a1a6 Mon Sep 17 00:00:00 2001 From: David Baudens Date: Fri, 2 Aug 2002 09:39:20 +0000 Subject: Sync CVS with sources available in Cooker --- scripts/make-boot-splash | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'scripts/make-boot-splash') diff --git a/scripts/make-boot-splash b/scripts/make-boot-splash index f31047e..0690c41 100755 --- a/scripts/make-boot-splash +++ b/scripts/make-boot-splash @@ -43,11 +43,12 @@ fi if [[ -n $image ]];then if [[ -z $config ]];then - echo "Can't find a config files for $resolution"; + echo "Can't find a config files for resolution $resolution"; exit 1; fi else #no image - echo "Can't find images for $resolution"; + echo "Can't find images for resolution $resolution"; + exit 1 fi # From SuSe mk_initrd script @@ -56,15 +57,16 @@ function out_byte() let x=$1 echo -en "`printf \\\\%o $x`" } + function write_int() { - let tmp1=($1 & 255) - let tmp2=($1>>8) - let tmp2=($tmp2&255) - let tmp3=($1>>16) - let tmp3=($tmp3&255) - let tmp4=($1>>24) - let tmp4=($tmp4&255) + let tmp1=$[$1 & 255] + let tmp2=$[$1>>8] + let tmp2=$[$tmp2&255] + let tmp3=$[$1>>16] + let tmp3=$[$tmp3&255] + let tmp4=$[$1>>24] + let tmp4=$[$tmp4&255] out_byte $tmp1 out_byte $tmp2 out_byte $tmp3 @@ -72,8 +74,8 @@ function write_int() } function write_short() { - let tmp1=($1>>8) - let tmp2=($1&0xff) + let tmp1=$[$1>>8] + let tmp2=$[$1&0xff] out_byte $tmp2 out_byte $tmp1 } -- cgit v1.2.1