From owner-freebsd-mobile Mon Sep 7 13:24:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA29729 for freebsd-mobile-outgoing; Mon, 7 Sep 1998 13:24: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 NAA29723 for ; Mon, 7 Sep 1998 13:24:36 -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 OAA10379; Mon, 7 Sep 1998 14:24:14 -0600 (MDT) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with ESMTP id NAA12440; Mon, 7 Sep 1998 13:20:53 -0700 (PDT) Date: Mon, 7 Sep 1998 13:20:53 -0700 (PDT) From: Marc Slemko To: Mike Smith cc: mobile@FreeBSD.ORG Subject: Re: my pccard changes In-Reply-To: <199809070428.VAA11277@word.smith.net.au> 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 On Sun, 6 Sep 1998, Mike Smith wrote: > > In my situation I take my laptop between multiple ethernets, and I can't > > use DHCP because I'm unlucky. > ... > > 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. > > What you want is this: Except that that doesn't deal with wanting to just modify parts of a file. I agree that, in general, when you need changed resolv.conf, and arbitrary other files it may make sense. But you still need other changes; either modifying pccard_ether with hacks or replacing it, replacing rc.conf, etc. And it really doesn't make sense to completely replace either of those just for one or two settings. I don't see anywhere that I can completely replace a file to change the IP address and default route without also having a lot more baggage around. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message