eclipse-leda / leda-distro

Eclipse Leda provides a Yocto-based build setup for SDV.EDGE components
https://eclipse-leda.github.io/leda/
Apache License 2.0
14 stars 8 forks source link

sdv-motd is confused by wlan interfaces #71

Closed mikehaller closed 1 year ago

mikehaller commented 1 year ago

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:

  1. Connect Raspi with leda image to Wifi only (no ethernet)
  2. 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
  3. 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):

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.