mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
ethtool does not support virtio_net devices.
Skip link test for this type of devices Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com> Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 2ea0a9f1a93781a0d036feb9fcc0d120b182922f)
This commit is contained in:
parent
937c5ff336
commit
d2f7bf804c
@ -80,7 +80,8 @@ monitor_interfaces()
|
||||
# we dont know how to test ib links
|
||||
;;
|
||||
*)
|
||||
[ -z "$IFACE" ] || {
|
||||
[ -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