Lepsi hodnoty
[mirrors/Programs.git] / bash / wifi.bash
CommitLineData
84aff5c8
H
1#!/bin/bash
2
3echo ModProbing modules...
4 ifconfig ath0 down
5 ifconfig wifi0 down
6 modprobe ath_pci
7 modprobe wlan_scan_sta
8
9echo 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
15echo Scanning for APs...
16 sleep 3
17 wlanconfig ath0 list scan
18
19echo Using strongest AP...
20 iwconfig ath0 essid any
21 ifconfig essid Network_395 ath0
22
23echo DHCP Broadcast...
24 dhclient ath0
25
26echo Done!
This page took 0.384514 seconds and 4 git commands to generate.