From: Ray Strode Date: Mon, 23 Jun 2008 23:26:33 +0000 (-0400) Subject: Make --reset chooser the most recent plugin not the oldest X-Git-Tag: 0.4.5~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad6d1eb75f9a98da3d756a70e18032c389a5b2d0;p=thirdparty%2Fplymouth.git Make --reset chooser the most recent plugin not the oldest --- diff --git a/scripts/plymouth-set-default-plugin b/scripts/plymouth-set-default-plugin index 84586e74..a2ac8fd0 100755 --- a/scripts/plymouth-set-default-plugin +++ b/scripts/plymouth-set-default-plugin @@ -25,7 +25,7 @@ fi PLUGIN_NAME=$1 if [ $1 = '--reset' ]; then - PLUGIN_NAME=$(basename $(ls -1 -t ${LIBDIR}/plymouth/*.so 2> /dev/null | grep -v default.so | head -n 1) .so) + PLUGIN_NAME=$(basename $(ls -1 -t ${LIBDIR}/plymouth/*.so 2> /dev/null | grep -v default.so | tail -n 1) .so) if [ $PLUGIN_NAME = .so ]; then rm -f ${LIBDIR}/plymouth/default.so exit 0