# Cypress USB driver for FX2 and FX3 (C) Cypress Semiconductor Corporation / ATR-LABS
# Rules written by V. Radhakrishnan ( rk@atr-labs.com )
# Cypress USB vendor ID = 0x1CF1
KERNEL=="ttyUSB*", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="ttyUSB.SiMFB"
KERNEL=="*", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", RUN+="rm /dev/ttyUSB.SiMFB"

KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", SYMLINK+="ttyDeRadio"
KERNEL=="*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", RUN+="rm /dev/ttyDeRadio"

#HUAWEI ME909s-120
KERNEL=="ttyUSB*", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="15c1", SYMLINK+="ttyACM%E{ID_USB_INTERFACE_NUM}"

ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="15c1", RUN+="/bin/bash -c 'modprobe option && echo 12d1 15c1 > /sys/bus/usb-serial/drivers/option1/new_id'"
