From owner-freebsd-mobile@FreeBSD.ORG Sun Nov 27 02:36:49 2005 Return-Path: X-Original-To: freebsd-mobile@freebsd.org 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 C795E16A41F for ; Sun, 27 Nov 2005 02:36:49 +0000 (GMT) (envelope-from asstec@matik.com.br) Received: from msrv.matik.com.br (msrv.matik.com.br [200.152.83.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ECE843D45 for ; Sun, 27 Nov 2005 02:36:48 +0000 (GMT) (envelope-from asstec@matik.com.br) Received: from anb (ap6.matik.com.br [200.152.83.36] (may be forged)) by msrv.matik.com.br (8.13.3/8.13.1) with ESMTP id jAR2ao9u088641 for ; Sun, 27 Nov 2005 00:36:50 -0200 (BRST) (envelope-from asstec@matik.com.br) From: AT Matik Organization: Infomatik To: freebsd-mobile@freebsd.org Date: Sun, 27 Nov 2005 00:36:52 -0200 User-Agent: KMail/1.8.3 References: <4388B53F.9020905@nieser.net> In-Reply-To: <4388B53F.9020905@nieser.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200511270036.52845.asstec@matik.com.br> X-Filter-Version: 1.11a (msrv.matik.com.br) X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on msrv.matik.com.br X-Virus-Status: Clean Subject: Re: Switching wired <-> wireless in a user-friendly manner, possible? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 02:36:50 -0000 On Saturday 26 November 2005 17:19, Hans Nieser wrote: > > I am guessing that what needs to happen is, as soon as fxp0 becomes > inactive, the default route needs to be updated so it will route over the > ipw0 interface. What is the best way to accomplish this? Do I have to > write a shellscript that continiously checks for fxp0's status and then > somehow update the default route, or are there facilities available for > this? _______________________________________________ yep, you got it ;) may be you like what I do i have DHCP for my nic in rc.conf when my eth is up (sis0 in my case) nothing happens as getting the config= =20 from the dhcp server else I call a script to configure my wireless connection (/etc/start-wif) so you may check running this in crontab as I understand you unplug the cab= le=20 and run around ;) Jo=E3o this runs on 6.0 but should work correctly on 5.x as well ################################ #!/bin/sh status=3D"`ifconfig sis0 | grep status | awk '{print $2$3}'`" case ${status} in nocarrier) (/etc/start-wif &) ;; *) logger -s "running ethernet dhclient" ;; esac ################################# A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura. Service fornecido pelo Datacenter Matik https://datacenter.matik.com.br