Skip to content

Instantly share code, notes, and snippets.

View 0xFelix's full-sized avatar

Felix Matouschek 0xFelix

View GitHub Profile
@0xFelix
0xFelix / huawei_dhcp.sh
Last active December 28, 2017 18:29 — forked from halms/huawei_dhcp.sh
Huawei Modem in LEDE using NCM, copy file to /lib/netifd/proto and make it executable (chmod +x huawei_dhcp.sh), kmod-usb-net-huawei-cdc-ncm and usb-modeswitch need to be installed
#!/bin/sh
. /lib/functions.sh
. ../netifd-proto.sh
init_proto "$@"
proto_huawei_dhcp_init_config() {
available=1
proto_config_add_string "device:device"
proto_config_add_string pin