add a missing ||
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 22 Apr 2010 03:36:13 +0000 (13:36 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 22 Apr 2010 03:36:13 +0000 (13:36 +1000)
to make the 10.interface script not fail with a syntax error

config/events.d/10.interface

index 8cbe2225abdd0fdf1870742aa8b310e954c0807b..ab09b0d2acc18f95a2d3d8ab91ae6a03b4369177 100755 (executable)
@@ -193,7 +193,7 @@ case "$1" in
                # 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