diff options
Diffstat (limited to 'scripts/plymouth-set-default-plugin')
-rwxr-xr-x | scripts/plymouth-set-default-plugin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/plymouth-set-default-plugin b/scripts/plymouth-set-default-plugin index 925c633..84586e7 100755 --- a/scripts/plymouth-set-default-plugin +++ b/scripts/plymouth-set-default-plugin @@ -9,7 +9,12 @@ set -e [ -z "$BINDIR" ] && BINDIR="/usr/bin" if [ $# -lt 1 ]; then - basename $(readlink ${LIBDIR}/plymouth/default.so) .so + PLUGIN_NAME=$(basename $(readlink ${LIBDIR}/plymouth/default.so) .so) + if [ -z "$PLUGIN_NAME" ]; then + $0 --reset + PLUGIN_NAME=$(basename $(readlink ${LIBDIR}/plymouth/default.so) .so) + fi + [ -n "$PLUGIN_NAME" ] && echo $PLUGIN_NAME || exit 1 exit $? fi |