Last active
July 5, 2021 14:07
-
-
Save elacheche/aa5a5e42b11e8deb6187 to your computer and use it in GitHub Desktop.
Little script to enable HUAWEI E3531 on Ubuntu
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
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