|
# place this file in /etc/udev/rules.d/ |
|
ACTION=="add", ATTRS{idVendor}=="1410", ENV{vendor}="NVTL" |
|
|
|
# When novatel modem appears, configure for it, but ignore the mass storage devices |
|
ACTION=="add", ENV{vendor}=="NVTL", ATTRS{idProduct}!="5???", RUN+="/etc/udev/nvtl_modem.sh" |
|
|
|
# symlink the nvtl ports into a separate directory |
|
KERNEL=="ttyUSB[0-9]*", ENV{vendor}=="NVTL", SYMLINK="nvtl/port%n" |
|
|
|
# Mapping devices to port maps (which are defined below) |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="11??", ENV{technology}="EVDO" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="14??", ENV{technology}="HSPA" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="21??", ENV{technology}="EVDO" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="24??", ENV{technology}="HSPA" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="41??", ENV{technology}="EVDO" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="44??", ENV{technology}="HSPA" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="600?", ENV{technology}="EVDO" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="601?", ENV{technology}="EVDO" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="6020", ENV{technology}="EVDO" |
|
###ENV{vendor}=="NVTL", ATTRS{idProduct}=="6021", ENV{technology}="WIMAX" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="6032", ENV{technology}="INDIAN" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="700?", ENV{technology}="HSPA" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="703?", ENV{technology}="HSPA+" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="704?", ENV{technology}="3G4G" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="800?", ENV{technology}="EVDO" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="900?", ENV{technology}="HSPA" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="901?", ENV{technology}="3G4G" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="a00?", ENV{technology}="GOBI" |
|
###ENV{vendor}=="NVTL", ATTRS{idProduct}=="a01?", ENV{technology}="GOBI" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="a02?", ENV{technology}="GOBI" |
|
ENV{vendor}=="NVTL", ATTRS{idProduct}=="b00?", ENV{technology}="3G4G" |
|
|
|
# Port maps - handy shortcuts for different interfaces |
|
# Generic USB HSPA interface ID |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA", ATTRS{bInterfaceNumber}=="00", SYMLINK+="nvtl/modem" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA", ATTRS{bInterfaceNumber}=="01", SYMLINK+="nvtl/status" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA", ATTRS{bInterfaceNumber}=="02", SYMLINK+="nvtl/application" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA", ATTRS{bInterfaceNumber}=="03", SYMLINK+="nvtl/eapsim" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA", ATTRS{bInterfaceNumber}=="04", SYMLINK+="nvtl/gps" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA", ATTRS{bInterfaceNumber}=="05", SYMLINK+="nvtl/storage" |
|
|
|
# MDM8200 USB HSPA+ interface ID |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA+", ATTRS{bInterfaceNumber}=="00", SYMLINK+="nvtl/modem" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA+", ATTRS{bInterfaceNumber}=="01", SYMLINK+="nvtl/status" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA+", ATTRS{bInterfaceNumber}=="02", SYMLINK+="nvtl/application" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA+", ATTRS{bInterfaceNumber}=="04", SYMLINK+="nvtl/eapsim" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA+", ATTRS{bInterfaceNumber}=="05", SYMLINK+="nvtl/gps" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="HSPA+", ATTRS{bInterfaceNumber}=="06", SYMLINK+="nvtl/storage" |
|
|
|
# Generic USB EVDO interface ID |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="EVDO", ATTRS{bInterfaceNumber}=="00", SYMLINK+="nvtl/modem" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="EVDO", ATTRS{bInterfaceNumber}=="01", SYMLINK+="nvtl/status" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="EVDO", ATTRS{bInterfaceNumber}=="02", SYMLINK+="nvtl/application" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="EVDO", ATTRS{bInterfaceNumber}=="03", SYMLINK+="nvtl/gps" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="EVDO", ATTRS{bInterfaceNumber}=="04", SYMLINK+="nvtl/storage1" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="EVDO", ATTRS{bInterfaceNumber}=="06", SYMLINK+="nvtl/storage2" |
|
|
|
# INDIAN USB HSPA interface ID (EVDO/WIMAX) |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="INDIAN", ATTRS{bInterfaceNumber}=="00", SYMLINK+="nvtl/modem" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="INDIAN", ATTRS{bInterfaceNumber}=="01", SYMLINK+="nvtl/status" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="INDIAN", ATTRS{bInterfaceNumber}=="02", SYMLINK+="nvtl/console" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="INDIAN", ATTRS{bInterfaceNumber}=="04", SYMLINK+="nvtl/gps" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="INDIAN", ATTRS{bInterfaceNumber}=="05", SYMLINK+="nvtl/storage" |
|
|
|
# GLOBAL USB GOBI interface ID (EVDO/HSPA) |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="GOBI", ATTRS{bInterfaceNumber}=="00", SYMLINK+="nvtl/fwloader" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="GOBI", ATTRS{bInterfaceNumber}=="01", SYMLINK+="nvtl/composite" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="GOBI", ATTRS{bInterfaceNumber}=="02", SYMLINK+="nvtl/status" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="GOBI", ATTRS{bInterfaceNumber}=="03", SYMLINK+="nvtl/gps" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="GOBI", ATTRS{bInterfaceNumber}=="05", SYMLINK+="nvtl/modem" |
|
|
|
# Generic USB 3G/4G interface ID (includes MDM8220-based devices) |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="3G4G", ATTRS{bInterfaceNumber}=="00", SYMLINK+="nvtl/modem" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="3G4G", ATTRS{bInterfaceNumber}=="01", SYMLINK+="nvtl/status" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="3G4G", ATTRS{bInterfaceNumber}=="02", SYMLINK+="nvtl/application" |
|
KERNEL=="ttyUSB[0-9]*", ENV{technology}=="3G4G", ATTRS{bInterfaceNumber}=="04", SYMLINK+="nvtl/gps" |