diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-15 17:58:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-16 15:38:18 +0100 |
commit | eb1c947a056f3e2c80e46e5e606423e85da46caa (patch) | |
tree | f71685cf2b7e90670d4b3494f6f609c171809744 /scripts/runqemu-ifdown | |
parent | 2abfbca690ff00cb58ce08a65cde006578ee3de9 (diff) | |
download | openembedded-core-eb1c947a056f3e2c80e46e5e606423e85da46caa.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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 exit 1 fi -IFCONFIG=`which ip 2> /dev/null` -if [ "x$IFCONFIG" = "x" ]; then +IPTOOL=`which ip 2> /dev/null` +if [ "x$IPTOOL" = "x" ]; then # better than nothing... - IFCONFIG=/sbin/ip + IPTOOL=/sbin/ip fi -if [ -x "$IFCONFIG" ]; then - if `$IFCONFIG link show $TAP > /dev/null 2>&1`; then - $IFCONFIG link del $TAP +if [ -x "$IPTOOL" ]; then + if `$IPTOOL link show $TAP > /dev/null 2>&1`; then + $IPTOOL link del $TAP fi fi # cleanup the remaining iptables rules |