summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qtap-manipulate')
-rwxr-xr-xqtap-manipulate2
1 files changed, 2 insertions, 0 deletions
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 ))