]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[set-default-theme] Add more compat goo
authorRay Strode <rstrode@redhat.com>
Fri, 7 May 2010 19:35:49 +0000 (15:35 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 7 May 2010 19:35:49 +0000 (15:35 -0400)
If there's no configured theme installed, return "text"

scripts/plymouth-set-default-theme.in

index f589618d5a29e55a572cbb8982dff395f52d8b67..463124669a689f667c80f16c2f720bfaca12a26b 100755 (executable)
@@ -66,7 +66,11 @@ function get_default_theme ()
         if [ -z "$THEME_NAME" -o ! -r "${PLYMOUTH_DATADIR}/plymouth/themes/$THEME_NAME/$THEME_NAME.plymouth" ]; then
                 THEME_NAME=$(basename $(readlink ${PLYMOUTH_DATADIR}/plymouth/themes/default.plymouth) .plymouth)
         fi
-        [ -z "$THEME_NAME" ] || echo $THEME_NAME && exit 1
+        if [ -z "$THEME_NAME" ]; then
+                THEME_NAME="text"
+        fi
+
+        echo $THEME_NAME
 }
 
 DO_RESET=0