diff options
author | Brian Harring <ferringb@chromium.org> | 2012-04-13 21:33:05 -0700 |
---|---|---|
committer | Brian Harring <ferringb@chromium.org> | 2012-04-13 23:19:50 -0700 |
commit | b303558ddc795624f3dabc9639e76465ea0d43dd (patch) | |
tree | 89dde736018547a2a77a4b7ff88bb549bf2c5ded | |
parent | kvm-init-script: Fix breakages induced in eb70edb7, up the error checking, cl... (diff) | |
download | kvm-tools-b303558ddc795624f3dabc9639e76465ea0d43dd.tar.gz kvm-tools-b303558ddc795624f3dabc9639e76465ea0d43dd.tar.bz2 kvm-tools-b303558ddc795624f3dabc9639e76465ea0d43dd.zip |
qtap-manipulate: Handle ifconfig appending of ':' to the iface name.
-rwxr-xr-x | qtap-manipulate | 2 |
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 )) |