git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02862c0
)
treat interfaces with the name ethX* as bond devices
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 21 Oct 2009 00:34:17 +0000
(11:34 +1100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 21 Oct 2009 00:34:17 +0000
(11:34 +1100)
config/events.d/10.interface
patch
|
blob
|
history
diff --git
a/config/events.d/10.interface
b/config/events.d/10.interface
index 08717503a3df44059015d26eb3433347fe1de09d..61f7148236996e87bd9ac715d501f018a73f0467 100755
(executable)
--- a/
config/events.d/10.interface
+++ b/
config/events.d/10.interface
@@
-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"