From b303558ddc795624f3dabc9639e76465ea0d43dd Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Fri, 13 Apr 2012 21:33:05 -0700 Subject: qtap-manipulate: Handle ifconfig appending of ':' to the iface name. --- qtap-manipulate | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qtap-manipulate b/qtap-manipulate index 7e1ec53..09727ec 100755 --- a/qtap-manipulate +++ b/qtap-manipulate @@ -11,6 +11,8 @@ has() { find_available_node() { local val=$(ifconfig -a | grep -i ^qtap | cut -d ' ' -f1) + # Strip off ifconfig appended ':' + val="${val%:}" local pos=0 while has qtap${pos} $val; do pos=$(( $pos + 1 )) -- cgit v1.2.3-65-gdbad