git.samba.org
/
sahlberg
/
ctdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
From Alexander Saupp.
[sahlberg/ctdb.git]
/
config
/
events.d
/
10.interface
diff --git
a/config/events.d/10.interface
b/config/events.d/10.interface
index 8283a3f20d9547d1304b16f66cceafe765de5945..15e55618d1538a906c1423a3537cd427ffd518bf 100755
(executable)
--- a/
config/events.d/10.interface
+++ b/
config/events.d/10.interface
@@
-147,6
+147,7
@@
case $cmd in
for IFACE in $INTERFACES ; do
case $IFACE in
bond*)
+ IFACE=`echo $IFACE |sed -e 's/\....$//'`
grep '^MII Status: up' /proc/net/bonding/$IFACE > /dev/null || {
echo "ERROR: public network interface $IFACE is down"
exit 1