From owner-freebsd-mobile Sun Sep 6 20:47:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA07033 for freebsd-mobile-outgoing; Sun, 6 Sep 1998 20:47:38 -0700 (PDT) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA07028 for ; Sun, 6 Sep 1998 20:47:37 -0700 (PDT) (envelope-from marcs@znep.com) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.9.1a/8.9.1) with UUCP id VAA03665 for mobile@freebsd.org; Sun, 6 Sep 1998 21:47:17 -0600 (MDT) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with SMTP id TAA08726 for ; Sun, 6 Sep 1998 19:47:28 -0700 (PDT) Date: Sun, 6 Sep 1998 19:47:28 -0700 (PDT) From: Marc Slemko To: mobile@FreeBSD.ORG Subject: my pccard changes Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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