View Single Post
James_Littler's Avatar
Posts: 820 | Thanked: 436 times | Joined on May 2010 @ Portsmouth, UK.
#1037
Currently I have this as my command

Code:
#!/bin/sh

# gain superuser rights.

if [ `id -u` != 0 ] ; then
    exec sudo gainroot <<EOF
exec sh $0 $*
EOF
	exit $?
fi   

# put your code below

ifconfig wlan0 down;
iwconfig wlan0 mode Monitor;
ifconfig wlan0 up;

exit;
I have it set to update at click but it's not doing anything.
When I check iwconfig it says I'm still in managed mode.

Last edited by James_Littler; 2011-01-01 at 23:27.