From owner-svn-src-all@FreeBSD.ORG Fri Jun 26 04:52:31 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84A82106564A; Fri, 26 Jun 2009 04:52:31 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 253898FC08; Fri, 26 Jun 2009 04:52:30 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n5Q4qUid043210 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Jun 2009 21:52:30 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4A44540E.7080503@freebsd.org> Date: Thu, 25 Jun 2009 21:52:30 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090411) MIME-Version: 1.0 To: Doug Barton References: <200906260127.n5Q1RG7N070584@svn.freebsd.org> <4A4429EC.6050202@freebsd.org> <4A443A34.8030805@FreeBSD.org> In-Reply-To: <4A443A34.8030805@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-x.dcc-servers-Metrics: ebb.errno.com; whitelist Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r195029 - head/etc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2009 04:52:32 -0000 Doug Barton wrote: > Sam Leffler wrote: > >> Using device names is a bad idea. Take a look at wpa_supplicant (for >> example) for how to check the media status to determine whether a device >> is wireless. >> > > I agree that it's not optimal, and I would prefer a dynamic solution > as opposed to a static one. What mechanism would you suggest that > would be available to a shell script relatively early in the boot process? > As I said, use the technique /etc/rc.d/wpa_supplicant uses to check the media status. I've sent you working code privately. Sam