Skip to content

Commit

Permalink
MFC r343499:
Browse files Browse the repository at this point in the history
rc(8): do not stop dhclient(8) when wpa_supplicant(8) / hostapd(8) is used

They will stop it automatically ('Interface wlan0 is down,
dhclient exiting'); use /etc/rc.d/dhclient stop command only when
none of them is used.
  • Loading branch information
avos authored and avos committed Feb 2, 2019
1 parent e76738f commit 15afe7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions etc/network.subr
Expand Up @@ -257,9 +257,7 @@ ifconfig_down()
elif hostapif $1; then
/etc/rc.d/hostapd stop $1
_cfg=0
fi

if dhcpif $1; then
elif dhcpif $1; then
/etc/rc.d/dhclient stop $1
_cfg=0
fi
Expand Down

0 comments on commit 15afe7b

Please sign in to comment.