1 |
commit: 844455dd67786195ce2353ccb40255b907c4b16d |
2 |
Author: Brian Harring <ferringb <AT> chromium <DOT> org> |
3 |
AuthorDate: Fri Aug 24 04:18:06 2012 +0000 |
4 |
Commit: Brian Harring <ferringb <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 24 04:18:06 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kvm-tools.git;a=commit;h=844455dd |
7 |
|
8 |
Pull in a fix from rafaelmartins for dealing w/ multiple qtaps. |
9 |
|
10 |
--- |
11 |
.../qemu-init-scripts/files/qtap-manipulate | 4 +--- |
12 |
1 files changed, 1 insertions(+), 3 deletions(-) |
13 |
|
14 |
diff --git a/app-emulation/qemu-init-scripts/files/qtap-manipulate b/app-emulation/qemu-init-scripts/files/qtap-manipulate |
15 |
index 426bc78..41ab0ca 100644 |
16 |
--- a/app-emulation/qemu-init-scripts/files/qtap-manipulate |
17 |
+++ b/app-emulation/qemu-init-scripts/files/qtap-manipulate |
18 |
@@ -12,9 +12,7 @@ has() { |
19 |
} |
20 |
|
21 |
find_available_node() { |
22 |
- local val=$(ifconfig -a | grep -i ^qtap | cut -d ' ' -f1) |
23 |
- # Strip off ifconfig appended ':' |
24 |
- val="${val%:}" |
25 |
+ local val=$(ifconfig -a | grep -i ^qtap | cut -d: -f1) |
26 |
local pos=0 |
27 |
while has qtap${pos} $val; do |
28 |
pos=$(( $pos + 1 )) |