beagleboard - Udev rule doesn't run -


i'm trying write udev rule on beaglebone white runs when pantech uml 295 finishes booting.

when using udevadm monitor --environment following final output base rule on:

udev [3163.454297] add /devices/platform/omap/musb-ti81xx/musb-hdrc.1/usb1/1-1/1- 1:1.0/net/eth1 (net) action=add devpath=/devices/platform/omap/musb-ti81xx/musb-hdrc.1/usb1/1-1/1-1:1.0/net/eth1 id_bus=usb id_model=pantech_uml295 id_model_enc=pantech\x20uml295 id_model_id=6064 id_revision=0228 id_serial=pantech__incorporated_pantech_uml295_uml295692146818 id_serial_short=uml295692146818 id_type=generic id_usb_driver=cdc_ether id_usb_interfaces=:020600:0a0000:030000: id_usb_interface_num=00 id_vendor=pantech__incorporated id_vendor_enc=pantech\x2c\x20incorporated id_vendor_id=10a9 ifindex=6 interface=eth1 seqnum=1151 subsystem=net systemd_alias=/sys/subsystem/net/devices/eth1 tags=:systemd: usec_initialized=3163023666 

my udev rule version 1:

env{id_bus}=="usb", subsystem=="net", run+="/home/root/rebootinternetconnection.sh", env{id_model}=="pantech_uml295", action=="add", interface=="eth1", env{id_usb_driver}=="cdc_ether" 

and version 2:

action=="add", subsystem=="net", run+="/home/root/rebootinternetconnection.sh" 

version 2 stripped down version should ran more once, doesn't ran @ all. version 1 uses environment variables i'm not sure whether or not rule has access to.

to clarify: rule doesn't ran @ all, , shell script has echos should show up. rule in /etc/udev/rules.d/ directory name 10-local.rules.

here more non-functional rules, placed in /etc/udev/rules.d/81-pantech.rules:

action=="add", subsystem=="net", attr{idvendor}=="10a9", run+="/home/root/reboot internetconnection.sh"  subsystem=="net", attr{idvendor}=="10a9", attr{idproduct}=="6064", run+="/home/ro ot/rebootinternetconnection.sh"  action=="add", subsystem=="hid", run+="/home/root/rebootinternetconnection.sh"  action=="add", subsystem=="usb", run+="echo foo > /tmp/foo"  subsystem=="usb", attr{product}=="pantech uml295", run +="echo foo > /tmp/foo"  action=="add", subsystem=="usb", attr{product}=="pantech uml295", run+="/home/ro ot/rebootinternetconnection.sh" 

not sure changed, rule being used in file /etc/udev/rules.d/81-pantech.rules

one possibility missing /run/udev/rules.d/ directory. when ran

udevadm test /devices/platform/omap/musb-ti81xx/musb-hdrc.1/usb1/1-1 

i got line reporting directory missing.

another possibility me manually running udev daemon with

/lib/udev/udevd --debug 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -