aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2004-08-31 08:37:16 +0000
committerFlorent Villard <warly@mandriva.com>2004-08-31 08:37:16 +0000
commite9f3128412957b0025bf13ef2594ddc6b3c32be6 (patch)
tree15e09c61276e2d9de2f01bc60a12593ecc3fa2d7 /scripts
parentbdbfcf19a5896cf99890b97f7c6b0758785240d8 (diff)
downloadbootsplash-e9f3128412957b0025bf13ef2594ddc6b3c32be6.tar
bootsplash-e9f3128412957b0025bf13ef2594ddc6b3c32be6.tar.gz
bootsplash-e9f3128412957b0025bf13ef2594ddc6b3c32be6.tar.bz2
bootsplash-e9f3128412957b0025bf13ef2594ddc6b3c32be6.tar.xz
bootsplash-e9f3128412957b0025bf13ef2594ddc6b3c32be6.zip
Reset the screen if non latin1 font is used with /usr on a separate partition
Diffstat (limited to 'scripts')
-rw-r--r--scripts/splash.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/splash.sh b/scripts/splash.sh
index e7c4c68..e7027ab 100644
--- a/scripts/splash.sh
+++ b/scripts/splash.sh
@@ -79,7 +79,7 @@ if [ "$1" == "stop" -a $_shutdown == "no" ]; then
for i in 0 1 2 3 4 5
do
if [[ -f /etc/bootsplash/themes/$theme/config/vt$i-$res.cfg ]]; then
- splash -s -u $i /etc/bootsplash/themes/$theme/config/vt$i-$res.cfg
+ /sbin/splash -s -u $i /etc/bootsplash/themes/$theme/config/vt$i-$res.cfg
fi
done
fi
@@ -186,6 +186,12 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
echo "silent" >/proc/splash
chvt 1
else
+ if [ "$font" != "default" -a "$progress" != "1" -a -d /usr/share/bootsplash ]; then
+ if [[ -f /etc/bootsplash/themes/$theme/config/bootsplash-$res.cfg ]]; then
+ /sbin/splash -s -u 0 /etc/bootsplash/themes/$theme/config/bootsplash-$res.cfg
+ echo "show $(( 65534 * ( $progress + 1 ) / $num ))" > /proc/splash
+ fi
+ fi
gprintf "Booting the system..."
fi
_boot=$TEXT