#!/bin/sh # /sbin/modprobe wlan /sbin/modprobe ath_pci /sbin/modprobe ath_hal ifconfig eth0 192.168.0.2 netmask 255.255.255.0 down iwpriv ath0 mode "2" iwconfig ath0 essid "any" iwconfig ath0 channel "6" iwconfig ath0 mode "Managed" #iwconfig ath0 nickname "linuxbox" iwconfig ath0 key "off" ifconfig ath0 192.168.0.10 route add default gw 192.168.0.1