#!/bin/sh # ipw3945.in-tree # Insert the source code of ipw3945 driver into tree of kernel source # last modify: 04/06/2007 # by spina # This file may be distributed and/or modified under the terms of the # GNU General Public License version 2 as published by the Free Software # Foundation # # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. # # Visit http://www.gnu.org/copyleft/gpl.html for GPL licensing information. CWD=`pwd`; VERSION=1.2.2 TMP=/tmp [ $(id -u) -gt 0 ] && echo "Only root can do it!" && exit # $1 must be KSRC=path_kernel if [ ! -z $1 ]; then eval $1; DIR=${KSRC} else DIR=/lib/modules/$(uname -r)/build; fi cd $TMP tar -zxf "${CWD}"/ipw3945-${VERSION}.tgz cd ipw3945-${VERSION} if yes | make add_radiotap $1; then yes |make patch_kernel $1 fi cd ..; rm -rf ipw3945-${VERSION}