mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +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() {
|
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
|
if [ "$SPLASH" = "no" ]; then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
if [ -f "/sbin/ply-image" -a -f "/splash/splash.png" ]; then
|
if [ -f "/sbin/ply-image" ]; then
|
||||||
/sbin/ply-image /splash/splash.png
|
/sbin/ply-image "$SPLASHIMAGE"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -103,10 +115,10 @@ REBOOT="0"
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
show_splash
|
|
||||||
|
|
||||||
mount_part "$boot" "/flash" "ro,noatime"
|
mount_part "$boot" "/flash" "ro,noatime"
|
||||||
|
|
||||||
|
show_splash
|
||||||
|
|
||||||
if [ -n "$disk" ]; then
|
if [ -n "$disk" ]; then
|
||||||
mount_part "$disk" "/storage" "rw,noatime"
|
mount_part "$disk" "/storage" "rw,noatime"
|
||||||
update "Kernel" "$IMAGE_KERNEL" "/flash/$IMAGE_KERNEL"
|
update "Kernel" "$IMAGE_KERNEL" "/flash/$IMAGE_KERNEL"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user