View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#1039
Originally Posted by James_Littler View Post
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.
Have you tried the script from a shell prompt as user: "user" (your credentials when running script from qbw)?
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 

The Following User Says Thank You to No!No!No!Yes! For This Useful Post: