diff options
Diffstat (limited to 'scripts/runqemu-ifup')
-rwxr-xr-x | scripts/runqemu-ifup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup index fe4492e78b..c65ceaf1c8 100755 --- a/scripts/runqemu-ifup +++ b/scripts/runqemu-ifup | |||
@@ -45,7 +45,7 @@ if [ -z "$OE_TAP_NAME" ]; then | |||
45 | fi | 45 | fi |
46 | 46 | ||
47 | if taps=$(ip tuntap list 2>/dev/null); then | 47 | if taps=$(ip tuntap list 2>/dev/null); then |
48 | tap_no_last=$(echo "$taps" |cut -f 1 -d ":" |sed "s/$OE_TAP_NAME//g" | sort -rn | head -n 1) | 48 | tap_no_last=$(echo "$taps" |cut -f 1 -d ":" |grep -E "^$OE_TAP_NAME.*" |sed "s/$OE_TAP_NAME//g" | sort -rn | head -n 1) |
49 | if [ -z "$tap_no_last" ]; then | 49 | if [ -z "$tap_no_last" ]; then |
50 | tap_no=0 | 50 | tap_no=0 |
51 | else | 51 | else |