mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
network.subr: avoid unnecessary reinitialization
Do not start interface when wpa_supplicant or hostapd is used; they will restart it anyway Tested with: * Intel 3945BG, STA mode (wpa_supplicant) * RTL8188EU, HOSTAP mode (hostapd) Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5486
This commit is contained in:
parent
df0d881d94
commit
d546378bd8
1 changed files with 2 additions and 4 deletions
|
|
@ -214,16 +214,14 @@ ifconfig_up()
|
|||
ifalias $1 link alias
|
||||
ifalias $1 ether alias
|
||||
|
||||
if [ ${_cfg} -eq 0 ]; then
|
||||
${IFCONFIG_CMD} $1 up
|
||||
fi
|
||||
|
||||
if wpaif $1; then
|
||||
/etc/rc.d/wpa_supplicant start $1
|
||||
_cfg=0 # XXX: not sure this should count
|
||||
elif hostapif $1; then
|
||||
/etc/rc.d/hostapd start $1
|
||||
_cfg=0
|
||||
elif [ ${_cfg} -eq 0 ]; then
|
||||
${IFCONFIG_CMD} $1 up
|
||||
fi
|
||||
|
||||
if dhcpif $1; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue