From 711636ec6a46dd8d7a9ab44a124d59bc38111d72 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 21 Nov 2008 11:49:53 -0500 Subject: Call --reset when giving default plugin if needed Previously, we tried to do this but failed because of a buggy conditional. --- scripts/plymouth-set-default-plugin.in | 4 ++-- 1 file 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 -- cgit v1.2.3