diff options
author | Stefan Lippers-Hollmann <s.l-h@gmx.de> | 2021-05-07 00:44:03 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2021-05-08 18:45:42 +0200 |
commit | 2db9dded0a1a6133398e75006320f6c1f5d0e17b (patch) | |
tree | 6650004150d1d48e6b76811230c75c8bcba019fa /target/linux/ipq806x/base-files/etc/board.d/02_network | |
parent | d62825dd77b3990b8ff2cf341ff3a8b16f4883d1 (diff) | |
download | upstream-2db9dded0a1a6133398e75006320f6c1f5d0e17b.tar.gz upstream-2db9dded0a1a6133398e75006320f6c1f5d0e17b.tar.bz2 upstream-2db9dded0a1a6133398e75006320f6c1f5d0e17b.zip |
ipq806x: nbg6817: case-insensitive qcom-smem partitions
The out-of-tree qcom-smem patches traditionally displayed mtd partition names
in upper case, starting with the new mainline qcom-smem support in kernel v5.10,
it switches to normalizing the partition names to lower case.
Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Diffstat (limited to 'target/linux/ipq806x/base-files/etc/board.d/02_network')
-rw-r--r-- | target/linux/ipq806x/base-files/etc/board.d/02_network | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ipq806x/base-files/etc/board.d/02_network b/target/linux/ipq806x/base-files/etc/board.d/02_network index 81edc569a7..511794a3ce 100644 --- a/target/linux/ipq806x/base-files/etc/board.d/02_network +++ b/target/linux/ipq806x/base-files/etc/board.d/02_network @@ -69,7 +69,10 @@ ubnt,unifi-ac-hd) ucidef_set_interface_lan "eth0 eth1" ;; zyxel,nbg6817) - hw_mac_addr=$(mtd_get_mac_ascii 0:APPSBLENV ethaddr) + hw_mac_addr=$(mtd_get_mac_ascii 0:appsblenv ethaddr) + # XXX: drop upper case after kernel v5.4 is gone (qcom-smem) + [ -n "$hw_mac_addr" ] || \ + hw_mac_addr=$(mtd_get_mac_ascii 0:APPSBLENV ethaddr) ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0" ucidef_set_interface_macaddr "lan" "$(macaddr_add $hw_mac_addr 2)" |