diff options
Diffstat (limited to 'scripts/runqemu-ifdown')
| -rwxr-xr-x | scripts/runqemu-ifdown | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/runqemu-ifdown b/scripts/runqemu-ifdown index 98ac7f07b3..78be28812d 100755 --- a/scripts/runqemu-ifdown +++ b/scripts/runqemu-ifdown | |||
| @@ -37,14 +37,14 @@ if !ip tuntap del $TAP mode tap 2>/dev/null; then | |||
| 37 | exit 1 | 37 | exit 1 |
| 38 | fi | 38 | fi |
| 39 | 39 | ||
| 40 | IFCONFIG=`which ip 2> /dev/null` | 40 | IPTOOL=`which ip 2> /dev/null` |
| 41 | if [ "x$IFCONFIG" = "x" ]; then | 41 | if [ "x$IPTOOL" = "x" ]; then |
| 42 | # better than nothing... | 42 | # better than nothing... |
| 43 | IFCONFIG=/sbin/ip | 43 | IPTOOL=/sbin/ip |
| 44 | fi | 44 | fi |
| 45 | if [ -x "$IFCONFIG" ]; then | 45 | if [ -x "$IPTOOL" ]; then |
| 46 | if `$IFCONFIG link show $TAP > /dev/null 2>&1`; then | 46 | if `$IPTOOL link show $TAP > /dev/null 2>&1`; then |
| 47 | $IFCONFIG link del $TAP | 47 | $IPTOOL link del $TAP |
| 48 | fi | 48 | fi |
| 49 | fi | 49 | fi |
| 50 | # cleanup the remaining iptables rules | 50 | # cleanup the remaining iptables rules |
