diff options
author | Ray Strode <rstrode@redhat.com> | 2008-06-11 11:01:44 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2008-06-11 12:10:30 -0400 |
commit | 28d7756eb30e736dd6b9b72a56d4b2d0b5332acf (patch) | |
tree | c58918ad017dde36d649c7de739d0f255171f50a /scripts | |
parent | 9e37acbd1339463d968b8b144bb210ca905ad309 (diff) | |
download | plymouth-28d7756eb30e736dd6b9b72a56d4b2d0b5332acf.tar.gz plymouth-28d7756eb30e736dd6b9b72a56d4b2d0b5332acf.tar.xz plymouth-28d7756eb30e736dd6b9b72a56d4b2d0b5332acf.zip |
Update spec file to set the latest installed plugin to default
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/plymouth.spec | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/plymouth.spec b/scripts/plymouth.spec index e8a1b6f..16ffc31 100644 --- a/scripts/plymouth.spec +++ b/scripts/plymouth.spec @@ -38,6 +38,7 @@ Summary: Plymouth "Fade-In" plugin Group: System Environment/Base Requires: %name = %{version}-%{release} BuildRequires: libpng-devel +Provides: plymouth-plugin %description plugin-fade-in This package contains the "Fade-In" boot splash plugin for @@ -49,6 +50,7 @@ Summary: Plymouth "Spinfinity" plugin Group: System Environment/Base Requires: %name = %{version}-%{release} BuildRequires: libpng-devel +Provides: plymouth-plugin %description plugin-spinfinity This package contains the "Spinfinity" boot splash plugin for @@ -77,6 +79,26 @@ rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%post plugin-spinfinity +if [ $1 -eq 1 ]; then + %{_sbindir}/plymouth-set-default-plugin spinfinity +fi + +%postun plugin-spinfinity +if [ $1 -eq 0 ]; then + %{_sbindir}/plymouth-set-default-plugin --reset +fi + +%post plugin-fade-in +if [ $1 -eq 1 ]; then + %{_sbindir}/plymouth-set-default-plugin fade-in +fi + +%postun plugin-fade-in +if [ $1 -eq 0 ]; then + %{_sbindir}/plymouth-set-default-plugin --reset +fi + %files %defattr(-, root, root) %doc AUTHORS NEWS README |