3 #=======================================================================
5 # File ID: c4393f36-5d49-11df-8d2c-90e6ba3022ac
6 # Activates the network card.
7 # Syntax: wlan1 [essid]
8 #=======================================================================
10 [ "`whoami`" = "root" ] ||
{
11 echo `basename $0`: Heh
, you ain’t got root power. Gonna need that
, mate.
>&2
16 if [ "$1" = "" ]; then
20 modprobe wlan_scan_sta
22 echo ==== Waiting
for ath0...
====
23 until grep ath0
/proc
/net
/wireless
; do :; done
26 echo ==== Available networks
: ====
27 wlanconfig ath0 list scan
29 if [ -z $accpoint ]; then
30 echo iwconfig ath0 ap any ap any
31 iwconfig ath0 ap any ap any
33 echo iwconfig ath0 ap
\"$accpoint\"
34 iwconfig ath0 ap
"$accpoint"
37 echo ======== BEGIN iwconfig
========
39 echo ======== END iwconfig
========