Skip to contentSkip to conversation

runqemu: Handle device names like tapX@NONE

PATCH New Richard Purdie 1 participant 1 message Aug 9, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runqemu: Handle device names like tapX@NONE

ip list can return devices in the form tapX@NONE. If it does so, ensure we handle that case correctly. Newer distros appear to do this in some cases.

[YOCTO #8129]

scripts/runqemu-internal +1 -1
index 0ace485..d743322 100755
@@ -179,7 +179,7 @@ else
                exit 1
         fi
 
-        POSSIBLE=`$IFCONFIG link | grep 'tap' | awk '{print $2}' | sed s/://`
+        POSSIBLE=`$IFCONFIG link | grep 'tap' | awk '{print $2}' | sed -e 's/://' -e 's/@.*//'`
         TAP=""
         LOCKFILE=""
         USE_PRECONF_TAP="no"