mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox-initramfs: add support to start splash in initramfs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
9177e9711c
commit
aa768e399e
@ -67,6 +67,9 @@ NBD_DEVS="0"
|
||||
fastboot)
|
||||
FASTBOOT=yes
|
||||
;;
|
||||
nosplash)
|
||||
SPLASH=no
|
||||
;;
|
||||
overlay)
|
||||
OVERLAY=yes
|
||||
;;
|
||||
@ -310,6 +313,18 @@ NBD_DEVS="0"
|
||||
done
|
||||
}
|
||||
|
||||
load_splash() {
|
||||
progress "Loading bootsplash"
|
||||
|
||||
if [ -e /dev/fb0 -a ! "$SPLASH" = "no" ]; then
|
||||
# set framebuffer to a default resolution (1024x768-32)
|
||||
fbset -xres 1024 -yres 768 -depth 32
|
||||
|
||||
# load splash
|
||||
ply-image /splash/splash.png > /dev/null 2>&1 &
|
||||
fi
|
||||
}
|
||||
|
||||
check_disks() {
|
||||
progress "Checking disks"
|
||||
|
||||
@ -384,6 +399,7 @@ NBD_DEVS="0"
|
||||
# main boot sequence
|
||||
for BOOT_STEP in \
|
||||
load_modules \
|
||||
load_splash \
|
||||
check_disks \
|
||||
mount_disks \
|
||||
check_update \
|
||||
|
Loading…
x
Reference in New Issue
Block a user