Created
September 1, 2013 13:43
-
-
Save dwiash/6404554 to your computer and use it in GitHub Desktop.
Smartfren CE81B Modem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this following lines into /etc/udev/rules.d/haier-port-blacklist.rules | |
ACTION!="add|change", GOTO="mm_haier_port_types_end" | |
SUBSYSTEM!="tty", GOTO="mm_haier_port_types_end" | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="201e", GOTO="mm_haier_vendorcheck" | |
GOTO="mm_haier_port_types_end" | |
LABEL="mm_haier_vendorcheck" | |
SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", | |
ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}" | |
# Haier CE81B | |
ATTRS{idProduct}=="10f8", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_CANDIDATE}="0" | |
ATTRS{idProduct}=="10f8", ENV{.MM_USBIFNUM}=="01", ENV{ID_MM_CANDIDATE}="0" | |
ATTRS{idProduct}=="10f8", ENV{.MM_USBIFNUM}=="00", ENV{ID_MM_CANDIDATE}="0" | |
GOTO="mm_haier_port_types_end" | |
LABEL="mm_haier_port_types_end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# then reload rules by issuing this line into your shell | |
sudo vim /etc/udev/rules.d/haier-port-blacklist.rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# finally, issue this line every time you're going to plug your Smartfren CE81B Modem | |
sudo modprobe usbserial vendor=0x201e product=0x10f8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment