1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

ar71xx: separate DIR-615 rev. C1 support from the TEW-632 (based on the

patch from #6186)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18818 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg
2009-12-18 12:57:01 +00:00
parent 4fea26d57c
commit 928a89ed7a
13 changed files with 179 additions and 2 deletions

View File

@@ -42,6 +42,9 @@ get_status_led() {
bullet-m | rocket-m | nano-m)
status_led="ubnt:green:link4"
;;
dir-615-c1)
status_led="dir-615c1:green:status"
;;
dir-825-b1)
status_led="dir825b1:orange:power"
;;

View File

@@ -32,6 +32,10 @@ preinit_set_mac_address() {
tew-632brp)
fetch_mac_from_mtd config lan_mac wan_mac
;;
dir-615-c1)
fetch_mac_from_mtd config lan_mac wan_mac
echo 1 > /sys/class/leds/dir-615-c1:green:wancpu/brightness
;;
wrt160nl)
fetch_mac_from_mtd nvram lan_hwaddr wan_hwaddr
;;

View File

@@ -70,6 +70,9 @@ ar71xx_board_name() {
*TL-WR1043ND)
name="tl-wr1043nd"
;;
*"DIR-615 rev. C1")
name="dir-615-c1"
;;
*TL-WR741ND)
name="tl-wr741nd"
;;

View File

@@ -68,7 +68,7 @@ platform_check_image() {
[ "$ARGC" -gt 1 ] && return 1
case "$board" in
ap83 | dir-825-b1 | mzk-w04nu | mzk-w300nh | tew-632brp | wrt-400n | bullet-m | nano-m | rocket-m)
ap83 | dir-615-c1 | dir-825-b1 | mzk-w04nu | mzk-w300nh | tew-632brp | wrt-400n | bullet-m | nano-m | rocket-m)
[ "$magic" != "2705" ] && {
echo "Invalid image type."
return 1