splashutils: enhance support for project based splash themes

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-04-03 03:46:52 +02:00
parent 3a031b03f7
commit 1bd10b169b
2 changed files with 6 additions and 3 deletions

View File

@ -25,8 +25,11 @@
if [ ! "$SPLASH" = "no" ]; then
progress "starting splash"
if [ -z "$SPLASH_THEME" ]; then
SPLASH_THEME="default"
fi
mkdir -p /run/splash/cache/
fbsplashd --theme=default --type=bootup
fbsplashd --theme=$SPLASH_THEME --type=bootup
echo "set tty silent 2" > /run/splash/cache/.splash
echo "set tty verbose 6" > /run/splash/cache/.splash

View File

@ -34,8 +34,8 @@ mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/src/.libs/splash_util $INSTALL/usr/bin
mkdir -p $INSTALL/etc/splash
if [ -d $PROJECT_DIR/$PROJECT/splash/default ]; then
cp -R $PROJECT_DIR/$PROJECT/splash/default $INSTALL/etc/splash
if [ -d $PROJECT_DIR/$PROJECT/splash ]; then
cp -R $PROJECT_DIR/$PROJECT/splash/* $INSTALL/etc/splash
else
cp -R $PKG_DIR/splash/default $INSTALL/etc/splash
fi