Skip to content

Instantly share code, notes, and snippets.

@vansoest
Created March 15, 2014 16:02
Show Gist options
  • Save vansoest/9569574 to your computer and use it in GitHub Desktop.
Save vansoest/9569574 to your computer and use it in GitHub Desktop.
Creates static symlinks for arduinos by udev rules at /etc/udev/rules.d/
SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="sensors/ftdi_%s{serial}"
SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="AH014OJ1", SYMLINK+="arduino/trduino_nano"
SUBSYSTEMS=="usb", KERNEL=="ttyACM[0-9]*", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0042", SYMLINK+="sensors/cdc_%s{serial}"
SUBSYSTEMS=="usb", KERNEL=="ttyACM[0-9]*", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0042", ATTRS{serial}=="741333534373512190A1", SYMLINK+="arduino/arduino_mega2560"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment