summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-11-21 11:49:53 -0500
committerRay Strode <rstrode@redhat.com>2008-11-21 11:49:53 -0500
commit711636ec6a46dd8d7a9ab44a124d59bc38111d72 (patch)
treef7fceadbcec22a1d88c5dd179eaa1a6807fff670
parent9435d6cc223026a309b591e94c503e734092587d (diff)
Call --reset when giving default plugin if needed
Previously, we tried to do this but failed because of a buggy conditional.
-rwxr-xr-xscripts/plymouth-set-default-plugin.in4
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