Skip to content

Instantly share code, notes, and snippets.

@grafjo
Created March 8, 2013 13:01
Show Gist options
  • Save grafjo/5116337 to your computer and use it in GitHub Desktop.
Save grafjo/5116337 to your computer and use it in GitHub Desktop.
udev rule mapping for USB RS232 adapters pluged into a D-Link DUB-H7 7-Port USB 2 Hub
#/etc/udev/rules.d/70-persistent-usb-rs232.rules
KERNEL=="ttyUSB*", KERNELS=="1-1.3.1.1", SYMLINK="ttySerialPort1"
KERNEL=="ttyUSB*", KERNELS=="1-1.3.2", SYMLINK="ttySerialPort2"
KERNEL=="ttyUSB*", KERNELS=="1-1.3.1.2", SYMLINK="ttySerialPort3"
KERNEL=="ttyUSB*", KERNELS=="1-1.3.3", SYMLINK="ttySerialPort4"
KERNEL=="ttyUSB*", KERNELS=="1-1.3.1.3", SYMLINK="ttySerialPort5"
KERNEL=="ttyUSB*", KERNELS=="1-1.3.4", SYMLINK="ttySerialPort6"
KERNEL=="ttyUSB*", KERNELS=="1-1.3.1.4", SYMLINK="ttySerialPort7"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment