# 根据序列号区分设备
SUBSYSTEM=="usb", ATTRS{idVendor}=="0424", ATTRS{idProduct}=="8670", ATTRS{serial}=="000000001", SYMLINK+="lan8670_1", RUN+="/path/to/set_node_id.sh 1"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0424", ATTRS{idProduct}=="8670", ATTRS{serial}=="000000002", SYMLINK+="lan8670_2", RUN+="/path/to/set_node_id.sh 2"
|