Skip to content

Instantly share code, notes, and snippets.

@indiejoseph
Created August 26, 2015 02:06
Show Gist options
  • Save indiejoseph/8745574908af43e40e1a to your computer and use it in GitHub Desktop.
Save indiejoseph/8745574908af43e40e1a to your computer and use it in GitHub Desktop.
openwrt u8300 LTE model
#!/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