diff options
author | Bob Proulx <bob@proulx.com> | 2013-08-09 01:18:19 -0600 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-08-20 15:21:56 +0100 |
commit | 9f01050aca6ea0c6181e53a2ed80b931147c7fcf (patch) | |
tree | 12fb0fca8c87215b712fda1f743f614dbafd6c79 /tools | |
parent | db58a28b9b41722aee7c812d6621360c88317049 (diff) | |
download | xen-9f01050aca6ea0c6181e53a2ed80b931147c7fcf.tar.gz xen-9f01050aca6ea0c6181e53a2ed80b931147c7fcf.tar.bz2 xen-9f01050aca6ea0c6181e53a2ed80b931147c7fcf.zip |
vif-bridge: fix cut behavior change
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hotplug/Linux/vif-bridge | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/hotplug/Linux/vif-bridge b/tools/hotplug/Linux/vif-bridge index f48951935a..9a6f82a716 100644 --- 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 |