From 07d5f10f606fe8d4c31f49671e23f811e28016de Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 7 May 2010 15:35:49 -0400 Subject: [PATCH] [set-default-theme] Add more compat goo If there's no configured theme installed, return "text" --- scripts/plymouth-set-default-theme.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/plymouth-set-default-theme.in b/scripts/plymouth-set-default-theme.in index f589618d..46312466 100755 --- a/scripts/plymouth-set-default-theme.in +++ b/scripts/plymouth-set-default-theme.in @@ -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