1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-26 09:37:29 +02:00
openwrt/package
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
..
base-files base-files: config_generate: split macaddr with multiple ifaces 2019-11-26 17:04:17 +01:00
boot ar71xx: update uboot-envtools for Netgear WNR routers 2019-11-12 16:31:09 +01:00
devel strace: Update to 4.22 2018-12-18 17:22:08 +01:00
firmware ath10k: update QCA4019 firmware 2018-12-27 16:38:13 +01:00
kernel mac80211: brcmfmac: fix PCIe reset crash and WARNING 2019-11-18 15:23:56 +01:00
libs ustream-ssl: backport fix for CVE-2019-5101, CVE-2019-5102 2019-11-05 15:12:18 +01:00
network iptables: bump PKG_RELEASE 2019-10-24 10:41:07 +00:00
system config: introduce separate CONFIG_SIGNATURE_CHECK option 2019-08-07 07:54:27 +02:00
utils bzip2: Fix CVE-2019-12900 2019-09-03 12:55:00 +02:00
Makefile packages: apply usign padding workarounds to package indexes if needed 2019-08-07 07:23:51 +02:00