udev rules help

Jacek Konieczny jajcus at jajcus.net
Wed Aug 31 13:41:50 CEST 2016


On 2016-08-31 09:51, Elan Ruusamäe wrote:
> On 31.08.2016 10:47, Jacek Konieczny wrote:
>>> # grep add /etc/udev/rules.d/80-idcard.rules
>>> SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device",
>>> ENV{ID_MODEL}=="*Smart*Card*Reader*", RUN+="/sbin/service pcscd start"
>>
>> What init do you use.
>
> i mean the RUN+= part is never executed no matter what rules i write.
> even only the ACTION="add" part

Is the rule actually matched?
Maybe there is some other rule later with RUN= instead of RUN+=?
Have you tried "change" instead of "add"? Handling "add" only often 
causes problems (the device is not fully set up, or the "add" was 
handled long before the rule become available (e.g. in initramfs)).

Jacek


More information about the pld-devel-en mailing list