From d32441b427748c7157d1bc328f226786a4806aa633628c7e20ed0a25c6091f94 Mon Sep 17 00:00:00 2001 From: R N Date: Tue, 5 Nov 2024 04:40:21 +0000 Subject: [PATCH] Replaced script in .spec file with %ghost macros. OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=13 --- supergfxctl.spec | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/supergfxctl.spec b/supergfxctl.spec index 9ac85f9..3202265 100644 --- a/supergfxctl.spec +++ b/supergfxctl.spec @@ -79,10 +79,6 @@ fi %postun %service_del_postun_with_restart supergfxd.service -if [ -e %{_sysconfdir}/modprobe.d/supergfxd.conf ] -then - rm %{_sysconfdir}/modprobe.d/supergfxd.conf -fi if [ -e %{_sysconfdir}/modprobe.d/nvidia.conf ] then if grep -q "# options nvidia-drm.modeset=1" %{_sysconfdir}/modprobe.d/nvidia.conf @@ -98,6 +94,7 @@ fi %{_unitdir}/supergfxd.service %{_presetdir}/99-supergfxd.preset %{_udevrulesdir}/90-supergfxd-nvidia-pm.rules +%ghost %attr(0644,root,root) %{_sysconfdir}/modprobe.d/supergfxd.conf %config %{_sysconfdir}/dbus-1/system.d/org.supergfxctl.Daemon.conf %dir %{_datadir}/doc/%{name} %{_datadir}/doc/%{name}/*