mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 07:37:25 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue