splashutils: add option to disable splash on boot, this can give us a 2-3sec faster boot, to disable add 'nosplash' (without quotes) to the kernel commandline in your bootloader config

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-03-21 01:15:13 +01:00
parent 3b0c4c8189
commit 223e493d66
3 changed files with 15 additions and 10 deletions

View File

@ -39,6 +39,9 @@
fastboot)
FASTBOOT=yes
;;
nosplash)
SPLASH=no
;;
esac
done

View File

@ -31,7 +31,7 @@ fi
export CONSOLE=/dev/tty3
# starting framebuffer if it still not exist
if [ ! -e /dev/fb0 ]; then
if [ ! -e /dev/fb0 -a ! "$SPLASH" = "no" ]; then
modprobe uvesafb mode_option=1920x1080-32 mtrr=3 scroll=ywrap
fi

View File

@ -23,7 +23,8 @@
#
# runlevels: openelec, installer, textmode
progress "starting splash"
if [ ! "$SPLASH" = "no" ]; then
progress "starting splash"
mkdir -p /run/splash/cache/
fbsplashd --theme=default --type=bootup
@ -33,4 +34,5 @@ progress "starting splash"
echo "set message `lsb_release`" > /run/splash/cache/.splash
echo "repaint" > /run/splash/cache/.splash
chvt 2
fi