echo -e '# udev-rules for switching BandLuxe modems from storage mode to modem mode - anttu v.110427 \n\nBUS=="usb", SUBSYSTEM=="block", SYSFS{idVendor}=="1a8d", ACTION=="add", RUN+="/usr/bin/eject -s %N", OPTIONS+="last_rule"' > 25-c339.rules
sudo cp 25-c339.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
apt-get install usb-modeswitch
tail -f /var/log/messages |grep usb-modeswitch
cd /etc/udev/rules.d/ sudo wget http://siptune.net/downloads/15-e1552.rules cd -
gksudo gedit /etc/udev/rules.d/15-e1552.rules
# udev-rule for switching modems from storage to modem - anttu - v.100508 SUBSYSTEM=="usb", RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"
cd /etc/udev/rules.d/ sudo wget http://siptune.net/downloads/25-mokkulat.rules cd -
# udev-rules for switching modems from storage mode to modem mode - anttu - v.091216 # a-link 3gu turbo BUS=="usb", SUBSYSTEM=="block", SYSFS{idVendor}=="1e0e", SYSFS{idProduct}=="f000", ACTION=="add", RUN+="/usr/bin/eject -s %N", OPTIONS+="last_rule" BUS=="usb", SUBSYSTEM=="block", SYSFS{idVendor}=="1e0e", SYSFS{idProduct}=="9200", ACTION=="add", RUN+="/sbin/modprobe -r option", RUN+="/sbin/modprobe -r usbserial", RUN+="/sbin/modprobe usbserial vendor=0x1e0e product=0x9200", RUN+="/sbin/modprobe option", OPTIONS+="last_rule" # nokia cs-15 BUS=="usb", SUBSYSTEM=="block", SYSFS{idVendor}=="0421", SYSFS{idProduct}=="0610", ACTION=="add", RUN+="/usr/bin/eject -s %N", OPTIONS+="last_rule" # huawei e1762 BUS=="usb", SUBSYSTEM=="block", SYSFS{idVendor}=="12d1", SYSFS{idProduct}=="1446", ACTION=="add", RUN+="/usr/sbin/usb_modeswitch -v 0x12d1 -p 0x1446 -V 0x12d1 -P 0x1003 -m 0x01 -M '55534243123456780000000000000011060000000000000000000000000000'", OPTIONS+="last_rule" # siptune lm-75 BUS=="usb", SUBSYSTEM=="block", SYSFS{idVendor}=="05c6", SYSFS{idProduct}=="f000", ACTION=="add", RUN+="/usr/bin/eject -s %N", OPTIONS+="last_rule" BUS=="usb", SUBSYSTEM=="block", SYSFS{idVendor}=="05c6", SYSFS{idProduct}=="9000", ACTION=="add", RUN+="/sbin/modprobe -r option", RUN+="/sbin/modprobe -r usbserial", RUN+="/sbin/modprobe usbserial vendor=0x05c6 product=0x9000", RUN+="/sbin/modprobe option", OPTIONS+="last_rule" # zte mf-636+ BUS=="usb", SUBSYSTEM=="block", SYSFS{idVendor}=="19d2", SYSFS{idProduct}=="2000", ACTION=="add", RUN+="/usr/bin/eject -s %N", OPTIONS+="last_rule"
# siptune lm-75 BUS=="usb", SUBSYSTEM=="block", SYSFS{idVendor}=="05c6", SYSFS{idProduct}=="f000", ACTION=="add", RUN+="/usr/bin/eject -s %N", OPTIONS+="last_rule" BUS=="usb", SUBSYSTEM=="block", SYSFS{idVendor}=="05c6", SYSFS{idProduct}=="9000", ACTION=="add", RUN+="/usr/sbin/lm-init", OPTIONS+="last_rule"
#!/bin/bash sudo modprobe -r option sudo modprobe -r usbserial sudo modprobe usbserial vendor=0x05c6 product=0x9000 sudo modprobe option sleep 10 sudo wvdial
sudo chmod +x /usr/sbin/lm-init
Contributors to this page: admin and Laura . Page last modified on Sunday 27 of January, 2013[06:18:30 UTC].