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:
3044d07
)
add a missing ||
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Thu, 22 Apr 2010 04:22:46 +0000
(14:22 +1000)
committer
Ronnie 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
patch
|
blob
|
history
diff --git
a/config/events.d/10.interface
b/config/events.d/10.interface
index fdb15571de428558c4171dc357e767fc3a77b821..1e7f94b24680ce1d7221cb132100d45047263499 100755
(executable)
--- a/
config/events.d/10.interface
+++ b/
config/events.d/10.interface
@@
-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