From: Bob Proulx Date: Fri, 9 Aug 2013 07:18:19 +0000 (-0600) Subject: vif-bridge: fix cut behavior change X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6520 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9f01050aca6ea0c6181e53a2ed80b931147c7fcf;p=xen.git 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 Acked-by: Ian Campbell --- 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