aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-12-28 08:43:32 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-12-28 08:43:32 +0000
commit98437278c4ee4f12bc224e0a80168a04075e3055 (patch)
tree5ac11087de31670eae48029f1f9fbcf522542764 /target/linux/ramips/base-files/lib
parent76dacee9956eaa02b6e493992d83764f123025bb (diff)
downloadupstream-98437278c4ee4f12bc224e0a80168a04075e3055.tar.gz
upstream-98437278c4ee4f12bc224e0a80168a04075e3055.tar.bz2
upstream-98437278c4ee4f12bc224e0a80168a04075e3055.zip
ramips: rt305x: add support for the ALFA Networks W502U (R36) board
SVN-Revision: 29615
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
3 files changed, 6 insertions, 1 deletions
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 eade567c39..f1d641cd29 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
@@ -21,7 +21,8 @@ preinit_set_mac_address() {
;;
hw550-3g |\
nbg-419n |\
- omni-emb)
+ omni-emb |\
+ w502u)
mac=$(ramips_get_mac_binary factory 40)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index d197fcedca..f05fc3d71c 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -101,6 +101,9 @@ ramips_board_name() {
*"V22RW-2X2")
name="v22rw-2x2"
;;
+ *"W502U")
+ name="w502u"
+ ;;
*"WHR-G300N")
name="whr-g300n"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index aebaf3879e..6d5d6021fb 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -26,6 +26,7 @@ platform_check_image() {
omni-emb | \
rt-g32-b1 | \
rt-n15 | \
+ w502u |\
v22rw-2x2 | \
wli-tx4-ag300n | \
whr-g300n)