Fixup duplicate %pre and %post
OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=104
This commit is contained in:
parent
58ccf8294d
commit
1e1507bcd5
10
sensors.spec
10
sensors.spec
@ -139,6 +139,7 @@ make %{?_smp_mflags} PROG_EXTRA:=sensord BUILD_STATIC_LIB:=0 PREFIX=%{_prefix} M
|
||||
|
||||
%pre
|
||||
%service_add_pre lm_sensors.service
|
||||
%service_add_pre fancontrol.service
|
||||
|
||||
%post
|
||||
%service_add_post lm_sensors.service
|
||||
@ -164,14 +165,7 @@ echo "HWMON_MODULES=\"$HWMON_MODULES\"" >> "$CONFIG"
|
||||
if test -e %{_sysconfdir}/modprobe.d/lm_sensors -a ! -e %{_sysconfdir}/modprobe.d/lm_sensors.conf ; then
|
||||
mv -f %{_sysconfdir}/modprobe.d/lm_sensors %{_sysconfdir}/modprobe.d/lm_sensors.conf
|
||||
fi
|
||||
|
||||
%pre
|
||||
%service_del_pre lm_sensors.service
|
||||
%service_del_pre fancontrol.service
|
||||
|
||||
%post
|
||||
%service_del_post lm_sensors.service
|
||||
%service_del_post fancontrol.service
|
||||
%service_add_post fancontrol.service
|
||||
|
||||
%preun
|
||||
%service_del_preun fancontrol.service
|
||||
|
Loading…
Reference in New Issue
Block a user