Ben Hutchings 80eddcf6c1 scripts/functions: Make configure_networking wait for device specified any way
configure_networking can now wait for a named net device, but the net
device may be specified by hardware (MAC) address or not at all.

* Factor out the hardware-address-to-device lookup into a function
* Add a function to check whether any suitable device exists
* Change the wait loop to use the appropriate check for device
  existence
* Update the IP variable after the wait loop, so it follows the
  hardware-address-to-device lookup

Closes: #911727
Signed-off-by: Ben Hutchings <benh@debian.org>
2022-04-10 21:59:31 +02:00
..