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:
Stephan Raue 2011-05-08 12:12:31 +02:00
parent 87ca0cbcaa
commit d4502bc705

View File

@ -63,11 +63,23 @@ REBOOT="0"
}
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
break
else
if [ -f "/sbin/ply-image" -a -f "/splash/splash.png" ]; then
/sbin/ply-image /splash/splash.png
if [ -f "/sbin/ply-image" ]; then
/sbin/ply-image "$SPLASHIMAGE"
fi
fi
}
@ -103,10 +115,10 @@ REBOOT="0"
fi
}
show_splash
mount_part "$boot" "/flash" "ro,noatime"
show_splash
if [ -n "$disk" ]; then
mount_part "$disk" "/storage" "rw,noatime"
update "Kernel" "$IMAGE_KERNEL" "/flash/$IMAGE_KERNEL"