Last active
June 11, 2018 21:17
-
-
Save ryankurte/55d2c348b89792188852 to your computer and use it in GitHub Desktop.
Enable Huawei K4203 Cellular Internet dongle on Linux
This file contains hidden or 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
TargetVendor=0x12d1 | |
TargetProduct=0x1f1c | |
MessageContent="55534243123456780000000000000011062000000101000100000000000000" |
This file contains hidden or 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
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f1c", RUN+="usb_modeswitch '%b/%k'" |
This file contains hidden or 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
#!/bin/bash | |
#Install udev rule | |
cp ./12d1\:1f1c /etc/usb_modeswitch.d/ | |
#Install usb modeswitch rule | |
cp ./40-usb_modeswitch.rules /etc/udev/rules.d/ |
Just to add I have the same issue, running it as @webworxshop recommends works. This goes into the 40-usb_modeswitch.rules file for anyone interested.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Raspbian Stretch
usb_modeswitch
seems not to be able to identify the device correctly using this method. Specifying the options directly to the command works, as follows: