diff --git a/supergfxctl.spec b/supergfxctl.spec index 0367c09..0712130 100644 --- a/supergfxctl.spec +++ b/supergfxctl.spec @@ -51,7 +51,7 @@ install -D -m 0644 README.md %{buildroot}%{_datadir}/doc/%{name}/README.md %post %service_add_post supergfxd.service -if [ -f %{_sysconfdir}/modprobe.d/supergfxd.conf ] +if [ ! -e %{_sysconfdir}/modprobe.d/supergfxd.conf ] then systemctl enable supergfxd.service fi