title: Udev rule doesn't run
body: <p>I'm trying to write a udev rule on my Beaglebone White that runs when a Pantech UML 295 finishes booting.</p>
  
  <p>When using <code>udevadm monitor --environment</code> I get the following final output which I would like to base the rule on:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>My udev rule version 1:</p>
  
  <pre><code>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"
  </code></pre>
  
  <p>and version 2:</p>
  
  <pre><code>ACTION=="add", SUBSYSTEM=="net", RUN+="/home/root/rebootInternetConnection.sh"
  </code></pre>
  
  <p>Version 2 is a stripped down version which should be ran more than once, but doesn't get ran at all. Version 1 uses environment variables which I'm not sure whether or not the rule has access to.</p>
  
  <p>To clarify: the rule doesn't get ran at all, and the shell script has echos which should show up. My rule is in the /etc/udev/rules.d/ directory with name 10-local.rules.</p>
  
  <p>Here are some more non-functional rules, placed in /etc/udev/rules.d/81-pantech.rules:</p>
  
  <pre><code>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 &gt; /tmp/foo"
  
  SUBSYSTEM=="usb", ATTR{product}=="PANTECH UML295", RUN +="echo foo &gt; /tmp/foo"
  
  ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="PANTECH UML295", RUN+="/home/ro
  ot/rebootInternetConnection.sh"
  </code></pre>