treat interfaces with the name ethX* as bond devices
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 21 Oct 2009 00:34:17 +0000 (11:34 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 21 Oct 2009 00:34:17 +0000 (11:34 +1100)
config/events.d/10.interface

index 08717503a3df44059015d26eb3433347fe1de09d..61f7148236996e87bd9ac715d501f018a73f0467 100755 (executable)
@@ -145,7 +145,7 @@ case $cmd in
 
        for IFACE in $INTERFACES ; do
            case $IFACE in 
-           bond*)
+           ethX*|bond*)
                IFACE=`echo $IFACE |sed -e 's/\....$//'`
                grep -q '^MII Status: up' /proc/net/bonding/$IFACE || {
                        echo "ERROR: public network interface $IFACE is down"