base-files: provide option to specify label MAC address in board.d
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 15 Aug 2019 13:13:27 +0000 (15:13 +0200)
committerPetr Štetiar <ynezz@true.cz>
Thu, 19 Sep 2019 21:43:27 +0000 (23:43 +0200)
commit469e347f19ce9eefdc16f421b8e1f18ed60c310c
treec470df73ff45a454e9c3f37ecc53fce8c55ffb77
parent0340718863040919ecaba74b2173ed52ebc194ce
base-files: provide option to specify label MAC address in board.d

For many devices, MAC addresses cannot be retrieved via the
device tree alias.

To still provide the label MAC address for those, this implements
a second mechanism that will put the address into uci config.
Note that this stores the actual MAC address, whereas in DTS
we reference the bearing device.

This is based on the work of Rosy Song <rosysong@rosinson.com>

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/base-files/files/bin/config_generate
package/base-files/files/lib/functions/system.sh
package/base-files/files/lib/functions/uci-defaults.sh