From df569dad2ab4face60f2a6927b92bbbe36bc5e8f Mon Sep 17 00:00:00 2001 From: Huzaifa Sidhpurwala Date: Wed, 3 Mar 2010 11:06:30 +0000 Subject: [PATCH] reload udev in post install --- usb_modeswitch.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 524ba93..664ae42 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -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 1.1.0-2 +- Reload udev when new rules are installed + * Wed Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-1 - New upstream 1.1.0 release - Split package into binary and data part