Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Feb 2019 04:21:00 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r343676 - stable/11/etc
Message-ID:  <201902020421.x124L09f026002@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Sat Feb  2 04:21:00 2019
New Revision: 343676
URL: https://svnweb.freebsd.org/changeset/base/343676

Log:
  MFC r343499:
  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.

Modified:
  stable/11/etc/network.subr
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/etc/network.subr
==============================================================================
--- stable/11/etc/network.subr	Sat Feb  2 04:19:35 2019	(r343675)
+++ stable/11/etc/network.subr	Sat Feb  2 04:21:00 2019	(r343676)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902020421.x124L09f026002>