From owner-freebsd-current@FreeBSD.ORG Wed Jul 11 02:36:10 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC889106564A for ; Wed, 11 Jul 2012 02:36:10 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 937508FC0A for ; Wed, 11 Jul 2012 02:36:10 +0000 (UTC) Received: by ghbz22 with SMTP id z22so826663ghb.13 for ; Tue, 10 Jul 2012 19:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=A91DMZiUn4VzV75j82GEh7AAO/i0mp49TTTu0Dks++k=; b=ZpDPwWhKtPTCThrxmD+qdjiO70GVktPO6d+a3sHAoqKtPhztEEJEjW5t/ZlXmc6LID nzOceDOmb0PGbTuDB+AJzF9paA56exWxSX3gtRAR8WTkSjRV0H5UMjpjFXIGIOpE59Yp QgQrxstCK0LuX0pnBBn9j3Dv/7wYvmFm3n8MYFXa+hz8atPFp4OwGiiuXgoNjvl2M1D8 QjU/fXRw1Nd/UkZDCy08gCn0oR/x/zpCwfJIA1T9YsrDY0RQCHbXKuly6pGv5Ugg0vVU mPZQwUia4G/qPosRzrS2Bu8y/bQdBd9iIWA2v1VPHq2wm9WKM9IEwYFIHMHJ75h/H+hg cceQ== MIME-Version: 1.0 Received: by 10.60.20.74 with SMTP id l10mr49310651oee.19.1341974169995; Tue, 10 Jul 2012 19:36:09 -0700 (PDT) Received: by 10.76.84.7 with HTTP; Tue, 10 Jul 2012 19:36:09 -0700 (PDT) In-Reply-To: <20120711022604.GC1898@albert.catwhisker.org> References: <20120709131957.GI1552@albert.catwhisker.org> <20120711020609.GB1898@albert.catwhisker.org> <20120711022604.GC1898@albert.catwhisker.org> Date: Tue, 10 Jul 2012 19:36:09 -0700 Message-ID: From: Garrett Cooper To: David Wolfskill , Garrett Cooper , Brandon Gooch , current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: "ifconfig create" breaks between r238227 - r238290? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2012 02:36:11 -0000 On Tue, Jul 10, 2012 at 7:26 PM, David Wolfskill wrote: > On Tue, Jul 10, 2012 at 07:15:21PM -0700, Garrett Cooper wrote: >> ... >> Curious. I was wondering about this because there's some logic in >> network.subr that parses ifconfig -l output -- thinking that the >> fallout might have been there. >> I would be curious next to see what devd is trying to execute. >> >> As a fun next test, try adding the following line to devd.conf (look >> for "dhclient") and restart devd: >> >> nomatch "bus" "uhub[0-9]+"; >> .... > > Well, devd wasn't particularly happy about that: > > g1-228(10.0-C)[7] sudo service devd restart > Stopping devd. > Waiting for PIDS: 1736. > Starting devd. > devd: Cannot parse /etc/devd.conf at line 55 > /etc/rc.d/devd: WARNING: failed to start devd > g1-228(10.0-C)[8] cat -n devd.conf | grep -wC 3 55 > 52 notify 0 { > 53 match "system" "IFNET"; > 54 match "type" "LINK_UP"; > 55 nomatch "bus" "uhub[0-9]+"; > 56 media-type "ethernet"; > 57 action "/etc/rc.d/dhclient quietstart $subsystem"; > 58 }; > g1-228(10.0-C)[9] My bad -- I misread the manpage. This will work better probably: notify 0 { match "system" "IFNET"; match "type" "LINK_UP"; media-type "802.11"; match "device" "wlan[0-9]+"; action "/etc/rc.d/dhclient quietstart $subsystem"; }; Kind of funny why things are setup that way anyhow for wireless post-8.x... All else fails, you sh -x the rc.d script at boot or add rc_debug="YES" to rc.conf and see what's getting passed along... Cheers, -Garrett