From ed473f24cb80c615bc7c2451a78a3329d5279029 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Jun 23 2008 23:33:27 +0000 Subject: - Make plymouth-set-default-plugin --reset choose the latest installed plugin, not the earliest --- diff --git a/make-reset-work.patch b/make-reset-work.patch new file mode 100644 index 0000000..5e7c96a --- /dev/null +++ b/make-reset-work.patch @@ -0,0 +1,12 @@ +diff -up plymouth-0.4.0/scripts/plymouth-set-default-plugin.make-reset-work plymouth-0.4.0/scripts/plymouth-set-default-plugin +--- plymouth-0.4.0/scripts/plymouth-set-default-plugin.make-reset-work 2008-06-23 19:27:35.000000000 -0400 ++++ plymouth-0.4.0/scripts/plymouth-set-default-plugin 2008-06-23 19:27:44.000000000 -0400 +@@ -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 diff --git a/plymouth.spec b/plymouth.spec index 1f5488a..8705371 100644 --- a/plymouth.spec +++ b/plymouth.spec @@ -1,7 +1,7 @@ Summary: Plymouth Graphical Boot Animation and Logger Name: plymouth Version: 0.4.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: System Environment/Base Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2 @@ -13,6 +13,7 @@ Provides: rhgb = 1:10.0.0 Requires: system-logos >= 9.0.1 Patch0: fix-harmless-spew.patch +Patch1: make-reset-work.patch %description Plymouth provides an attractive graphical boot animation in @@ -64,6 +65,7 @@ spins in the shape of an infinity sign. %prep %setup -q %patch0 -p1 -b .fix-harmless-spew +%patch1 -p1 -b .make-reset-work %build %configure --enable-tracing --disable-tests --without-boot-entry \ @@ -164,6 +166,10 @@ fi %{_libdir}/plymouth/spinfinity.so %changelog +* Sun Jun 22 2008 Ray Strode - 0.4.0-2 +- Make plymouth-set-default-plugin --reset choose the latest + installed plugin, not the earliest + * Sun Jun 22 2008 Ray Strode - 0.4.0-1 - Update to version 0.4.0 - Only run if rhgb is on kernel command line