Installation manual

44 5. Debian and other Software Packages
#> depmod −a
Edit of /usr/src/modules/linux-wlan-ng-0.1.15/debian/rules:
#line 29:
#export DH_OPTIONS=−p$(PACKAGE) −−mainpackage=$(PACKAGE)
export DH_OPTIONS=−p$(PACKAGE)
#line 105:
#kdist_config:
kdist_configure:
Note: In later versions of the linux-wlan-ng package (e.g. version 0.2.0-9) the automagic installation of the ker-
nel modules is completely f. . .ed up. Wehav e to do it manually:
Manual installation of the linux-wlan-ng modules:
#> cd /lib/modules/2.4.18/
#> mkdir net pcmcia usb
#> cp /usr/src/modules/linux−wlan−ng−0.2.0/src/p80211/p80211.o net
#> cp /usr/src/modules/linux−wlan−ng−0.2.0/src/prism2/driver/prism2_pci.o net
#> cp /usr/src/modules/linux−wlan−ng−0.2.0/src/prism2/driver/prism2_plx.o net
#> cp /usr/src/modules/linux−wlan−ng−0.2.0/src/prism2/driver/prism2_cs.o pcmcia
#> cp /usr/src/modules/linux−wlan−ng−0.2.0/src/prism2/driver/prism2_usb.o usb
#>
#> depmod −a
In the next step, we need to tell the system about our newnetwork interface and the kernel modules. Todoso, we
edit /etc/network/interfaces and /etc/modutils/linux-wlan-ng and then update the modules list.
/etc/network/interfaces:
auto lo
iface lo inet loopback
iface wlan0 inet dhcp
wireless_essid <SSID here>
wireless_mode managed
wireless_nick <insert name here>
/etc/modutils/linux-wlan-ng:
alias wlan0 prism2_pci
Updating the modules list:
#> update−modules
If everything is okay,the wlan0 interface should nowbebrought up if we type ifup wlan0 and receive some IP
address from the router in the 192.168.123.0 subnet of our WLAN.
This simple WLAN setup is then expanded and integrated into our nifty network-profile handling mechanism.
5. 15. 1. Special Case: The USR-2410 PC Card
To support this card by the linux-wlan-ng drivers, we have toedit some configuration files and roll our own
scripts. First, we have touncomment the appropriate device definitions in /etc/pcmcia/wlan-ng.conf, otherwise
the standard kernel drivers will get loaded.
/etc/pcmcia/wlan-ng.conf:
card "Intersil PRISM2 Reference Design 11Mb/s 802.11b WLAN Card"
version "INTERSIL", "HFA384x/IEEE"
bind "prism2_cs"
card "Intersil PRISM2 Reference Design 11Mb/s WLAN Card"
manfid 0x0156, 0x0002
bind "prism2_cs"
In the next step, we disable the mass of half-integrated half-messed-up scripts to handle the PC Card automagi-
cally.This is done by diverting the original wlan-ng script and the recplacing it by an empty script: