busybox-initramfs: add support to start splash in initramfs

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-05-03 13:03:33 +02:00
parent 9177e9711c
commit aa768e399e

View File

@ -67,6 +67,9 @@ NBD_DEVS="0"
fastboot)
FASTBOOT=yes
;;
nosplash)
SPLASH=no
;;
overlay)
OVERLAY=yes
;;
@ -310,6 +313,18 @@ NBD_DEVS="0"
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() {
progress "Checking disks"
@ -384,6 +399,7 @@ NBD_DEVS="0"
# main boot sequence
for BOOT_STEP in \
load_modules \
load_splash \
check_disks \
mount_disks \
check_update \