busybox-initramfs: enable installation of plymouth-lite (bootsplash)

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-06-28 23:11:16 +02:00
parent b4aac72c8a
commit 62a00b6629
3 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -2,6 +2,7 @@
. config/options
$SCRIPTS/unpack linux
$SCRIPTS/install plymouth-lite initramfs
PKG_DIR=`find $PACKAGES -type d -name $1`

View File

@ -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"