diff options
author | John Crispin <blogic@openwrt.org> | 2013-04-03 10:00:08 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-04-03 10:00:08 +0000 |
commit | 12e2a6d321466bc760b0dee0b72457f5d9e296e2 (patch) | |
tree | e1e90825552dd10e4c7fc03972279210fedd40da /target/linux/ramips/base-files | |
parent | 6e4120f245f79c3a3b7dd296b95a114c7dbf93fb (diff) | |
download | upstream-12e2a6d321466bc760b0dee0b72457f5d9e296e2.tar.gz upstream-12e2a6d321466bc760b0dee0b72457f5d9e296e2.tar.bz2 upstream-12e2a6d321466bc760b0dee0b72457f5d9e296e2.zip |
[ramips] add Huawei D105
http://patchwork.openwrt.org/patch/3510/
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36173 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
7 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 0c2ae83c75..dbde1f7775 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -21,6 +21,9 @@ get_status_led() { br6425) status_led="edimax:green:power" ;; + d105) + status_led="d105:red:power" + ;; dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-615-h1 | dir-615-d | dir-620-a1) status_led="d-link:green:status" ;; 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 de5a542f38..6dd36d7403 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 @@ -64,6 +64,7 @@ case "$FIRMWARE" in broadway | \ br6524n | \ carambola | \ + d105 | \ dir-615-h1 | \ dir-620-a1 | \ esr-9753 | \ 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 65497266ee..bb8a5dcbd0 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds @@ -48,6 +48,10 @@ case $board in br6524n) set_wifi_led "edimax:blue:wlan" ;; + d105) + ucidef_set_led_default "power" "POWER" "d105:red:power" "1" + set_usb_led "d105:green:usb" + ;; dir-300-b1|\ dir-600-b1|\ dir-600-b2|\ 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 7d30f72f08..d2400870c6 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -125,6 +125,7 @@ ramips_setup_interfaces() ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1" ;; + d105 | \ omni-emb-hpm|\ wli-tx4-ag300n) ucidef_set_interface_lan "eth0" @@ -249,6 +250,7 @@ ramips_setup_macs() wan_mac=$(macaddr_add "$lan_mac" 1) ;; + d105 | \ wli-tx4-ag300n) lan_mac=$(mtd_get_mac_binary factory 4) ;; diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac index e860309ec4..985d1bc8f7 100644 --- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac @@ -20,6 +20,7 @@ preinit_set_mac_address() { ;; bc2 |\ broadway |\ + d105 |\ dir-620-a1 |\ esr-9753 |\ freestation5 |\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 2a713f8c65..4948e5b5cc 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -105,6 +105,9 @@ ramips_board_detect() { *"Hauppauge Broadway") name="broadway" ;; + *"Huawei D105") + name="d105" + ;; *"La Fonera 2.0N") name="fonera20n" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index a6f52cd143..e2a55feabb 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -24,6 +24,7 @@ platform_check_image() { bc2 | \ broadway | \ carambola | \ + d105 | \ dir-300-b1 | \ dir-600-b1 | \ dir-600-b2 | \ |