aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorBangLang Huang <banglang.huang@foxmail.com>2017-01-18 17:45:48 +0800
committerJohn Crispin <john@phrozen.org>2017-01-18 12:05:14 +0100
commit2a7f669016f2faa29d64a59252556b96a55d071a (patch)
tree7ec824012582f622853ca979a7adbe3e0393bf9b /target/linux/ramips/base-files
parent2b84dfafa44df86981ac909934e2ff4cfe7a02ea (diff)
downloadupstream-2a7f669016f2faa29d64a59252556b96a55d071a.tar.gz
upstream-2a7f669016f2faa29d64a59252556b96a55d071a.tar.bz2
upstream-2a7f669016f2faa29d64a59252556b96a55d071a.zip
ramips: fix mac address of miwifi-mini
For the miwifi-mini, the offset of ethernet mac should be 0x28 which you can easyily dump from 'Factory' partition. Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 2d8d8edc29..e037cbce32 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -357,6 +357,10 @@ ramips_setup_macs()
lan_mac=$(mtd_get_mac_binary factory_info 13)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
+ miwifi-mini)
+ wan_mac=$(cat /sys/class/net/eth0/address)
+ lan_mac=$(macaddr_setbit_la "$wan_mac")
+ ;;
m3|\
m4|\
x5|\