aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/board.d
diff options
context:
space:
mode:
authorBangLang Huang <banglang.huang@foxmail.com>2017-01-18 17:45:48 +0800
committerJo-Philipp Wich <jo@mein.io>2017-04-28 17:07:04 +0200
commit846457fdbffaffdf44d668715e88cb21765ec6c9 (patch)
treef707c20a3c93bbe184b6989af5177f2158b7e949 /target/linux/ramips/base-files/etc/board.d
parent7ee09377e7e3c64ee56514bf455cf04064208a27 (diff)
downloadupstream-846457fdbffaffdf44d668715e88cb21765ec6c9.tar.gz
upstream-846457fdbffaffdf44d668715e88cb21765ec6c9.tar.bz2
upstream-846457fdbffaffdf44d668715e88cb21765ec6c9.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/etc/board.d')
-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 1c40d550a1..ebca378972 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -358,6 +358,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|\