mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox-initramfs: enable installation of plymouth-lite (bootsplash)
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
b4aac72c8a
commit
62a00b6629
@ -5,6 +5,7 @@ dir /dev 755 0 0
|
||||
dir /bin 755 1000 1000
|
||||
slink /bin/sh busybox 777 0 0
|
||||
file /bin/busybox initramfs/bin/busybox 4755 0 0
|
||||
file /bin/ply-image initramfs/bin/ply-image 755 0 0
|
||||
|
||||
# dir /lib 755 1000 1000
|
||||
# file /lib/ld-uClibc.so.0 initramfs/lib/ld-uClibc.so.0 755 0 0
|
||||
@ -17,4 +18,4 @@ dir /sysroot 755 0 0
|
||||
dir /storage 755 0 0
|
||||
|
||||
file /init initramfs/init 755 0 0
|
||||
# file /splash.png initramfs/splash.png 644 0 0
|
||||
file /splash.png initramfs/splash.png 644 0 0
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
. config/options
|
||||
$SCRIPTS/unpack linux
|
||||
$SCRIPTS/install plymouth-lite initramfs
|
||||
|
||||
PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||
|
||||
|
@ -38,6 +38,14 @@ REBOOT=0
|
||||
fi
|
||||
}
|
||||
|
||||
show_splash() {
|
||||
if [ "$SPLASH" = yes ]; then
|
||||
if [ -f "/bin/ply-image" -a -f "/splash.png" ]; then
|
||||
/bin/ply-image /splash.png
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
error() {
|
||||
echo "Error Code: $1 that means: $2"
|
||||
}
|
||||
@ -69,6 +77,8 @@ REBOOT=0
|
||||
fi
|
||||
}
|
||||
|
||||
show_splash
|
||||
|
||||
mount_part "$boot" "/flash" "ro,noatime"
|
||||
mount_part "$disk" "/storage" "rw,noatime"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user