From: <smi...@us...> - 2004-01-08 01:47:41
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv14056/scripts Added Files: hostap-driver hostap-utils hostapd Removed Files: hostap Log Message: checked in scripts from manu --- NEW FILE: hostap-driver --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/hostap-driver,v $ # $Revision: 1.1 $ # $Date: 2004/01/08 01:47:38 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: hostap-driver # Required-Start: $basebuildtools $libs pcmcia-cs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions KERNELDIR=$(find_src_dir linux) PCMCIADIR=$(find_src_dir pcmcia-cs) HOSTAPDRIVERDIR=$(find_src_dir hostapi-driver) MYNAME="HOSTAP_DRIVER" MY_BINDIR=$CDDIR/usr/sbin MY_DOCDIR=$DOCDIR/hostap case $1 in build ) if [ "$CONFIG_HOSTAP_DRIVER" = "y" ]; then if [ "$CONFIG_PCMCIA_CS" = "y" ]; then make pci plx pccard EXTRA_CFLAG="-DPRISM2_HOSTAPD -DCONFIG_HOSTAP_FIRMWARE" \ -e KERNEL_PATH=$KERNELDIR PCMCIA_PATH=$PCMCIADIR || exit 1 else make pci plx pccard EXTRA_CFLAG="-DPRISM2_HOSTAPD -DCONFIG_HOSTAP_FIRMWARE" \ -e KERNEL_PATH=$KERNELDIR || exit 1 fi strip_debug fi ;; install ) if [ "$CONFIG_HOSTAP" = "y" ]; then mkdir -p $MY_BINDIR mkdir -p $MY_DOCDIR make install_pci -e MODPATH=$CDDIR/lib/modules/$KERNELVERSION \ KERNEL_PATH=$KERNELDIR || exit 1 make install_plx -e MODPATH=$CDDIR/lib/modules/$KERNELVERSION \ KERNEL_PATH=$KERNELDIR || exit 1 mkdir -p $ETCDIR/etc/pcmcia || exit 1 make install_pccard -e MODPATH=$CDDIR/lib/modules/$KERNELVERSION DESTDIR=$ETCDIR \ KERNEL_PATH=$KERNELDIR || exit 1 cp -dp README $MY_DOCDIR/README.driver || exit1 cp -dp ChangeLog $MY_DOCDIR/ChangeLog.driver || exit1 cp -dp COPYING $MY_DOCDIR/COPYING || exit1 echo "HELP_$MYNAME=\"$MYNAME is an Access Point driver for the Intersil Prism2/2.5 chipset\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: hostap-utils --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/hostap-utils,v $ # $Revision: 1.1 $ # $Date: 2004/01/08 01:47:38 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: hostap-utils # Required-Start: $basebuildtools $libs hostap-driver # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions HOSTAPUTILSDIR=$(find_src_dir hostap-utils) MYNAME="HOSTAP_UTILS" MY_BINDIR=$CDDIR/usr/sbin MY_DOCDIR=$DOCDIR/hostap case $1 in build ) if [ "$CONFIG_HOSTAP_UTILS" = "y" ]; then make || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_HOSTAP_UTILS" = "y" ]; then mkdir -p $MY_BINDIR || exit1 mkdir -p $MY_DOCDIR || exit1 cp -dp hostap_crypt_conf $MY_BINDIR || exit1 cp -dp hostap_diag $MY_BINDIR || exit1 cp -dp hostap_io_debug $MY_BINDIR || exit1 cp -dp hostap_rid $MY_BINDIR || exit1 cp -dp prism2_param $MY_BINDIR || exit1 cp -dp prism2_srec $MY_BINDIR || exit1 cp -dp split_combined_hex $MY_BINDIR || exit1 cp README $MY_DOCDIR/README.utils || exit1 cp ChangeLog $MY_DOCDIR/ChangeLog.utils || exit1 echo "HELP_$MYNAME=\"$MYNAME are utilities for hostap driver\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: hostapd --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/hostapd,v $ # $Revision: 1.1 $ # $Date: 2004/01/08 01:47:38 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: hostapd # Required-Start: $basebuildtools $libs hostap-driver # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions HOSTAPDDIR=$(find_src_dir hostapd) MYNAME="HOSTAPD" MY_BINDIR=$CDDIR/usr/sbin MY_DOCDIR=$DOCDIR/hostap case $1 in build ) if [ "$CONFIG_HOSTAPD" = "y" ]; then make || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_HOSTAPD" = "y" ]; then mkdir -p $MY_BINDIR || exit1 mkdir -p $MY_DOCDIR || exit1 cp -dp hostapd $MY_BINDIR ||exit1 cp -dp $MYDIR/scripts/hostapd $ETCDIR/etc/init.d || exit 1 cp -dp hostapd.conf $ETCDIR/etc || exit1 cp -dp hostapd.accept $ETCDIR/etc || exit1 cp -dp hostapd.deny $ETCDIR/etc || exit1 chmod 600 $ETCDIR/etc/hostapd.conf || exit1 chmod 600 $ETCDIR/etc/hostapd.accept || exit1 chmod 600 $ETCDIR/etc/hostapd.deny || exit1 cp -dp README $MY_DOCDIR/README.daemon || exit1 echo "# Start hostapd?" >> $CONFIGFILE echo "START_$MYNAME=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_$MYNAME=\"$MYNAME is a user-space daemon for 802.1x authentication\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- hostap DELETED --- |