diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu-gen-tapdevs | 2 | ||||
-rwxr-xr-x | scripts/runqemu-internal | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs index 2c1ff0eefb..f5be30ac32 100755 --- a/scripts/runqemu-gen-tapdevs +++ b/scripts/runqemu-gen-tapdevs | |||
@@ -70,7 +70,7 @@ if [ ! -x "$IFCONFIG" ]; then | |||
70 | fi | 70 | fi |
71 | 71 | ||
72 | # Ensure we start with a clean slate | 72 | # Ensure we start with a clean slate |
73 | for tap in `$IFCONFIG | grep ^tap | awk '{ print \$1 }'`; do | 73 | for tap in `$IFCONFIG | grep ^tap | awk '{ print \$1 }' | sed s/://`; do |
74 | echo "Note: Destroying pre-existing tap interface $tap..." | 74 | echo "Note: Destroying pre-existing tap interface $tap..." |
75 | $TUNCTL -d $tap | 75 | $TUNCTL -d $tap |
76 | done | 76 | done |
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 6e20dd7512..6b8bb6520e 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal | |||
@@ -154,7 +154,7 @@ if [ ! -x "$IFCONFIG" ]; then | |||
154 | exit 1 | 154 | exit 1 |
155 | fi | 155 | fi |
156 | 156 | ||
157 | POSSIBLE=`$IFCONFIG -a | grep '^tap' | awk '{print $1}'` | 157 | POSSIBLE=`$IFCONFIG -a | grep '^tap' | awk '{print $1}' | sed s/://` |
158 | TAP="" | 158 | TAP="" |
159 | LOCKFILE="" | 159 | LOCKFILE="" |
160 | for tap in $POSSIBLE; do | 160 | for tap in $POSSIBLE; do |