]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Make --reset chooser the most recent plugin not the oldest
authorRay Strode <rstrode@redhat.com>
Mon, 23 Jun 2008 23:26:33 +0000 (19:26 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 23 Jun 2008 23:26:33 +0000 (19:26 -0400)
scripts/plymouth-set-default-plugin

index 84586e74f8a6a4a7a412643fe4ba942328725c48..a2ac8fd02023450b36685bab64a9e5067a28c0f2 100755 (executable)
@@ -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