From b344852914444887dd99c553f217fa68f67fee17 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Tue, 16 Jun 2020 20:23:57 +0000 Subject: [PATCH] MFC r346683: bsdinstall: up the interface before calling dhclient --- usr.sbin/bsdinstall/scripts/netconfig_ipv4 | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/bsdinstall/scripts/netconfig_ipv4 b/usr.sbin/bsdinstall/scripts/netconfig_ipv4 index ebe0dead7e4..7d5b9486bc4 100755 --- a/usr.sbin/bsdinstall/scripts/netconfig_ipv4 +++ b/usr.sbin/bsdinstall/scripts/netconfig_ipv4 @@ -49,6 +49,7 @@ esac dialog --backtitle 'FreeBSD Installer' --title 'Network Configuration' --yesno 'Would you like to use DHCP to configure this interface?' 0 0 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 ) if [ $? -ne 0 ]; then -- 2.45.0