aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-07-12 13:29:46 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-07-12 13:29:46 +0000
commit372945185d06e388dd834e3fcd85c7f0c1893899 (patch)
tree2a419670a78608813037d7e6bdf9db05d022ce66 /target/linux/ramips/base-files/lib
parente9af3400160554dd7fc93661837607c3dcf84959 (diff)
downloadupstream-372945185d06e388dd834e3fcd85c7f0c1893899.tar.gz
upstream-372945185d06e388dd834e3fcd85c7f0c1893899.tar.bz2
upstream-372945185d06e388dd834e3fcd85c7f0c1893899.zip
ramips: rt305x: add support for Edimax 3G-6200N
Support for Edimax 3G-6200N router with USB. Signed-off-by: Lukasz Golebiowski <lgolebio@gmail.com> SVN-Revision: 32682
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac4
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
3 files changed, 8 insertions, 0 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 a605b22f8c..db6e5c82f8 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
@@ -8,6 +8,10 @@ preinit_set_mac_address() {
. /lib/ramips.sh
case $(ramips_board_name) in
+ 3g-6200n)
+ mac=$(ramips_get_mac_binary factory 4)
+ ifconfig eth0 hw ether $mac 2>/dev/null
+ ;;
bc2 |\
esr-9753 |\
freestation5 |\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index a5a173436e..277d9da997 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -47,6 +47,9 @@ ramips_board_name() {
machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
case "$machine" in
+ *"Edimax 3g-6200n")
+ name="3g-6200n"
+ ;;
*"Allnet ALL0256N")
name="all0256n"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 1292b83e79..dba5e793b1 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -14,6 +14,7 @@ platform_check_image() {
[ "$ARGC" -gt 1 ] && return 1
case "$board" in
+ 3g-6200n | \
all0256n | \
bc2 | \
dir-300-b1 | \