invik

02-htc.rules

Sep 27th, 2012
164
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. KERNEL=="usb[0-9]*", SUBSYSTEM=="net", ENV{ID_SERIAL_SHORT}="HTxxxxxxxxxx", ACTION=="add", RUN+="/usr/local/bin/fakehtcnat.py"
  2. KERNEL=="usb[0-9]*", SUBSYSTEM=="net", ENV{ID_SERIAL_SHORT}="HTxxxxxxxxxx", ACTION=="remove", RUN+="/usr/sbin/dhclient -x $kernel"
  3.  
  4. # Be sure to change the "xxxxxxxxxx" to the right serial number!
RAW Paste Data