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
This commit is contained in:
parent
f013ccb768
commit
ddf1c6facd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169889
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user