reload udev in post install

This commit is contained in:
Huzaifa Sidhpurwala 2010-03-03 11:06:30 +00:00
parent 141f765df0
commit df569dad2a

View File

@ -2,7 +2,7 @@
Name: usb_modeswitch
Version: 1.1.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: USB Modeswitch gets 4G cards in operational mode
Summary(de): USB Modeswitch aktiviert UMTS-Karten
Group: Applications/System
@ -57,6 +57,12 @@ install -p -m 644 40-usb_modeswitch.rules $RPM_BUILD_ROOT/lib/udev/rules.d
%clean
rm -rf $RPM_BUILD_ROOT
%post data
udevadm control --reload-rules
%postun data
udevadm control --reload-rules
%files
%defattr(-,root,root,-)
%{_bindir}/usb_modeswitch
@ -70,6 +76,9 @@ rm -rf $RPM_BUILD_ROOT
%{_sysconfdir}/usb_modeswitch.d/
%changelog
* Wed Mar 2 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.1.0-2
- Reload udev when new rules are installed
* Wed Mar 2 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.1.0-1
- New upstream 1.1.0 release
- Split package into binary and data part