Skip to content

Instantly share code, notes, and snippets.

@mnishihan
Forked from elacheche/HUAWEI_E3531.sh
Created February 4, 2019 17:19
Show Gist options
  • Save mnishihan/156470142c2af7e2cdd99a71c858e36b to your computer and use it in GitHub Desktop.
Save mnishihan/156470142c2af7e2cdd99a71c858e36b to your computer and use it in GitHub Desktop.
Little script to enable HUAWEI E3531 on Ubuntu
sudo apt-get update && sudo apt-get install usb-modeswitch && v=$(lsusb | grep "Huawei" | awk '{ print $6 }' | awk -F: '{ print $1 }'); p=$(lsusb | grep "Huawei" | awk '{ print $6 }' | awk -F: '{ print $2 }'); sudo usb_modeswitch -v $v -p $p -M '55534243123456780000000000000011062000000100000000000000000000'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment