From e7e9dbc05e0df54c5ea14d0e584e32c279fe2421 Mon Sep 17 00:00:00 2001 From: Mystro256 Date: Jan 17 2017 22:27:20 +0000 Subject: Minor issue, umask rfkill only on uninstall --- 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 || :