mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +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:
parent
d2f7bf804c
commit
f765f0ceca
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user