AnsweredAssumed Answered

udev rule

Question asked by shashikant h on Jun 4, 2020
Latest reply on Jun 4, 2020 by shashikant h

created /etc/udev/rules.d/99-my.rules

 

i could able to get add notification  sh script

DEVPATH=="/devices/platform/fsl-ehci.0/usb2/2-1/2-1:1.0", KERNEL=="2-1", SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="1286", ATTRS{idProduct}=="2049", RUN+="/home/root/add_device.sh add "

 

DEVPATH=="/devices/platform/fsl-ehci.0/usb2/2-1/2-1:1.0", KERNEL=="2-1", SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="1286", ATTRS{idProduct}=="2049", RUN+="/home/root/add_device.sh remove"

 

i could able to achieve add udev event calls /home/root/add_device.sh

 

but i am not getting any udev remove , not calling my /home/root/add_device.sh

 

any one faced similar issue ?

Outcomes