diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-07-22 15:36:39 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-07-22 15:36:39 +0000 |
commit | 00f429757bee0996f40f2c4046c572afad0a3f3f (patch) | |
tree | 93c7d19fba0dedc2ebfb62a944525b4506647c15 /target/linux/ramips/base-files/etc | |
parent | 7be1a520efefa38f513a66f70130b7913634f268 (diff) |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37505 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/etc')
3 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index fef89eae0e..469811eb2b 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -104,7 +104,8 @@ case "$FIRMWARE" in mzk-w300nh2 | \ ur-326n4g | \ ur-336un | \ - xdxrn502j) + xdxrn502j | \ + hg255d) rt2x00_eeprom_extract "factory" 0 512 ;; 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) |