Date: Thu, 16 Nov 2000 14:50:33 -0800 From: Nick Sayer <nsayer@sftw.com> To: bauerp <bauerp@bigfoot.com> Cc: mobile@FreeBSD.ORG Subject: Re: wi0 and wicontrol Message-ID: <3A1464B9.625416D3@sftw.com> References: <Pine.NEB.4.10.10011161534300.8586-100000@corona.housebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 "<domain>" > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A1464B9.625416D3>