From owner-freebsd-mobile Thu Nov 16 14:50:46 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from guardian.sftw.com (guardian.sftw.com [209.157.37.25]) by hub.freebsd.org (Postfix) with ESMTP id D62C637B666 for ; Thu, 16 Nov 2000 14:50:41 -0800 (PST) Received: from yoda.sftw.com (yoda.sftw.com [209.157.37.211]) by guardian.sftw.com (8.11.0/8.11.0) with ESMTP id eAGMofq53372; Thu, 16 Nov 2000 14:50:41 -0800 (PST) (envelope-from nsayer@sftw.com) Received: from sftw.com (localhost [127.0.0.1]) by yoda.sftw.com (8.11.1/8.11.1) with ESMTP id eAGMoXi01339; Thu, 16 Nov 2000 14:50:41 -0800 (PST) (envelope-from nsayer@sftw.com) Message-ID: <3A1464B9.625416D3@sftw.com> Date: Thu, 16 Nov 2000 14:50:33 -0800 From: Nick Sayer Reply-To: nsayer@FreeBSD.ORG X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: bauerp Cc: mobile@FreeBSD.ORG Subject: Re: wi0 and wicontrol References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The best solution I've found is to make a /etc/wisetup script. Have it do all of the wicontrol lines, then as the last line, say: exec /etc/pccard_ether $1 $2 Then copy the /etc/defaults/pccard.conf entry for your card into /etc/pccard.conf. Replace the reference to /etc/pccard_ether in this new entry with /etc/wisetup (leave the 2nd and 3rd args). This works making no changes to files mergemaster touches. bauerp wrote: > > I am trying to setup a line in pccard.conf that will process the contents > of /etc/foo when the card is inserted. I need the contents in /etc/foo > to be read in order to get the encryption/networking info passed to the > card. here is the idea. > > > wicontrol -i wi0 -n "" > wicontrol -i wi0 -p -o > wicontrol -i wi0 -e 1 > wicontrol -i wi0 -k key1 -v 1 > wicontrol -i wi0 -k key2 -v 2 > wicontrol -i wi0 -k key3 -v 3 > wicontrol -i wi0 -k key4 -v 4 > dhclient > > These commands need to be run when the card is inserted. I have tried > adding > > insert /etc/foo and multiple variations of that to pccard.conf to no > avail. If anyone can point me in the direction I ned to go I would > appreciate it. I am unable to figgure out how to get it to run this file. > > At the command line sh /etc/foo loads it fine. Just want to make this > process a little nicer. > > Thanks! > Paul. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-mobile" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message