udev: replace ENV{.MM_USBIFNUM} conditions with ATTRS{bInterfaceNumber}
This commit is contained in:
@@ -17,22 +17,21 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="1e0e", GOTO="mm_alink_vendorcheck"
|
||||
GOTO="mm_simtech_port_types_end"
|
||||
|
||||
LABEL="mm_alink_vendorcheck"
|
||||
SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}"
|
||||
|
||||
# A-LINK 3GU
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="cefe", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_SIMTECH_PORT_TYPE_MODEM}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="cefe", ENV{.MM_USBIFNUM}=="00", ENV{ID_MM_SIMTECH_PORT_TYPE_AUX}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="cefe", ENV{.MM_USBIFNUM}=="01", ENV{ID_MM_SIMTECH_PORT_TYPE_AUX}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="cefe", ATTRS{bInterfaceNumber}=="02", ENV{ID_MM_SIMTECH_PORT_TYPE_MODEM}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="cefe", ATTRS{bInterfaceNumber}=="00", ENV{ID_MM_SIMTECH_PORT_TYPE_AUX}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="cefe", ATTRS{bInterfaceNumber}=="01", ENV{ID_MM_SIMTECH_PORT_TYPE_AUX}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="cefe", ENV{ID_MM_SIMTECH_TAGGED}="1"
|
||||
|
||||
# Prolink PH-300
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9100", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_SIMTECH_PORT_TYPE_MODEM}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9100", ENV{.MM_USBIFNUM}=="01", ENV{ID_MM_SIMTECH_PORT_TYPE_AUX}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9100", ATTRS{bInterfaceNumber}=="03", ENV{ID_MM_SIMTECH_PORT_TYPE_MODEM}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9100", ATTRS{bInterfaceNumber}=="01", ENV{ID_MM_SIMTECH_PORT_TYPE_AUX}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9100", ENV{ID_MM_SIMTECH_TAGGED}="1"
|
||||
|
||||
# SCT UM300
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_SIMTECH_PORT_TYPE_MODEM}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ENV{.MM_USBIFNUM}=="01", ENV{ID_MM_SIMTECH_PORT_TYPE_AUX}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ATTRS{bInterfaceNumber}=="03", ENV{ID_MM_SIMTECH_PORT_TYPE_MODEM}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ATTRS{bInterfaceNumber}=="01", ENV{ID_MM_SIMTECH_PORT_TYPE_AUX}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ENV{ID_MM_SIMTECH_TAGGED}="1"
|
||||
|
||||
GOTO="mm_simtech_port_types_end"
|
||||
|
||||
Reference in New Issue
Block a user