mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
busybox-initramfs: add support for OEM Splash, dont load splash if framebuffer is not enabled
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
87ca0cbcaa
commit
d4502bc705
@ -63,11 +63,23 @@ REBOOT="0"
|
||||
}
|
||||
|
||||
show_splash() {
|
||||
if [ ! -e /dev/fb0 ]; then
|
||||
SPLASH=no
|
||||
fi
|
||||
|
||||
if [ -f /flash/oemsplash.png ]; then
|
||||
SPLASHIMAGE="/flash/oemsplash.png"
|
||||
elif [ -f /splash/splash.png ]; then
|
||||
SPLASHIMAGE="/splash/splash.png"
|
||||
else
|
||||
SPLASH=no
|
||||
fi
|
||||
|
||||
if [ "$SPLASH" = "no" ]; then
|
||||
break
|
||||
else
|
||||
if [ -f "/sbin/ply-image" -a -f "/splash/splash.png" ]; then
|
||||
/sbin/ply-image /splash/splash.png
|
||||
if [ -f "/sbin/ply-image" ]; then
|
||||
/sbin/ply-image "$SPLASHIMAGE"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@ -103,10 +115,10 @@ REBOOT="0"
|
||||
fi
|
||||
}
|
||||
|
||||
show_splash
|
||||
|
||||
mount_part "$boot" "/flash" "ro,noatime"
|
||||
|
||||
show_splash
|
||||
|
||||
if [ -n "$disk" ]; then
|
||||
mount_part "$disk" "/storage" "rw,noatime"
|
||||
update "Kernel" "$IMAGE_KERNEL" "/flash/$IMAGE_KERNEL"
|
||||
|
Loading…
x
Reference in New Issue
Block a user