openwrt/package/base-files/files
Sungbo Eo 7863a8f302 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 298814e6be)
2019-11-26 17:04:17 +01:00
..
bin base-files: config_generate: split macaddr with multiple ifaces 2019-11-26 17:04:17 +01:00
etc base-files: install missing /etc/iproute2/ematch_map 2019-01-08 22:34:07 +01:00
lib base-files: Fix path check in get_mac_binary 2019-07-09 23:08:57 +02:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: sysupgrade: Allow downloading of firmware images using HTTPS 2018-12-18 17:22:07 +01:00
usr base-files: add menuconfig option for HOME_URL 2018-12-18 09:44:01 +01:00