Skip to content
  • Mick Tarsel's avatar
    Use first network interface that is up · 7e7fed4f
    Mick Tarsel authored and Natanael Copa's avatar Natanael Copa committed
    Previous code would return eth0 every time and pay no attention
    if interface was up. This patch gets the state from operstate file
    in sysfs to use the interface that is actually up in case there
    are multiple interfaces present. If no interface is up, just use
    last interface.
    7e7fed4f