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:23:00 +0000 (23:23 +0200)
commit467cd378db3359814866ec4121fdb4417783241e
treee047c87a4bf9bba7877cf2f02adffaa1fb8771f6
parent2e17c710954bd3506467d700dee23757b138fedd
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>
package/base-files/files/lib/preinit/10_indicate_preinit