Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 2020 17:20:17 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363103 - head/usr.sbin/bsdinstall/scripts
Message-ID:  <202007111720.06BHKHUE005504@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: allanjude
Date: Sat Jul 11 17:20:17 2020
New Revision: 363103
URL: https://svnweb.freebsd.org/changeset/base/363103

Log:
  bsdinstall: only kill the dhclient for the interface we are restarting
  
  PR:		205821
  Reported by:	mjg
  MFC after:	2 weeks
  Sponsored by:	Klara Inc.
  Event:		July 2020 Bugathon

Modified:
  head/usr.sbin/bsdinstall/scripts/netconfig_ipv4

Modified: head/usr.sbin/bsdinstall/scripts/netconfig_ipv4
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/netconfig_ipv4	Sat Jul 11 17:10:16 2020	(r363102)
+++ head/usr.sbin/bsdinstall/scripts/netconfig_ipv4	Sat Jul 11 17:20:17 2020	(r363103)
@@ -51,7 +51,7 @@ if [ $? -eq $DIALOG_OK ]; then
 	if [ ! -z $BSDINSTALL_CONFIGCURRENT ]; then
 		ifconfig $INTERFACE up
 		dialog --backtitle 'FreeBSD Installer' --infobox "Acquiring DHCP lease..." 0 0
-		err=$( pkill dhclient; dhclient $INTERFACE 2>&1 )
+		err=$( pkill -F /var/run/dhclient/dhclient.${INTERFACE}.pid; dhclient $INTERFACE 2>&1 )
 		if [ $? -ne 0 ]; then
 			f_dprintf "%s" "$err"
 			dialog --backtitle 'FreeBSD Installer' --msgbox "DHCP lease acquisition failed." 0 0



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