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 @@ | |||
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 | ||
20 | TAP=$1 | ||
20 | 21 | ||
21 | IFCONFIG=`which ifconfig` | 22 | TUNCTL=`which tunctl` |
22 | if [ "x$IFCONFIG" = "x" ]; then | 23 | [ "$TUNCTL" = "" ] && TUNCTL=/usr/sbin/tunctl |
23 | # better than nothing... | ||
24 | IFCONFIG=/sbin/ifconfig | ||
25 | fi | ||
26 | 24 | ||
27 | $IFCONFIG tap0 down | 25 | $TUNCTL -d $TAP |