docs
[mirrors/Programs.git] / bash / wifi.bash
1 #!/bin/bash
2
3 echo ModProbing modules...
4 ifconfig ath0 down
5 ifconfig wifi0 down
6 modprobe ath_pci
7 modprobe wlan_scan_sta
8
9 echo Recreating ath0 device from wifi0...
10 ifconfig wifi0 up
11 wlanconfig ath0 destroy
12 wlanconfig ath0 create wlandev wifi0 wlanmode sta
13 ifconfig ath0 up
14
15 echo Scanning for APs...
16 sleep 3
17 wlanconfig ath0 list scan
18
19 echo Using strongest AP...
20 iwconfig ath0 essid any
21 ifconfig essid Network_395 ath0
22
23 echo DHCP Broadcast...
24 dhclient ath0
25
26 echo Done!
This page took 0.284605 seconds and 4 git commands to generate.