diff options
author | thompsa <thompsa@FreeBSD.org> | 2007-05-23 00:18:44 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2007-05-23 00:18:44 +0000 |
commit | dc97594a94f0ba73972143bb0ce40d2a7249f2d3 (patch) | |
tree | bd9e48c945206272094927c5f6bd6fc7fe18cd2f /etc/network.subr | |
parent | 641a216a630191f19c12e629968f6471f4ebfe40 (diff) | |
download | FreeBSD-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/network.subr')
-rw-r--r-- | etc/network.subr | 2 |
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 |