The Following User Says Thank You to ajalkane For This Useful Post: | ||
![]() |
2013-09-10
, 23:19
|
Posts: 697 |
Thanked: 137 times |
Joined on Jul 2012
@ Hillerød, DK
|
#1492
|
In Custom Action like this:
I didn't check where exactly you have execroot.sh etc., but I hope you get the gist of it.Code:sh /home/user/scripts/execroot.sh "/sbin/initctl restart xsession/icd2"
![]() |
2013-09-10
, 23:57
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#1493
|
sh -c "echo rootme | devel-su -c '/sbin/initctl restart xsession/icd2'"
The Following User Says Thank You to Schturman For This Useful Post: | ||
![]() |
2013-09-11
, 10:54
|
Posts: 697 |
Thanked: 137 times |
Joined on Jul 2012
@ Hillerød, DK
|
#1494
|
Garp, use custom action:
Change rootme to your root pass.Code:sh -c "echo rootme | devel-su -c '/sbin/initctl restart xsession/icd2'"
![]() |
2013-09-15
, 22:10
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1495
|
The Following 4 Users Say Thank You to ajalkane For This Useful Post: | ||
![]() |
2013-09-19
, 14:28
|
Posts: 25 |
Thanked: 14 times |
Joined on Sep 2013
@ Serbia
|
#1496
|
/sbin/mcetool --disable-radio=wlan sleep 1 /sbin/mcetool --enable-radio=wlan
PROCESS=myapp number=$(ps aux | grep $PROCESS | wc -l) if [ $number -gt 1 ] then exit else #Disable Network (WiFi+3G/2G) connection gconftool-2 -t bool -s /system/osso/connectivity/network_type/restricted_mode true /sbin/mcetool --disable-radio=wlan sleep 1 /sbin/mcetool --enable-radio=wlan exit fi
#Firewall exception AppList: #when availability for any account set online #eMail demon #Web browser #Firefox #Facebook #Twitter #QNeptunea #Skype #Wazapp #Foursquare #SkyFiles #Dropbox #Store #Soundwave #TranslateAll
The Following User Says Thank You to vds For This Useful Post: | ||
![]() |
2013-09-20
, 06:35
|
Posts: 25 |
Thanked: 14 times |
Joined on Sep 2013
@ Serbia
|
#1497
|
#!/bin/bash #Name=Firewall Network (WiFi+3G/2G) connection when not in use by applications from list #Firewall exception AppList: # availability for profiles skype/fb # Web browser # Firefox/fennec # QNeptunea # Skype # Wazapp # Foursquare # SkyFiles # Ovi Store # Soundwave # TranslateAll # DropBox /DropN9/ # DropBox /Dropian/ for PROCESS in [telepathy]-spirit [telepathy]-gabble [Qt]Web [f]ennec [QN]eptunea [wa]zapp [F]oursquare [Sky]Files [ovi]storeclient [quick]flicker [Sound]wave [T]ranslateAll [d]ropn9 [Dr]opian [we]bupload do num=$(ps ax | grep -c -i $PROCESS) if [ $num -gt 0 ] then exit fi done #Disable Network (WiFi+3G/2G) connection gconftool-2 -t bool -s /system/osso/connectivity/network_type/restricted_mode true /sbin/mcetool --disable-radio=wlan sleep 1 /sbin/mcetool --enable-radio=wlan exit
ps ax | grep [libicd]_network_ipv4 | awk '{print $1}' | xargs kill -9
sh /home/user/scipts/execroot.sh "sh /home/user/scripts/kill_ipv4.sh"
#!/bin/bash #Name=Terminate (WiFi+3G/2G) connection when not in use by applications from list #Firewall exception AppList: # availability for profiles skype/fb # Web browser # Firefox/fennec # QNeptunea # Skype # Wazapp # Foursquare # SkyFiles # Ovi Store # Soundwave # TranslateAll # DropBox /DropN9/ # DropBox /Dropian/ for PROCESS in [telepathy]-spirit [telepathy]-gabble [Qt]Web [f]ennec [QN]eptunea [wa]zapp [F]oursquare [Sky]Files [ovi]storeclient [quick]flicker [Sound]wave [T]ranslateAll [d]ropn9 [Dr]opian [we]bupload do num=$(ps ax | grep -c -i $PROCESS) if [ $num -gt 0 ] then exit fi done # kill network_ipv4 process ps ax | grep [libicd]_network_ipv4 | awk '{print $1}' | xargs kill -9
![]() |
2013-09-20
, 12:44
|
Posts: 25 |
Thanked: 14 times |
Joined on Sep 2013
@ Serbia
|
#1498
|
Uploaded a minor update to Ovi Store (already available from OpenRepos).
![]() |
2013-09-20
, 16:43
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1499
|
Greate, Thanks
Maybe an idea for further development of the already excellent application:
Is it possible to make that a condition for action is the availability of WiFi network (instead that connectivity with WiFi must be achieved)? The device can scan wifi network availability (in a certain time interval -either predefined or user can define it in app) and if the range of the known network, it can trigger actions (no need for WiFi to be connected to do that).
![]() |
2013-09-25
, 19:31
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1500
|
If anyone's interested, I managed to make a script that does exactly what I wanted. Script will disable WiFi/3G/2G connection, if any of the programs in the list of exceptions not in use.
My N9/N950 projects: