On Ter, 2013-02-05 at 06:42 +0000, Sérgio Basto wrote:
> On Ter, 2013-01-29 at 17:59 +0000, Sérgio Basto wrote: 
> > On Ter, 2013-01-29 at 01:52 +0100, Lennart Poettering wrote:
> > > Yes, even then. udev will notice rules dropped there.
> > 
> > OK I will test that 
> 
> I just test it and doesn't assign USB devices.
> 
> But seeing what udev.service , udev-trigger.service and
> udev-settle.service do on :
> systemctl restart udev.service
> systemctl restart udev-trigger.service
> systemctl restart udev-settle.service
> 
> 
> I back to old scripts 
> # Assign USB devices
> if /sbin/udevadm control --reload-rules >/dev/null 2>&1
> then
>    /sbin/udevadm trigger --subsystem-match=usb >/dev/null 2>&1 || :
>    /sbin/udevadm settle >/dev/null 2>&1 || :
> fi


After some tests I'm going pack with :

if /sbin/udevadm control --reload-rules >/dev/null 2>&1
then
   /sbin/udevadm trigger --subsystem-match=usb --action=add >/dev/null 2>&1 || :
   /sbin/udevadm settle >/dev/null 2>&1 || :
fi

Any advises or opinions ? 

Many thanks, 
-- 
Sérgio M. B.


-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to