Friday, July 13, 2012

Put wirless in to ad-hoc shell script

#!/bin/bash
rfkill unblock 0
rfkill unblock 1
ifconfig wlan0 down
sleep 1
iwconfig wlan0 essid
iwconfig wlan0 key s:
iwconfig wlan0 mode ad-hoc
ifconfig wlan0 up
ifconfig wlan0 10.16.90.12 netmask 255.255.240.0
route add default ppp0
sleep 1
iwconfig wlan0 essid

NOTE: place your essid and password in the script

No comments:

Post a Comment