busybox-initramfs: readd support for oemsplash and project based splash

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-05-03 22:58:23 +02:00
parent f76251bd2e
commit 851bebf4c3
2 changed files with 14 additions and 2 deletions

View File

@ -317,11 +317,20 @@ NBD_DEVS="0"
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 &
if [ -f /flash/oemsplash.png ]; then
SPLASHIMAGE="/flash/oemsplash.png"
elif [ -f /splash/splash.conf ]; then
. /splash/splash.conf
else
SPLASHIMAGE="/splash/splash.png"
fi
ply-image $SPLASHIMAGE > /dev/null 2>&1 &
fi
}

View File

@ -26,7 +26,10 @@ mkdir -p $INSTALL/bin
cp $PKG_BUILD/ply-image $INSTALL/bin
mkdir -p $INSTALL/splash
if [ -f $PROJECT_DIR/$PROJECT/splash/splash.png ]; then
if [ -f $PROJECT_DIR/$PROJECT/splash/splash.conf ]; then
cp $PROJECT_DIR/$PROJECT/splash/splash.conf $INSTALL/splash
cp $PROJECT_DIR/$PROJECT/splash/*.png $INSTALL/splash
elif [ -f $PROJECT_DIR/$PROJECT/splash/splash.png ]; then
cp $PROJECT_DIR/$PROJECT/splash/splash.png $INSTALL/splash
else
cp $PKG_DIR/splash/splash.png $INSTALL/splash