From adc5a616398ddedbcf9c2eda29b5d856837a0f29 Mon Sep 17 00:00:00 2001 From: Mystro256 Date: Mon, 10 Jan 2022 09:07:02 -0500 Subject: [PATCH] Follow up to RHBZ#2028701 - Unmask on upgrade (so previous services are restored on upgrade to 1.5) - Drop rdw post script, since it explicitly calls systemctl enable --- tlp.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tlp.spec b/tlp.spec index aea1117..1f7fdc6 100644 --- a/tlp.spec +++ b/tlp.spec @@ -1,7 +1,7 @@ %global gittag 1.5.0 Name: tlp Version: 1.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Optimize laptop battery life License: GPLv2+ URL: https://linrunner.de/tlp @@ -109,6 +109,10 @@ appstream-util validate-relax --nonet \ %post %systemd_post tlp.service +if [ $1 -eq 2 ] ; then + systemctl unmask systemd-rfkill.service + systemctl unmask power-profiles-daemon.service +fi %preun %systemd_preun tlp.service @@ -116,10 +120,10 @@ appstream-util validate-relax --nonet \ %postun %systemd_postun_with_restart tlp.service -%post rdw -/bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || : - %changelog +* Mon Jan 10 2022 Jeremy Newton - 1.5.0-2 +- More fixes for RHBZ#2028701 + * Fri Jan 7 2022 Jeremy Newton - 1.5.0-1 - Update to 1.5.0