#---------------------------------------------------------------------------# ACTION!="add", GOTO="ONDA_End" # Is this the ZeroCD device? SUBSYSTEM=="usb", SYSFS{idProduct}=="2000", SYSFS{idVendor}=="19d2", GOTO="ONDA_ZeroCD" # Is this the actual modem? SUBSYSTEM=="usb", SYSFS{idProduct}=="0001", SYSFS{idVendor}=="19d2", GOTO="ONDA_Modem" LABEL="ONDA_ZeroCD" # This is the ZeroCD part of the card, change # the usb_modeswitch kernel module to the # right vendor e product RUN+="/usr/sbin/usb_modeswitch -d 1 -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0001" LABEL="ONDA_Modem" # This is the Modem part of the card, let's # load usbserial with the correct vendor # and product ID's so we get our usb serial devices RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x0001", MODE="660", GROUP="tty" LABEL="ONDA_End" #---------------------------------------------------------------------------#