From e7e9dbc05e0df54c5ea14d0e584e32c279fe2421 Mon Sep 17 00:00:00 2001 From: Mystro256 Date: Tue, 17 Jan 2017 17:21:56 -0500 Subject: [PATCH] Minor issue, umask rfkill only on uninstall --- tlp.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tlp.spec b/tlp.spec index 20a6f95..86a4e33 100644 --- a/tlp.spec +++ b/tlp.spec @@ -91,7 +91,9 @@ systemctl mask systemd-rfkill.service %postun %systemd_postun_with_restart tlp.service %systemd_postun_with_restart tlp-sleep.service -systemctl unmask systemd-rfkill.service +if [ $1 -eq 0 ] ; then + systemctl unmask systemd-rfkill.service +fi %post rdw /bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || :