Describe the bug
The sdv-motd shows a confused output for WIFI/WLAN network devices, as it tries to parse output of another tool.
To Reproduce
Steps to reproduce the behaviour:
Connect Raspi with leda image to Wifi only (no ethernet)
Output of sdv-motd (e.g. after login) shows Device "wlan0 metric 10 " does not exist. For certain setups, it also shows Device "" does not exist
There is no IP address being displayed, even if wifi is connected and DHCP assigned IP address. Probably caused by parsing mistake.
Expected behaviour
The parsing of the IP address works properly also for combinations of connected network interfaces, e.g. wifi only, wifi + eth, eth only. Maybe also needs testing with additional wifi usb connectors plugged into USB, as it may create additional confusion with "wlan1" etc.
Leda Version (please complete the following information):
Version: 0.1.0-M1, 0.0.6
Machine: raspberrypi4-64
Connectivity: wifi
Additional context
The Device "" does not exist error comes up even if ethernet is linked (connected to a switch, so there is no IP assigned).
ip a shows eth0 and wlan0 available (UP) but without IP addresses.
Describe the bug The sdv-motd shows a confused output for WIFI/WLAN network devices, as it tries to parse output of another tool.
To Reproduce Steps to reproduce the behaviour:
Device "wlan0 metric 10 " does not exist
. For certain setups, it also showsDevice "" does not exist
Expected behaviour The parsing of the IP address works properly also for combinations of connected network interfaces, e.g. wifi only, wifi + eth, eth only. Maybe also needs testing with additional wifi usb connectors plugged into USB, as it may create additional confusion with "wlan1" etc.
Leda Version (please complete the following information):
Additional context The
Device "" does not exist
error comes up even if ethernet is linked (connected to a switch, so there is no IP assigned).ip a
shows eth0 and wlan0 available (UP) but without IP addresses.