Skip to content

Instantly share code, notes, and snippets.

@ryankurte
Last active February 17, 2022 18:29
Show Gist options
  • Save ryankurte/7eeaa1fab1691075252c to your computer and use it in GitHub Desktop.
Save ryankurte/7eeaa1fab1691075252c to your computer and use it in GitHub Desktop.
Huawei e3131 Linux Setup
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"
#!/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