mirror of
https://github.com/samba-team/samba.git
synced 2025-08-24 21:49:29 +03:00
Fix a thinko in 2ea0a9f1a93781a0d036feb9fcc0d120b182922f.
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> (This used to be ctdb commit 3044d07da2a58260fa06bf489890b279bcf3ec39)
This commit is contained in:
@ -80,8 +80,8 @@ monitor_interfaces()
|
||||
# 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
|
||||
|
Reference in New Issue
Block a user