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

config/events.d/10.interface

index fdb15571de428558c4171dc357e767fc3a77b821..1e7f94b24680ce1d7221cb132100d45047263499 100755 (executable)
@@ -80,7 +80,7 @@ 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