diff options
author | John Crispin <blogic@openwrt.org> | 2013-08-05 10:41:48 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-08-05 10:41:48 +0000 |
commit | bfaf62a45f78c22e8001f499dd420c426b257559 (patch) | |
tree | 5212e22e9141ae1edecd3851be1220eb1411dd60 /target/linux/ar71xx/base-files | |
parent | 1ddc303962ddc174ae17db03b55e24bbbc512289 (diff) | |
download | upstream-bfaf62a45f78c22e8001f499dd420c426b257559.tar.gz upstream-bfaf62a45f78c22e8001f499dd420c426b257559.tar.bz2 upstream-bfaf62a45f78c22e8001f499dd420c426b257559.zip |
ar71xx: add support for dir 505 a1
this patch is based on ...
-> https://forum.openwrt.org/viewtopic.php?pid=179902#p179902
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37703 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
5 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 48c30eeabf..7b790e2453 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -43,6 +43,7 @@ get_status_led() { db120) status_led="db120:green:status" ;; + dir-505-a1 |\ dir-600-a1 |\ dir-615-e4) status_led="d-link:green:power" diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index 2db8941a67..f55f1fe7c2 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -57,6 +57,10 @@ rb-750) ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02" ;; +dir-505-a1) + ucidef_set_led_netdev "lan" "LAN" "d-link:green:power" "eth1" + ;; + dir-600-a1|\ dir-615-e4) ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1" diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index 3d097511cb..176c485108 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -222,6 +222,10 @@ wp543) ucidef_set_interface_lan "eth0" ;; +dir-505-a1) + ucidef_set_interface_lan "eth1" + ;; + alfa-ap96 |\ alfa-nx |\ ap83 |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 14fdfb1e8f..d64e4a0c32 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -243,6 +243,9 @@ ar71xx_board_detect() { *"DB120 reference board") name="db120" ;; + *"DIR-505 rev. A1") + name="dir-505-a1" + ;; *"DIR-600 rev. A1") name="dir-600-a1" ;; @@ -396,6 +399,9 @@ ar71xx_board_detect() { *TL-WR2543N*) name="tl-wr2543n" ;; + *DIR-505-A1) + name="dir-505-a1" + ;; *"DIR-615 rev. C1") name="dir-615-c1" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 308b4f14b0..1b3273d19f 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -105,6 +105,7 @@ platform_check_image() { ap81 | \ ap83 | \ ap132 | \ + dir-505-a1 | \ dir-600-a1 | \ dir-615-c1 | \ dir-615-e4 | \ |