mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 11:58:08 +02:00
[set-default-theme] Add more compat goo
If there's no configured theme installed, return "text"
This commit is contained in:
parent
8c390bea97
commit
07d5f10f60
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue