projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db58a28
)
vif-bridge: fix cut behavior change
author
Bob Proulx
<bob@proulx.com>
Fri, 9 Aug 2013 07:18:19 +0000
(
01:18
-0600)
committer
Ian Campbell
<ian.campbell@citrix.com>
Tue, 20 Aug 2013 14:21:56 +0000
(15:21 +0100)
A recent change in GNU cut disallows use of a newline as a field
delimiter. Avoid the problematic use of cut in vif-bridge.
Signed-off-by: Bob Proulx <bob@proulx.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/hotplug/Linux/vif-bridge
patch
|
blob
|
history
diff --git
a/tools/hotplug/Linux/vif-bridge
b/tools/hotplug/Linux/vif-bridge
index f48951935af431dc581be3813f5139ed2341f78b..9a6f82a7168db7115c83c9166dea60f53e3b71c7 100644
(file)
--- a/
tools/hotplug/Linux/vif-bridge
+++ b/
tools/hotplug/Linux/vif-bridge
@@
-37,8
+37,7
@@
bridge=$(xenstore_read_default "$XENBUS_PATH/bridge" "$bridge")
if [ -z "$bridge" ]
then
- bridge=$(brctl show | cut -d "
-" -f 2 | cut -f 1)
+ bridge=$(brctl show | awk 'NR==2{print$1}')
if [ -z "$bridge" ]
then