summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu-ifdown
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/poky-qemu-ifdown')
-rwxr-xr-xscripts/poky-qemu-ifdown10
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 @@
17# with this program; if not, write to the Free Software Foundation, Inc., 17# with this program; if not, write to the Free Software Foundation, Inc.,
18# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 19
20TAP=$1
20 21
21IFCONFIG=`which ifconfig` 22TUNCTL=`which tunctl`
22if [ "x$IFCONFIG" = "x" ]; then 23[ "$TUNCTL" = "" ] && TUNCTL=/usr/sbin/tunctl
23 # better than nothing...
24 IFCONFIG=/sbin/ifconfig
25fi
26 24
27$IFCONFIG tap0 down 25$TUNCTL -d $TAP