Date: Sun, 27 Nov 2005 00:36:52 -0200 From: AT Matik <asstec@matik.com.br> To: freebsd-mobile@freebsd.org Subject: Re: Switching wired <-> wireless in a user-friendly manner, possible? Message-ID: <200511270036.52845.asstec@matik.com.br> In-Reply-To: <4388B53F.9020905@nieser.net> References: <4388B53F.9020905@nieser.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511270036.52845.asstec>
