#!/bin/sh BERING_VERSION=1.0 BERING_RELEASE=rc3 BERING_BASE_URL=http://leaf.sourceforge.net/devel/jnilo/bering/$BERING_RELEASE KERNEL_VERSION=2.4 KERNEL_RELEASE=18 KERNEL=linux-$KERNEL_VERSION.$KERNEL_RELEASE PCMCIA_VERSION=3.1.33 HOSTAP_RELEASES_URL=http://hostap.epitest.fi/releases/ HOST_AP_VERSION=2002-09-12 WGET=wget test $NO_DOWNLOAD && WGET=echo PGP_ERROR_MESSAGE="Have you already added the proper signature to your gpg keyring? If not, head on over to pgp.mit.edu or your favorite pgp key server and do so. The key ID is probably on the line before this warning message. You'll need to prefix it with 0x when searching pgp.mit.edu." echo "Fetching pcmcia-cs package." $WGET http://unc.dl.sourceforge.net/sourceforge/pcmcia-cs/pcmcia-cs-$PCMCIA_VERSION.tar.gz echo "Fetching hostap driver version $HOST_AP_VERSION ." $WGET -q $HOSTAP_RELEASES_URL/hostap-$HOST_AP_VERSION.tar.gz echo "Extracting pcmcia-cs." tar xzf pcmcia-cs-$PCMCIA_VERSION.tar.gz echo "Extracting hostap driver." tar xzf hostap-$HOST_AP_VERSION.tar.gz cd pcmcia-cs-$PCMCIA_VERSION cp -a ../hostap-$HOST_AP_VERSION/driver/* . ./Configure --kernel=`pwd`/../$KERNEL make all cp modules/hostap*.o .. cd .. cd hostap-$HOST_AP_VERSION cp Makefile Makefile.bak sed "s:^KERNEL_PATH=/usr/src/linux:KERNEL_PATH=../$KERNEL:" \ < Makefile.bak > Makefile make plx pci cp driver/modules/hostap_{plx,pci}.o .. cd .. strip hostap*.o