diff options
author | Florent Villard <warly@mandriva.com> | 2003-09-05 16:36:52 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2003-09-05 16:36:52 +0000 |
commit | 9816d2833ef67f53e3ad75ce5464f1056eb92634 (patch) | |
tree | b36c28adcd770dbf199eb07d49439c44606c64cc /scripts/splash.sh | |
parent | e09c2acf70224a1c3a10a751dbb8b984448559eb (diff) | |
download | bootsplash-9816d2833ef67f53e3ad75ce5464f1056eb92634.tar bootsplash-9816d2833ef67f53e3ad75ce5464f1056eb92634.tar.gz bootsplash-9816d2833ef67f53e3ad75ce5464f1056eb92634.tar.bz2 bootsplash-9816d2833ef67f53e3ad75ce5464f1056eb92634.tar.xz bootsplash-9816d2833ef67f53e3ad75ce5464f1056eb92634.zip |
Apply 64bit patches from gb
Diffstat (limited to 'scripts/splash.sh')
-rw-r--r-- | scripts/splash.sh | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/scripts/splash.sh b/scripts/splash.sh index 90ead3c..d7e68f9 100644 --- a/scripts/splash.sh +++ b/scripts/splash.sh @@ -26,10 +26,10 @@ else fi gprintf() { - # request translations to be always in UTF-8 with OUTPUT_CHARSET=UTF-8 - if [ -x /bin/gettext -a -n "$1" ]; then + # request translations to be always in UTF-8 + if [ -x /bin/gettext -a -n "$1" ]; then if [ -n "$GP_LANG" ]; then - TEXT=`OUTPUT_CHARSET=UTF-8 LANGUAGE=$GP_LANG LANG=$LANGUAGE gettext -e --domain=$TEXTDOMAIN "$1"` + TEXT=`OUTPUT_CHARSET=UTF-8 LANGUAGE=$GP_LANG LANG=$GP_LANG gettext -e --domain=$TEXTDOMAIN "$1"` else TEXT=`OUTPUT_CHARSET=UTF-8 LANG=$LANGUAGE gettext -e --domain=$TEXTDOMAIN "$1"` fi @@ -57,7 +57,7 @@ fi _shutdown="no" _silent="no" -grep -q silent /proc/cmdline && _silent="yes" +grep -q silent /proc/cmdline && grep -q silent /proc/splash && _silent="yes" test "$runlevel" == "6" -o "$runlevel" == "0" && _shutdown="yes" if [ "$1" == "verbose" ]; then @@ -186,7 +186,7 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then fi _boot=$TEXT if [ "$text_x" != "" -a "$text_y" != "" \ - -a "$text_color" != "" -a "$text_size" != "" -a "$_silent" == "yes" ]; then + -a "$text_color" != "" -a "$text_size" != "" -a "$_silent" == "yes" -o "$_shutdown" == "yes" ]; then gprintf "Press Esc for verbose mode." fbtruetype.static -x $text_x -y $text_y -t $text_color -s $text_size \ $custom_font "$_boot $TEXT" @@ -196,5 +196,3 @@ fi # Paint progressbar.. test -z "$progress_enable" && exit 0 echo "show $(( 65534 * ( $progress + 1 ) / $num ))" > /proc/splash - - |