mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
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:
parent
3b0c4c8189
commit
223e493d66
@ -39,6 +39,9 @@
|
|||||||
fastboot)
|
fastboot)
|
||||||
FASTBOOT=yes
|
FASTBOOT=yes
|
||||||
;;
|
;;
|
||||||
|
nosplash)
|
||||||
|
SPLASH=no
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ fi
|
|||||||
export CONSOLE=/dev/tty3
|
export CONSOLE=/dev/tty3
|
||||||
|
|
||||||
# starting framebuffer if it still not exist
|
# 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
|
modprobe uvesafb mode_option=1920x1080-32 mtrr=3 scroll=ywrap
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -23,14 +23,16 @@
|
|||||||
#
|
#
|
||||||
# runlevels: openelec, installer, textmode
|
# runlevels: openelec, installer, textmode
|
||||||
|
|
||||||
progress "starting splash"
|
if [ ! "$SPLASH" = "no" ]; then
|
||||||
mkdir -p /run/splash/cache/
|
progress "starting splash"
|
||||||
fbsplashd --theme=default --type=bootup
|
mkdir -p /run/splash/cache/
|
||||||
|
fbsplashd --theme=default --type=bootup
|
||||||
|
|
||||||
echo "set tty silent 2" > /run/splash/cache/.splash
|
echo "set tty silent 2" > /run/splash/cache/.splash
|
||||||
echo "set tty verbose 6" > /run/splash/cache/.splash
|
echo "set tty verbose 6" > /run/splash/cache/.splash
|
||||||
echo "set mode silent" > /run/splash/cache/.splash
|
echo "set mode silent" > /run/splash/cache/.splash
|
||||||
echo "set message `lsb_release`" > /run/splash/cache/.splash
|
echo "set message `lsb_release`" > /run/splash/cache/.splash
|
||||||
echo "repaint" > /run/splash/cache/.splash
|
echo "repaint" > /run/splash/cache/.splash
|
||||||
chvt 2
|
chvt 2
|
||||||
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user