From dac17ff8ccec7c878e21ca484334c96ce17c10fd Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 21 Nov 2019 16:57:08 +0100 Subject: [PATCH] + switcheroo-control-2.0-2 Fix post scripts not reloading service file --- switcheroo-control.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/switcheroo-control.spec b/switcheroo-control.spec index fc85a40..17c7910 100644 --- a/switcheroo-control.spec +++ b/switcheroo-control.spec @@ -1,6 +1,6 @@ Name: switcheroo-control Version: 2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: D-Bus service to check the availability of dual-GPU License: GPLv3 @@ -41,6 +41,9 @@ This package contains the documentation for %{name}. %post +if [ $1 -eq 2 ] && [ -x /usr/bin/systemctl ] ; then + /usr/bin/systemctl daemon-reload +fi %systemd_post switcheroo-control.service %udev_hwdb_update @@ -65,6 +68,10 @@ This package contains the documentation for %{name}. %{_datadir}/gtk-doc/html/%{name}/ %changelog +* Thu Nov 21 2019 Bastien Nocera - 2.0-2 ++ switcheroo-control-2.0-2 +- Fix post scripts not reloading service file + * Tue Nov 05 2019 Bastien Nocera - 2.0-1 + switcheroo-control-2.0-1 - Update to 2.0