From owner-freebsd-mobile@FreeBSD.ORG Mon Aug 18 12:59:29 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B81B237B401 for ; Mon, 18 Aug 2003 12:59:27 -0700 (PDT) Received: from mailhub01.unibe.ch (mailhub01.unibe.ch [130.92.9.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89C23440E5 for ; Mon, 18 Aug 2003 12:59:26 -0700 (PDT) (envelope-from roth@iam.unibe.ch) Received: from localhost (localhost [127.0.0.1]) by mailhub01.unibe.ch (Postfix) with ESMTP id 2F7BB25BA25; Mon, 18 Aug 2003 21:59:25 +0200 (MEST) Received: from mailhub01.unibe.ch ([127.0.0.1]) by localhost (mailhub01 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26054-01-15; Mon, 18 Aug 2003 21:59:24 +0200 (MEST) Received: from asterix.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub01.unibe.ch (Postfix) with ESMTP id 4AA5625BA24; Mon, 18 Aug 2003 21:59:24 +0200 (MEST) Received: from speedy.unibe.ch (speedy [130.92.64.35]) by asterix.unibe.ch (8.11.6+Sun/8.11.6) with ESMTP id h7IJxOK25421; Mon, 18 Aug 2003 21:59:24 +0200 (MET DST) Received: (from roth@localhost) by speedy.unibe.ch (8.11.6+Sun/8.10.2) id h7IJxN818318; Mon, 18 Aug 2003 21:59:23 +0200 (MEST) Date: Mon, 18 Aug 2003 21:59:23 +0200 From: Tobias Roth To: "Marc H." Message-ID: <20030818195923.GA18303@speedy.unibe.ch> Mail-Followup-To: "Marc H." , freebsd-mobile@freebsd.org References: <3F411831.4000102@nerim.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F411831.4000102@nerim.net> User-Agent: Mutt/1.4i X-Operating-System: SunOS speedy 5.8 Generic_108528-16 sun4u sparc SUNW,Ultra-80 X-Virus-checked: by University of Berne cc: freebsd-mobile@freebsd.org Subject: Re: auto config NICs in rc.conf X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 19:59:29 -0000 On Mon, Aug 18, 2003 at 08:17:21PM +0200, Marc H. wrote: > > Is there an utility to do autodetection of LAN config? > > I've written a script to do this with a exhaustive list of the places I > connect my laptop, the script do ifconfig, ping the gateway ip@ and if > ECHO_REPLY then exit with this parmeters. Someone could tell me how > rc.network and rc.d/rc.network[123] are to be used in order to insert my > script ? i am working on a more or less complete solution that will hopefully, if it proves to be general and stable enough, be integrated into the source tree. it also works with read-only boot, does dhcp and is seamlessly integrated into rcng. i will unleash a first test version to -current and -mobile in a few days, possibly some day next week. we will then see whether it works for other people as well at it does for me. if you want to integrate your own scripts, reading rc(8) will help. cheers, t.