mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox-initramfs: readd support for oemsplash and project based splash
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
f76251bd2e
commit
851bebf4c3
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user