From owner-freebsd-mobile Sun Sep 6 21:26:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA11843 for freebsd-mobile-outgoing; Sun, 6 Sep 1998 21:26:35 -0700 (PDT) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from roma.neomorphic.com (roma.neomorphic.com [205.217.46.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA11824 for ; Sun, 6 Sep 1998 21:26:32 -0700 (PDT) (envelope-from dkulp@board67.cruzers.com) Received: from board67.cruzers.com (board67.cruzers.com [205.215.233.67]) by roma.neomorphic.com (8.9.0/8.9.0) with ESMTP id VAA06327; Sun, 6 Sep 1998 21:22:40 -0700 (PDT) Received: (from dkulp@localhost) by board67.cruzers.com (8.8.8/8.7.3) id VAA09977; Sun, 6 Sep 1998 21:25:37 -0700 (PDT) Date: Sun, 6 Sep 1998 21:25:37 -0700 (PDT) Message-Id: <199809070425.VAA09977@board67.cruzers.com> From: David Kulp MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Marc Slemko Cc: mobile@FreeBSD.ORG Subject: my pccard changes In-Reply-To: References: X-Mailer: VM 6.22 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a very similar setup. I had to add "insert" lines into each pccard.conf. 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