freebsd-ports/devel/msp430-debug-stack/files/mspfet.conf
Joerg Wunsch 4a23b974d4 devel/msp430-debug-stack: fix udev config script
The udev config script wants to assign and use shell variables.  In
order for devd to correctly distinguish between internal and shell
variables, shell variables must always use braces ${...}.
2024-12-11 21:40:50 +01:00

22 lines
761 B
Text

# Warning: Only a single instance of each FET product is supported
#
attach 20 {
device-name "umodem[0-9]+";
match "vendor" "0x2047"; # TI MSPBSL_STANDARD_USB_VID
match "product" "0x001(0|3|4)"; # Products: UIF eZ-FET MSP-FET
match "interface" "0"; # JTAG-Interface
action "cd /dev; p=$product; dn=$device-name; \
un=$(sysctl -n dev.umodem.${dn#umodem}.ttyname); \
chmod 666 cua${un}; ln -sf cua${un} mspfet${p#0x}";
};
notify 20 {
match "system" "USB";
match "subsystem" "INTERFACE";
match "type" "DETACH";
match "vendor" "0x2047"; # TI MSPBSL_STANDARD_USB_VID
match "product" "0x001(0|3|4)"; # Products: UIF eZ-FET MSP-FET
match "interface" "0"; # JTAG-Interface
action "p=$product; rm /dev/mspfet${p#0x}";
};