svn commit: r363103 - head/usr.sbin/bsdinstall/scripts
Allan Jude
allanjude at FreeBSD.org
Sat Jul 11 17:20:17 UTC 2020
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
More information about the svn-src-head
mailing list