From owner-freebsd-questions@FreeBSD.ORG Tue May 8 01:00:58 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF16216A407 for ; Tue, 8 May 2007 01:00:58 +0000 (UTC) (envelope-from tmclaugh@sdf.lonestar.org) Received: from straycat.dhs.org (c-24-63-86-11.hsd1.ma.comcast.net [24.63.86.11]) by mx1.freebsd.org (Postfix) with ESMTP id 6859C13C483 for ; Tue, 8 May 2007 01:00:58 +0000 (UTC) (envelope-from tmclaugh@sdf.lonestar.org) Received: from [192.168.1.127] (bofh.straycat.dhs.org [192.168.1.127]) by straycat.dhs.org (8.13.8/8.13.8) with ESMTP id l480aeoO001674; Mon, 7 May 2007 20:36:40 -0400 (EDT) From: Tom McLaughlin To: Cy Schubert In-Reply-To: <200705072210.l47MALmE009792@cwsys.cwsent.com> References: <200705072210.l47MALmE009792@cwsys.cwsent.com> Content-Type: text/plain Date: Mon, 07 May 2007 20:36:40 -0400 Message-Id: <1178584600.1881.15.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: Optional Wireless Interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2007 01:00:58 -0000 On Mon, 2007-05-07 at 15:10 -0700, Cy Schubert wrote: > Before I embark on yet another mini project, is there an approach to > optionally configure an interface only if another interface has not been > configured? If for example rl0 is configured using DHCP ath0 would not be > configured. > > One idea I had was adding some sort of profile support to netif. rc.conf: # Network profiles: netprofile_enable="YES" netprofile_list="HomeWired HomeWifi" HomeWired_ifconfig_em0="DHCP" HomeWifi_ifconfig_iwi0="DHCP" With netprofile_enable set it would cycle through the profile list stopping with the first that succeeded. Additionally you could do `/etc/rc.d/netif action profile` to start up the interfaces associated with a particular profile. I wanted to do this since I have home wired and wifi and work wired and wifi I use my laptop with. I got distracted so I stopped looking at the idea. tom -- | tmclaugh at sdf.lonestar.org tmclaugh at FreeBSD.org | | FreeBSD http://www.FreeBSD.org | | BSD# http://www.mono-project.com/Mono:FreeBSD |