base-files: failsafe: Fix IP configuration
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 21 Jun 2021 22:45:19 +0000 (00:45 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 22 Jun 2021 21:52:09 +0000 (23:52 +0200)
commitc0fdfd15fc8f1ad8c75c60a8393a6d8b5c2b3b19
treecd0b3f8aebbf71aa53f8cfbffe44672f9437fbf8
parent98b1a6435fdf076f0dbd7cfac31ba73795cc6b23
base-files: failsafe: Fix IP configuration

Adapt the preinit_config_board() to the board.json network changes. It
now looks for the device and the ports variables to configure the LAN
network.

This works with swconfig configurations.

Fixes: FS#3866
Fixes: d42640e389a8 ("base-files: use "ports" array in board.json network for bridges")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 467cd378db3359814866ec4121fdb4417783241e)
package/base-files/files/lib/preinit/10_indicate_preinit