Thread
:
Desktop Command Execution Widget scripts
View Single Post
moudy91
2010-09-13 , 08:22
Posts: 165 | Thanked: 18 times | Joined on Jun 2010
#
356
hey guys i need your help with something.
i need to disable wifi and enable wifi with command desktop executed or with Queen Beecon Widget command.
i tried ( echo "/path/to/script/wifi.sh" | sudo gainroot | echo "" )
and
#!/bin/sh
out=`ifconfig wlan0`
if [ $? -eq "0" ] ; then
if [ `echo "$out" | grep -c RUNNING` -gt "0" ] ; then
run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
fi
ifconfig wlan0 down
rmmod wl12xx
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Wi-Fi disabled'
exit 2
else
modprobe wl12xx
wl1251-cal
stop wlancond
start wlancond
ifconfig wlan0 up
run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:false
exit 0
fi
but it always ask to connect or disconnect, but about me i need disable and enabla wifi, and i download the disable wifi widget but i didn't like it, i need a command that i can put it on the desktop.
so any help if yes please STEP BY STEP.
thank you
Quote & Reply
|
moudy91
View Public Profile
Send a private message to moudy91
Find all posts by moudy91