Created
August 26, 2015 02:06
-
-
Save indiejoseph/8745574908af43e40e1a to your computer and use it in GitHub Desktop.
openwrt u8300 LTE model
This file contains 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/sh | |
U8300_PROID="1c9e/9b05/232" | |
if [ "${PRODUCT}" = "${U8300_PROID}" ]; then | |
if [ "${ACTION}" = "add" ]; then | |
#register usbserial and option device driver with the modem mode id: | |
echo '1c9e 9b05 ff' > /sys/bus/usb-serial/drivers/option1/new_id | |
logger -t HOTPLUG "${U8300_PROID} plugged in." | |
fi | |
if [ "${ACTION}" = "remove" ]; then | |
logger -t HOTPLUG "${U8300_PROID} was removed." | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment