-
-
Save hmenn/09eca98442514ef4283273eced7ec7a6 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/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment