diff options
author | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
---|---|---|
committer | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
commit | bdea7e6c6a535e57a07d376a3139d0788efaaa41 (patch) | |
tree | 1a7334c99fa39b1ad1a7a35c113b18cb0d92413c /ndiswrapper | |
download | opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.gz opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.xz |
create branch for 2.2
Diffstat (limited to 'ndiswrapper')
-rw-r--r-- | ndiswrapper/.footprint | 18 | ||||
-rw-r--r-- | ndiswrapper/.md5sum | 2 | ||||
-rw-r--r-- | ndiswrapper/Pkgfile | 19 | ||||
-rw-r--r-- | ndiswrapper/README | 25 | ||||
-rw-r--r-- | ndiswrapper/wlan | 29 |
5 files changed, 93 insertions, 0 deletions
diff --git a/ndiswrapper/.footprint b/ndiswrapper/.footprint new file mode 100644 index 000000000..adf1e0389 --- /dev/null +++ b/ndiswrapper/.footprint @@ -0,0 +1,18 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/ndiswrapper/ +drwxr-xr-x root/root etc/rc.d/ +-rwx------ root/root etc/rc.d/wlan +drwxr-xr-x root/root lib/ +drwxr-xr-x root/root lib/modules/ +drwxr-xr-x root/root lib/modules/<kernel-version>/ +drwxr-xr-x root/root lib/modules/<kernel-version>/misc/ +-rw-r--r-- root/root lib/modules/<kernel-version>/misc/ndiswrapper.ko +drwxr-xr-x root/root sbin/ +-rwxr-xr-x root/root sbin/loadndisdriver +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/ndiswrapper.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/ndiswrapper +-rwxr-xr-x root/root usr/sbin/ndiswrapper-buginfo diff --git a/ndiswrapper/.md5sum b/ndiswrapper/.md5sum new file mode 100644 index 000000000..26e29e79c --- /dev/null +++ b/ndiswrapper/.md5sum @@ -0,0 +1,2 @@ +db2edffb082bda09b27358b6528e5e56 ndiswrapper-1.10.tar.gz +4b7ce696b710405e42ae105ad6113712 wlan diff --git a/ndiswrapper/Pkgfile b/ndiswrapper/Pkgfile new file mode 100644 index 000000000..14cc89986 --- /dev/null +++ b/ndiswrapper/Pkgfile @@ -0,0 +1,19 @@ +# Description: Kernel module and user space tool to run Windows XP drivers for wireless cards +# URL: http://ndiswrapper.sourceforge.net/ +# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de +# Depends on: wireless-tools, pciutils + +name=ndiswrapper +version=1.10 +release=1 +source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz \ + wlan) + +build () { + cd $name-$version + sed -i '/\t-\/sbin\/depmod/d' driver/Makefile + make + make DESTDIR=$PKG install + install -d $PKG/etc/{rc.d,ndiswrapper} + install -m 700 $SRC/wlan $PKG/etc/rc.d +} diff --git a/ndiswrapper/README b/ndiswrapper/README new file mode 100644 index 000000000..58bfab4da --- /dev/null +++ b/ndiswrapper/README @@ -0,0 +1,25 @@ +README for ndiswrapper + +REQUIREMENTS +Kernel with Wireless LAN support + +PRE-INSTALL + +POST-INSTALL +1. Run 'depmod -a' to register the new kernel driver +2. Download the Windows XP driver, upack it and locate the .inf + file for your card. Run ndiswrapper to install the driver + + ndiswrapper -i <path/to/inffile.inf> + +3. Edit /etc/rc.d/wlan and add ip-addresses, ESSID etc. + + +PRECAUTION +1. If you upgrade from ndiswrapper 0.12 re-install the windows + driver with the above command. This is necessary because of + changes in the configuration file format. +2. To prevent overwriting your seetings add the following line + to /etc/pkgadd.conf + + UPGRADE ^etc/rc\.d/wlan$ NO diff --git a/ndiswrapper/wlan b/ndiswrapper/wlan new file mode 100644 index 000000000..c058f90fe --- /dev/null +++ b/ndiswrapper/wlan @@ -0,0 +1,29 @@ +#!/bin/sh +# +# /etc/rc.d/wlan: start/stop wireless network +# + +case $1 in +start) + /sbin/modprobe ndiswrapper + /usr/sbin/iwconfig wlan0 mode Managed + /usr/sbin/iwconfig wlan0 key restricted s:xxxxxxxxxxxxx + /usr/sbin/iwconfig wlan0 essid xxxxxxxx + /sbin/ifconfig wlan0 xxx.xxx.xxx.xxx netmask 255.255.255.xxx + /sbin/route add default gw xxx.xxx.xxx.xxx + ;; +stop) + /sbin/ifconfig wlan0 down + /sbin/modprobe -r ndiswrapper + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file |