mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +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)
|
||||||
FASTBOOT=yes
|
FASTBOOT=yes
|
||||||
;;
|
;;
|
||||||
|
nosplash)
|
||||||
|
SPLASH=no
|
||||||
|
;;
|
||||||
overlay)
|
overlay)
|
||||||
OVERLAY=yes
|
OVERLAY=yes
|
||||||
;;
|
;;
|
||||||
@ -310,6 +313,18 @@ NBD_DEVS="0"
|
|||||||
done
|
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() {
|
check_disks() {
|
||||||
progress "Checking disks"
|
progress "Checking disks"
|
||||||
|
|
||||||
@ -384,6 +399,7 @@ NBD_DEVS="0"
|
|||||||
# main boot sequence
|
# main boot sequence
|
||||||
for BOOT_STEP in \
|
for BOOT_STEP in \
|
||||||
load_modules \
|
load_modules \
|
||||||
|
load_splash \
|
||||||
check_disks \
|
check_disks \
|
||||||
mount_disks \
|
mount_disks \
|
||||||
check_update \
|
check_update \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user