Last active
February 16, 2025 19:10
-
-
Save ryankurte/7eeaa1fab1691075252c to your computer and use it in GitHub Desktop.
Huawei e3131 Linux Setup
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
SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1F01*", SYMLINK+="hwcdrom", RUN+="/usr/bin/sg_raw /dev/hwcdrom 11 06 20 00 00 00 00 00 01 00" |
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 | |
# | |
# Huawei e3131 Linux Setup | |
# Automatically switches the interface to network mode | |
# From: http://www.raspberrypi.org/forums/viewtopic.php?t=18996 | |
# nb. this script will probably need to be run as root. | |
apt-get install sg3-utils | |
cp ./10-HuaweiFlashCard.rules /etc/udev/rules.d/ | |
udevadm control --reload-rules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment