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 || :