From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 23 02:20:03 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 269631065672 for ; Fri, 23 Sep 2011 02:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 03B978FC0C for ; Fri, 23 Sep 2011 02:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8N2K2F3003731 for ; Fri, 23 Sep 2011 02:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8N2K2ej003730; Fri, 23 Sep 2011 02:20:02 GMT (envelope-from gnats) Resent-Date: Fri, 23 Sep 2011 02:20:02 GMT Resent-Message-Id: <201109230220.p8N2K2ej003730@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Adrian Chadd Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63436106566B for ; Fri, 23 Sep 2011 02:19:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 528EE8FC12 for ; Fri, 23 Sep 2011 02:19:25 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8N2JPpW064992 for ; Fri, 23 Sep 2011 02:19:25 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p8N2JPpn064991; Fri, 23 Sep 2011 02:19:25 GMT (envelope-from nobody) Message-Id: <201109230219.p8N2JPpn064991@red.freebsd.org> Date: Fri, 23 Sep 2011 02:19:25 GMT From: Adrian Chadd To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/160929: bsdinstall on 9.0-BETA2 incorrectly configures wpa/dhcp for wlan0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2011 02:20:03 -0000 >Number: 160929 >Category: misc >Synopsis: bsdinstall on 9.0-BETA2 incorrectly configures wpa/dhcp for wlan0 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 23 02:20:02 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Adrian Chadd >Release: 9.0-BETA2 >Organization: >Environment: FreeBSD viac3.home.cacheboy.net 9.0-BETA2 FreeBSD 9.0-BETA2 #0: Thu Sep 22 23:06:19 WST 2011 adrian@viac3.home.cacheboy.net:/usr/obj/usr/src/sys/VIAC3 i386 >Description: When bsdinstall installed my system, it asked for wifi details. It correctly configured and associated to my wifi during install, but it didn't do so after a reboot. /etc/rc.conf contained: === wlans_ath0="wlan0" ifconfig_wlan0="WPADHCP" === I believe that should be "WPA DHCP" rather than "WPADHCP". The install NIC was a D-Link DWA-552 later edition PCI 802.11ng NIC (AR9223.) >How-To-Repeat: * Boot 9.0-BETA2 off of USB stick * Install to disk * Post-configure wifi * Reboot >Fix: >From IRC: 07:19 <@battlez> --- usr.sbin/bsdinstall/scripts/netconfig_ipv4 (revision 225733) 07:19 <@battlez> +++ usr.sbin/bsdinstall/scripts/netconfig_ipv4 (working copy) 07:19 <@battlez> @@ -45,7 +45,7 @@ esac 07:19 <@battlez> 07:19 <@battlez> dialog --backtitle 'FreeBSD Installer' --title 'Network Configuration' --yesno 'Would you like to use DHCP to configure this interface?' 0 0 07:19 <@battlez> if [ $? -eq $DIALOG_OK ]; then 07:19 <@battlez> - echo ifconfig_$INTERFACE=\"${IFCONFIG_PREFIX}DHCP\" >> $BSDINSTALL_TMPETC/._rc.conf.net 07:19 <@battlez> + echo ifconfig_$INTERFACE=\"${IFCONFIG_PREFIX} DHCP\" >> $BSDINSTALL_TMPETC/._rc.conf.net 07:20 <@battlez> 07:20 <@battlez> if [ ! -z $BSDINSTALL_CONFIGCURRENT ]; then 07:20 <@battlez> dialog --backtitle 'FreeBSD Installer' --infobox "Acquiring DHCP lease..." 0 0 >Release-Note: >Audit-Trail: >Unformatted: