diff options
author | Sungbo Eo <mans0n@gorani.run> | 2019-11-12 01:20:45 +0900 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-26 17:01:12 +0100 |
commit | a2d9de21b841ab641c81cf3f6f9eb53e7bbf4a6b (patch) | |
tree | 7626f1f16b6f81dbda2361f11812779fc5adf795 /target/linux/ath79/generic | |
parent | 3a5e28bd266b8e5de59ed9d9c198184b7c3e027a (diff) | |
download | upstream-a2d9de21b841ab641c81cf3f6f9eb53e7bbf4a6b.tar.gz upstream-a2d9de21b841ab641c81cf3f6f9eb53e7bbf4a6b.tar.bz2 upstream-a2d9de21b841ab641c81cf3f6f9eb53e7bbf4a6b.zip |
base-files: config_generate: split macaddr with multiple ifaces
netifd does not handle network.@device[x].name properly if it
contains multiple ifaces separated by spaces. Due to this, board.d
lan_mac setup does not work if multiple ifaces are set to LAN by
ucidef_set_interface_lan.
To fix this, create a device node for each member iface when
running config_generate instead. Those are named based on the
member ifname:
ucidef_set_interface_lan "eth0 eth1.1"
ucidef_set_interface_macaddr "lan" "yy:yy:yy:yy:yy:01"
will return
config device 'lan_eth0_dev'
option name 'eth0'
option macaddr 'yy:yy:yy:yy:yy:01'
config device 'lan_eth1_1_dev'
option name 'eth1.1'
option macaddr 'yy:yy:yy:yy:yy:01'
ref: https://github.com/openwrt/openwrt/pull/2542
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
[always use new scheme, extend description, change commit title]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 298814e6be7640d89328de9e7c90d4349e30683f)
Diffstat (limited to 'target/linux/ath79/generic')
0 files changed, 0 insertions, 0 deletions