base-files: allow setting device and bridge macs
authorJohn Crispin <john@phrozen.org>
Sat, 28 Nov 2020 10:43:47 +0000 (11:43 +0100)
committerJohn Crispin <john@phrozen.org>
Wed, 2 Dec 2020 06:51:36 +0000 (07:51 +0100)
commit9290539ca9c7b296891b1b386052c0fe308e9a62
tree747e104534af271aaa9eae1d934f820b012f2852
parentf3926d233dba451831f4dd587fb3d01cc126df5b
base-files: allow setting device and bridge macs

Add code for setting mac addresses inside board.json and rendering
them out to uci. On switches we want to have a unique MAC on each port.
With 48 port switches that would require 48 device sections in
/etc/config/network. Doing so via board.json is easier.

Signed-off-by: John Crispin <john@phrozen.org>
package/base-files/files/bin/config_generate
package/base-files/files/lib/functions/uci-defaults.sh