diff options
author | John Crispin <john@openwrt.org> | 2013-07-22 15:36:39 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-07-22 15:36:39 +0000 |
commit | 0cc1e2acb41a6c0e24579fe35313c81a0751a71a (patch) | |
tree | d4c080590dc3d944aa87d3dedbd350db98815317 /target/linux/ramips/base-files/etc/uci-defaults | |
parent | 11d027380ea8105a7e9120fbc5fb74f32435b82b (diff) | |
download | upstream-0cc1e2acb41a6c0e24579fe35313c81a0751a71a.tar.gz upstream-0cc1e2acb41a6c0e24579fe35313c81a0751a71a.tar.bz2 upstream-0cc1e2acb41a6c0e24579fe35313c81a0751a71a.zip |
ramips: Add support for Huawei HG255D in trunk
HG255D is a kind of popular low-end home gateway in China, this patch bring the the trunk support for it. It is adapted from a local Chinese community (www.right.com.cn), so credit should given to them.
This patch is tested to work except trivial LED issues.
Signed-off-by: Leon Xu <ylxu72@gmail.com>
SVN-Revision: 37505
Diffstat (limited to 'target/linux/ramips/base-files/etc/uci-defaults')
-rwxr-xr-x | target/linux/ramips/base-files/etc/uci-defaults/01_leds | 5 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/etc/uci-defaults/02_network | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds index 608816f195..036d311d9b 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds @@ -124,6 +124,11 @@ case $board in wcr-150gn) set_usb_led "wcr150gn:amber:user" ;; + hg255d) + set_wifi_led "hg255d:wlan" + set_usb_led "hg255d:usb" + ucidef_set_led_netdev "eth" "Internet" "hg255d:internet" "eth0.2" + ;; wnce2001) set_wifi_led "netgear:green:wlan" ;; diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index 747a83d454..cbacd3d621 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -192,6 +192,7 @@ ramips_setup_macs() ;; rt-n13u | \ + hg255d | \ fonera20n) lan_mac=$(mtd_get_mac_binary factory 40) wan_mac=$(macaddr_add "$lan_mac" 1) |