schrotie n00b

Joined: 06 Feb 2005 Posts: 18
|
Posted: Sun Feb 06, 2005 2:13 am Post subject: braindump: Wlan on amd64 |
|
|
Hi here's how I got it working, hope it helps somebody. I used the hostap-driver (it's masked for amd64 so force the x86 keyword to emerge it). Contrary to the ng and orinoco drivers the hostap works with my prism2_pci without problems.
I also used wireless-tools (stable version available for amd64).
Edited conf.d/net (exchanged wlan0 for eth0).
Wrote new init script (don't shoot me, I wanted it to work for me, I did not want the most general solution), /etc/init.d/wlan:
| Code: | #!/sbin/runscript
start() {
modprobe hostap_pci
iwconfig wlan0 essid YourNetName
iwconfig wlan0 mode managed
iwconfig wlan0 nick YourNick
# add more according to your setup
}
stop() {
rmmod hostap_pci
}
|
Copied a file:
| Code: |
cp /etc/init.d/net.eth0 /etc/init.d/net.wlan0 |
Edited the copy
| Code: | depend() {
need wlan
} |
Removed old net init on boot and added the new one:
| Code: | rc-update del net.eth0 default
rc-update add net.wlan0 default |
Done. Good luck! |
|