Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Forked from elacheche/HUAWEI_E3531.sh
Created November 18, 2020 08:00
Show Gist options
  • Save Voronenko/9b2e455dc45af9000795e8011625d026 to your computer and use it in GitHub Desktop.
Save Voronenko/9b2e455dc45af9000795e8011625d026 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