From owner-freebsd-mobile Wed Nov 19 12:23:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA22405 for mobile-outgoing; Wed, 19 Nov 1997 12:23:47 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.26]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA22381; Wed, 19 Nov 1997 12:23:34 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost.cybercity.dk [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.7) with ESMTP id VAA21099; Wed, 19 Nov 1997 21:17:17 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: "Brian N. Handy" cc: Nate Williams , mobile@FreeBSD.ORG Subject: Re: cvs commit: src/etc pccard.conf.sample pccard_ether In-reply-to: Your message of "Wed, 19 Nov 1997 11:23:49 PST." Date: Wed, 19 Nov 1997 21:17:16 +0100 Message-ID: <21097.879970636@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message , "B rian N. Handy" writes: >This brings up something. I've got an ethernet card and a modem card, >both often get used in a given day. Anybody come up with a good method of >setting up the network stuff when you're on the modem or at home? I seem >to remember PHK mentioned something about putting some personal hooks in >pccard_ether. > >What I want to be able to do is have the boss (who's not particularly >proficient at unix stuff) be able to go home, click a button in his window >manager which in turn trips the hooks that clean up his routing tables so >his modem will work. Same thing when it's at the office...clik another >button and boom, we're talking over the ethernet card. You should be able to do this entirely without the click. In /etc/pccard.conf you can configure a script to on on insert and remove for each card, so all you have to do is to write the two small scripts to do it. The special gyrations I had to do was because I used the ethernet card several different places, home, work &c... In your case you have two different cards for two different places, no worries :-) -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop."