summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2007-05-23 00:18:44 +0000
committerthompsa <thompsa@FreeBSD.org>2007-05-23 00:18:44 +0000
commitdc97594a94f0ba73972143bb0ce40d2a7249f2d3 (patch)
treebd9e48c945206272094927c5f6bd6fc7fe18cd2f /etc
parent641a216a630191f19c12e629968f6471f4ebfe40 (diff)
downloadFreeBSD-src-dc97594a94f0ba73972143bb0ce40d2a7249f2d3.zip
FreeBSD-src-dc97594a94f0ba73972143bb0ce40d2a7249f2d3.tar.gz
Do not attempt to load the kernel module when checking if an interface exists.
This would cause pseudo network modules to be reloaded again when trying to unload the first time if any cloned interfaces exist. MFC after: 2 weeks
Diffstat (limited to 'etc')
-rw-r--r--etc/network.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/network.subr b/etc/network.subr
index c221115..51173c5 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -265,7 +265,7 @@ ipv6if()
# Returns 0 if the interface exists and 1 otherwise.
ifexists()
{
- ifconfig $1 > /dev/null 2>&1
+ ifconfig -n $1 > /dev/null 2>&1
}
# ipv4_up if
OpenPOWER on IntegriCloud