- Restart hal daemon if running and remove visor module if currently loaded

(#280251)
This commit is contained in:
alexlan 2008-01-04 10:27:11 +00:00
parent e53029795a
commit 40763ee05f

View File

@ -3,7 +3,7 @@
Name: pilot-link
Version: 0.12.2
Release: 13%{?dist}
Release: 14%{?dist}
Epoch: 2
License: GPLv2 and GPLv2+ and LGPLv2+ and TCL
Group: Applications/Communications
@ -28,7 +28,8 @@ Patch6: pilot-link-0.12.2-open.patch
Patch7: pilot-link-0.12.2-NR70V.patch
Patch8: pilot-link-0.12.2-md5.patch
Requires: /sbin/ldconfig
Requires(post): /sbin/ldconfig, /sbin/service, /sbin/modprobe
Requires(postun): /sbin/ldconfig
%if %{support_perl}
Requires: perl(:MODULE_COMPAT_%{perl_version})
@ -157,9 +158,16 @@ cp %{SOURCE4} README.fedora
install -p -m644 %{SOURCE5} %{buildroot}%{_datadir}/pilot-link/udev
install -p -m644 %{SOURCE6} %{buildroot}%{_datadir}/pilot-link/udev
%post -p /sbin/ldconfig
%post
/sbin/ldconfig
/sbin/service haldaemon condrestart >/dev/null 2>&1
if [ $1 = 2 ]; then
# only attempt to remove visor module on upgrade, not needed for fresh install
/sbin/modprobe -s -r visor > /dev/null 2>&1
fi
%postun -p /sbin/ldconfig
%postun
/sbin/ldconfig
%clean
rm -rf %{buildroot}
@ -188,6 +196,10 @@ rm -rf %{buildroot}
%{_datadir}/aclocal/*.m4
%changelog
* Fri Jan 4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 2:0.12.2-14
- Restart hal daemon if running and remove visor module if currently
loaded (#280251)
* Fri Jan 4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 2:0.12.2-13
- Add README.fedora and visor configs as fallbacks (#280251: thanks Kevin Page)