svn commit: r363097 - head/usr.sbin/bsdinstall/scripts
Allan Jude
allanjude at FreeBSD.org
Sat Jul 11 15:32:54 UTC 2020
Author: allanjude
Date: Sat Jul 11 15:32:53 2020
New Revision: 363097
URL: https://svnweb.freebsd.org/changeset/base/363097
Log:
bsdinstall: kill dhclient before starting a new instance
PR: 205821
Submitted by: William Orr <will at worrbase.com>
MFC after: 2 weeks
Sponsored by: Klara Inc.
Event: July 2020 Bugathon
Differential Revision: https://reviews.freebsd.org/D14572
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 14:55:11 2020 (r363096)
+++ head/usr.sbin/bsdinstall/scripts/netconfig_ipv4 Sat Jul 11 15:32:53 2020 (r363097)
@@ -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=$( dhclient $INTERFACE 2>&1 )
+ err=$( pkill dhclient; 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