diff options
author | Ralph Wuerthner <ralph.wuerthner@de.ibm.com> | 2010-04-15 16:38:19 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2010-04-15 16:38:19 +1000 |
commit | d2f7bf804c899b2d1e1be6c4a92fa4a4443e4e78 (patch) | |
tree | 6f6c480c3273673bbd9324c46e09dd1eb46fc161 /ctdb/config | |
parent | 937c5ff336fc02efae038d70020891377b8ba0b1 (diff) | |
download | samba-d2f7bf804c899b2d1e1be6c4a92fa4a4443e4e78.tar.gz samba-d2f7bf804c899b2d1e1be6c4a92fa4a4443e4e78.tar.xz samba-d2f7bf804c899b2d1e1be6c4a92fa4a4443e4e78.zip |
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)
Diffstat (limited to 'ctdb/config')
-rwxr-xr-x | ctdb/config/events.d/10.interface | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/config/events.d/10.interface b/ctdb/config/events.d/10.interface index d7abc186fb..35a8b2f439 100755 --- a/ctdb/config/events.d/10.interface +++ b/ctdb/config/events.d/10.interface @@ -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 |