Skip to content

Instantly share code, notes, and snippets.

@hmenn
Forked from ryankurte/12d1:1f1c
Created December 24, 2017 13:20
Show Gist options
  • Save hmenn/09eca98442514ef4283273eced7ec7a6 to your computer and use it in GitHub Desktop.
Save hmenn/09eca98442514ef4283273eced7ec7a6 to your computer and use it in GitHub Desktop.
Enable Huawei K4203 Cellular Internet dongle on Linux
TargetVendor=0x12d1
TargetProduct=0x1f1c
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f1c", RUN+="usb_modeswitch '%b/%k'"
#!/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