summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-ifdown
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-15 17:58:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-16 15:40:11 +0100
commit7b87f203c2e6b7523a61adb22fa92ef2febb2fa3 (patch)
treebf1319a89eab45f5ed92003b3e82ea3cac0b0ee4 /scripts/runqemu-ifdown
parent609fc157180778025b2f416736839a7935217731 (diff)
downloadpoky-7b87f203c2e6b7523a61adb22fa92ef2febb2fa3.tar.gz
runqemu-if*: Rename confusing variable name
The IFCONFIG variable is really the path to ip and hasn't been ifconfig for a long time. Rename the variable to something less confusing. (From OE-Core rev: eb1c947a056f3e2c80e46e5e606423e85da46caa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-ifdown')
-rwxr-xr-xscripts/runqemu-ifdown12
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
38fi 38fi
39 39
40IFCONFIG=`which ip 2> /dev/null` 40IPTOOL=`which ip 2> /dev/null`
41if [ "x$IFCONFIG" = "x" ]; then 41if [ "x$IPTOOL" = "x" ]; then
42 # better than nothing... 42 # better than nothing...
43 IFCONFIG=/sbin/ip 43 IPTOOL=/sbin/ip
44fi 44fi
45if [ -x "$IFCONFIG" ]; then 45if [ -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
49fi 49fi
50# cleanup the remaining iptables rules 50# cleanup the remaining iptables rules