Date: Sun, 6 Sep 1998 21:25:37 -0700 (PDT) From: David Kulp <dkulp@neomorphic.com> To: Marc Slemko <marcs@znep.com> Cc: mobile@FreeBSD.ORG Subject: my pccard changes Message-ID: <199809070425.VAA09977@board67.cruzers.com> In-Reply-To: <Pine.BSF.4.02A.9809061939220.5161-100000@alive.znep.com> References: <Pine.BSF.4.02A.9809061939220.5161-100000@alive.znep.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I have a very similar setup. I had to add "insert" lines into each pccard.conf.<location> for deleting old routes, setting a new hostname, moving a new /etc/resolv.conf into place, and restarting sendmail (I run sendmail so I can use fetchmail -- nice to have for a mobile machine with multiple email accounts). Of course the standard ifconfig and default route lines are included, too. cheers, -david. ps. If you use emacs for sending email, you also need to restart it. Marc Slemko writes: > In my situation I take my laptop between multiple ethernets, and I can't > use DHCP because I'm unlucky. > > So, what I did was add: > > if [ -f /etc/pccard_location ] ; then > . /etc/pccard_location > fi > > if [ "x$pccard_location" != "x" ] ; then > if [ -f /etc/rc.conf.extra.$pccard_location ] ; then > . /etc/rc.conf.extra.$pccard_location > fi > fi > > to my pccard_ether right after it sucks in rc.conf. > > Then I created /etc/rc.conf.extra.home (for example) with: > > pccard_ifconfig="inet 10.0.0.2" > defaultrouter="10.0.0.1" > > and a shell script that lets me just run "location home" and have > pccard_location="home" put into /etc/pccard_location. The same applies > for any number of locations. > > Pretty simple modificatons; just FYI if anyone else was wanting to do the > same thing but hadn't bothered to. > > Now, the next step would be to have a GPS that would automatically > determine the location it was in and config appropriately. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809070425.VAA09977>