From 223e493d66ec7d1a71c3a9b06257dc3b7e97adc7 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 21 Mar 2012 01:15:13 +0100 Subject: [PATCH] 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 --- packages/sysutils/busybox/config/profile | 3 +++ packages/sysutils/busybox/scripts/init | 2 +- .../sysutils/splashutils/init.d/03_splash | 20 ++++++++++--------- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/packages/sysutils/busybox/config/profile b/packages/sysutils/busybox/config/profile index 61e5cbc3ab..ee89d870c0 100644 --- a/packages/sysutils/busybox/config/profile +++ b/packages/sysutils/busybox/config/profile @@ -39,6 +39,9 @@ fastboot) FASTBOOT=yes ;; + nosplash) + SPLASH=no + ;; esac done diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 1e094b61a5..72bb30ea20 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -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 diff --git a/packages/sysutils/splashutils/init.d/03_splash b/packages/sysutils/splashutils/init.d/03_splash index 68f5ed16bd..dbb4719365 100644 --- a/packages/sysutils/splashutils/init.d/03_splash +++ b/packages/sysutils/splashutils/init.d/03_splash @@ -23,14 +23,16 @@ # # runlevels: openelec, installer, textmode -progress "starting splash" - mkdir -p /run/splash/cache/ - fbsplashd --theme=default --type=bootup +if [ ! "$SPLASH" = "no" ]; then + progress "starting splash" + mkdir -p /run/splash/cache/ + fbsplashd --theme=default --type=bootup - echo "set tty silent 2" > /run/splash/cache/.splash - echo "set tty verbose 6" > /run/splash/cache/.splash - echo "set mode silent" > /run/splash/cache/.splash - echo "set message `lsb_release`" > /run/splash/cache/.splash - echo "repaint" > /run/splash/cache/.splash - chvt 2 + echo "set tty silent 2" > /run/splash/cache/.splash + echo "set tty verbose 6" > /run/splash/cache/.splash + echo "set mode silent" > /run/splash/cache/.splash + echo "set message `lsb_release`" > /run/splash/cache/.splash + echo "repaint" > /run/splash/cache/.splash + chvt 2 +fi