aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/base-files/etc
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-06-05 15:17:01 +0200
committerChristian Lamparter <chunkeey@gmail.com>2019-06-10 11:25:41 +0200
commit3d153323ab4f6336a8fab771e6eefe9f61ecbfac (patch)
treebf4f807b6e1bf04c915f02b59fe94bf774474b22 /target/linux/ath79/base-files/etc
parentc4fdd4979b7803cd018b7206f1ec53f57cc2d854 (diff)
downloadupstream-3d153323ab4f6336a8fab771e6eefe9f61ecbfac.tar.gz
upstream-3d153323ab4f6336a8fab771e6eefe9f61ecbfac.tar.bz2
upstream-3d153323ab4f6336a8fab771e6eefe9f61ecbfac.zip
ath79: Consistently label info partition
The info/product-info partition, which frequently contains MAC adresses, is typically assigned the 'info' alias in DTS, but then labelled with 'info', 'product-info' or 'config'. This leads to different aliases if used for setting MAC adresses in DTS compared to when using e.g. mtd_get_mac_binary. Occationally, also multiple switch-case entries are used just because of different labelling. This patch relabels those partitions in ath79 to consistently use 'info'. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/base-files/etc')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network12
1 files changed, 3 insertions, 9 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network
index b68cf5742b..a2cd0ac3a6 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -330,17 +330,11 @@ ath79_setup_macs()
lan_mac=$(macaddr_setbit_la "$wan_mac")
;;
tplink,archer-a7-v5|\
- tplink,archer-c7-v5)
- base_mac=$(mtd_get_mac_binary info 8)
- wan_mac=$(macaddr_add "$base_mac" 1)
- ;;
- tplink,archer-c7-v4)
- base_mac=$(mtd_get_mac_binary config 8)
- wan_mac=$(macaddr_add "$base_mac" 1)
- ;;
+ tplink,archer-c7-v4|\
+ tplink,archer-c7-v5|\
tplink,tl-wr1043nd-v4|\
tplink,tl-wr1043n-v5)
- base_mac=$(mtd_get_mac_binary product-info 8)
+ base_mac=$(mtd_get_mac_binary info 8)
wan_mac=$(macaddr_add "$base_mac" 1)
;;
tplink,tl-wr941-v2|\