diff options
author | Sebastian Dziallas <sebastian@when.com> | 2010-02-27 23:43:19 (GMT) |
---|---|---|
committer | Sebastian Dziallas <sebastian@when.com> | 2010-02-27 23:43:19 (GMT) |
commit | 8e8e62b89b32d22a972ecd3826f663a2a3c4f083 (patch) | |
tree | d25eb32611940e77fcf8bd3f65df10fdb5fce7c3 | |
parent | 8dd70b5a3732cc07c31f345c2207699520c07456 (diff) |
make sure to activate the plugin we installed too
-rw-r--r-- | sugar-logos.spec | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/sugar-logos.spec b/sugar-logos.spec index 8031d58..c80a9ee 100644 --- a/sugar-logos.spec +++ b/sugar-logos.spec @@ -1,6 +1,6 @@ Name: sugar-logos Version: 2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Boot splash imagery for Sugar on a Stick Group: System Environment/Base @@ -37,6 +37,26 @@ done rm -rf $RPM_BUILD_ROOT +%post +export LIB=%{_lib} +if [ $1 -eq 1 ]; then + %{_sbindir}/plymouth-set-default-theme sugar +else + if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "solar" ]; then + %{_sbindir}/plymouth-set-default-theme sugar + fi +fi + + +%postun +export LIB=%{_lib} +if [ $1 -eq 0 ]; then + if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "sugar" ]; then + %{_sbindir}/plymouth-set-default-theme --reset + fi +fi + + %files %defattr(-,root,root,-) %doc COPYING @@ -44,5 +64,8 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Feb 27 2010 Sebastian Dziallas <sebastian@when.com> 2-2 +- activate the new theme too + * Wed Feb 17 2010 Sebastian Dziallas <sebastian@when.com> 2-1 - initial packaging |