aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
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