how to patch this?

Kevin Brown plug-discuss@lists.plug.phoenix.az.us
Thu, 08 May 2003 20:41:47 -0700


> Using RH 7.1.
> 
> I want to install/patch my orinoco drivers as specified here:
> http://airsnort.shmoo.com/orinocoinfo.html
> 
> I guess the actual code in the patch is here:
> http://airsnort.shmoo.com/orinoco-09b-packet-1.diff.
> 
> I have no idea what to do with this code?  Do I just copy and paste it into
> a .c file or what?  Would someone walk me through what to do with this?
> This is alien!

It's about to get more so.

The diff needs to be applied to a certain version of pcmcia-cs, so first you 
need to get pcmcia-cs (pcmcia-cs.sourceforge.net).

cd /usr/src
tar -xvzf /path/to/pcmcia-cs-xxxxx.tar.gz
cd pcmcia-cs-version-number
patch < /path/to/orinoco-09b-packet-1.diff
make config
make all
make install

That gets you the gist.  I don't guarantee that those are the only steps you'll 
need.  I'm running RH8, but have to rebuild the kernel myself since the kernel 
pcmcia support doesn't work with my laptop.