Switching wired <-> wireless in a user-friendly manner,
possible?
Kevin Oberman
oberman at es.net
Tue Nov 29 05:56:36 GMT 2005
> From: AT Matik <asstec at matik.com.br>
> Date: Sun, 27 Nov 2005 00:36:52 -0200
> Sender: owner-freebsd-mobile at freebsd.org
>
> 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 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 cable and run around ;)
Seems like using LINK_DOWN in a notify with devd would be far faster and
have much less overhead than cron. (Yes, it looks like LINK_DOWN is
valid.)
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net Phone: +1 510 486-8634
More information about the freebsd-mobile
mailing list