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:
3f403ff
)
add a missing ||
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Thu, 22 Apr 2010 03:36:13 +0000
(13:36 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Thu, 22 Apr 2010 03:36:13 +0000
(13:36 +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 8cbe2225abdd0fdf1870742aa8b310e954c0807b..ab09b0d2acc18f95a2d3d8ab91ae6a03b4369177 100755
(executable)
--- a/
config/events.d/10.interface
+++ b/
config/events.d/10.interface
@@
-193,7
+193,7
@@
case "$1" in
# 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