diff options
-rwxr-xr-x | scripts/plymouth-set-default-plugin.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/plymouth-set-default-plugin.in b/scripts/plymouth-set-default-plugin.in index 427803bb..2d4728ab 100755 --- a/scripts/plymouth-set-default-plugin.in +++ b/scripts/plymouth-set-default-plugin.in @@ -34,11 +34,11 @@ function list_plugins () function get_default_plugin () { PLUGIN_NAME=$(basename $(readlink ${LIBDIR}/plymouth/default.so) .so) - if [ -z "$PLUGIN_NAME" ]; then + if [ "$PLUGIN_NAME" = ".so" ]; then $0 --reset PLUGIN_NAME=$(basename $(readlink ${LIBDIR}/plymouth/default.so) .so) fi - [ -n "$PLUGIN_NAME" ] && echo $PLUGIN_NAME || exit 1 + [ "$PLUGIN_NAME" = ".so" ] || echo $PLUGIN_NAME && exit 1 } DO_RESET=0 |