If the driver is virtio_net then we assume that the link is up rather
than ignoring the check altogether.
Signed-off-by: Martin Schwenke <martin@meltin.net>
# we dont know how to test ib links
;;
*)
- [ -z "$IFACE" ] ||
- [ "$(basename $(readlink /sys/class/net/$IFACE/device/driver))" = virtio_net ] || {
+ [ -z "$IFACE" ] {
+ [ "$(basename $(readlink /sys/class/net/$IFACE/device/driver))" = virtio_net ] ||
ethtool $IFACE | grep -q 'Link detected: yes' || {
# On some systems, this is not successful when a
# cable is plugged but the interface has not been