Date: Tue, 10 Jul 2012 19:36:09 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: David Wolfskill <david@catwhisker.org>, Garrett Cooper <yanegomi@gmail.com>, Brandon Gooch <jamesbrandongooch@gmail.com>, current@freebsd.org Subject: Re: "ifconfig create" breaks between r238227 - r238290? Message-ID: <CAGH67wQLGYgeg8H42OhNV7zhDY8QR-046%2B7C4NA_-kocHDZ4Cg@mail.gmail.com> In-Reply-To: <20120711022604.GC1898@albert.catwhisker.org> References: <20120709131957.GI1552@albert.catwhisker.org> <CALBk6yJTSeBtsmV15zYOi=yssik4LeUCt1y5uOiat03%2BZqEEtg@mail.gmail.com> <CAGH67wQQJKcUOeTHnW654TrQqPfRN3An-0J9zY-F4ei3B-4FLg@mail.gmail.com> <20120711020609.GB1898@albert.catwhisker.org> <CAGH67wQgmG2s5dMtPOG7XOup0SMzQPQRHJLH4YrJZXvJrRSTQg@mail.gmail.com> <20120711022604.GC1898@albert.catwhisker.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 10, 2012 at 7:26 PM, David Wolfskill <david@catwhisker.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wQLGYgeg8H42OhNV7zhDY8QR-046%2B7C4NA_-kocHDZ4Cg>