diff options
Diffstat (limited to 'scripts/poky-qemu-ifdown')
-rwxr-xr-x | scripts/poky-qemu-ifdown | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/poky-qemu-ifdown b/scripts/poky-qemu-ifdown index 2212353118..d9e9e95861 100755 --- a/scripts/poky-qemu-ifdown +++ b/scripts/poky-qemu-ifdown @@ -17,11 +17,9 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +TAP=$1 -IFCONFIG=`which ifconfig` -if [ "x$IFCONFIG" = "x" ]; then - # better than nothing... - IFCONFIG=/sbin/ifconfig -fi +TUNCTL=`which tunctl` +[ "$TUNCTL" = "" ] && TUNCTL=/usr/sbin/tunctl -$IFCONFIG tap0 down +$TUNCTL -d $TAP |