aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorAndriy Voskoboinyk <avos@FreeBSD.org>2019-01-27 15:55:31 +0000
committerAndriy Voskoboinyk <avos@FreeBSD.org>2019-01-27 15:55:31 +0000
commit1a7c1b2cbc9484c77d88b5c7af69907dcb6a678c (patch)
treec84a9481af89464a882be2a6da4fa5cea831fded /libexec
parent1289ca623ec4fba58b2b870d09823bc53d88e54c (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rc/network.subr4
1 files changed, 1 insertions, 3 deletions
diff --git a/libexec/rc/network.subr b/libexec/rc/network.subr
index e4628df3a863..e3e1a2ffbbdc 100644
--- a/libexec/rc/network.subr
+++ b/libexec/rc/network.subr
@@ -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