![]() |
2010-01-07
, 14:28
|
Posts: 5,335 |
Thanked: 8,187 times |
Joined on Mar 2007
@ Pennsylvania, USA
|
#21
|
![]() |
2010-01-07
, 14:50
|
Posts: 318 |
Thanked: 49 times |
Joined on Nov 2009
|
#22
|
![]() |
2010-01-17
, 11:30
|
Posts: 8 |
Thanked: 2 times |
Joined on Dec 2009
|
#23
|
![]() |
2010-01-17
, 12:24
|
Posts: 8 |
Thanked: 2 times |
Joined on Dec 2009
|
#24
|
The Following User Says Thank You to #9370 For This Useful Post: | ||
![]() |
2010-01-17
, 13:23
|
Posts: 318 |
Thanked: 49 times |
Joined on Nov 2009
|
#25
|
![]() |
2010-01-20
, 00:07
|
|
Posts: 139 |
Thanked: 135 times |
Joined on Jan 2010
@ Cambridgeshire, UK
|
#26
|
![]() |
2010-01-20
, 00:46
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#27
|
#!/bin/sh a=`ifconfig phonet0 | grep RX.p | cut -d: -f2` c=`ifconfig wlan0 | grep RX.p | cut -d: -f2` b=$a d=$c while true ; do sleep 300 a=`ifconfig phonet0 | grep RX.p | cut -d: -f2` c=`ifconfig wlan0 | grep RX.p | cut -d: -f2` if [ "$a" == "$b" -a "$c" == "$d" ] ; then dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true fi b=$a d=$c done
The Following 2 Users Say Thank You to Matan For This Useful Post: | ||
![]() |
2010-01-20
, 01:31
|
Posts: 318 |
Thanked: 49 times |
Joined on Nov 2009
|
#28
|
![]() |
2010-01-20
, 17:30
|
|
Posts: 139 |
Thanked: 135 times |
Joined on Jan 2010
@ Cambridgeshire, UK
|
#29
|
This script should disconnect from network (wlan or GPRS/UMTS) after 5 to 10 minutes of no received packets:
Code:#!/bin/sh a=`ifconfig phonet0 | grep RX.p | cut -d: -f2` c=`ifconfig wlan0 | grep RX.p | cut -d: -f2` b=$a d=$c while true ; do sleep 300 a=`ifconfig phonet0 | grep RX.p | cut -d: -f2` c=`ifconfig wlan0 | grep RX.p | cut -d: -f2` if [ "$a" == "$b" -a "$c" == "$d" ] ; then dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true fi b=$a d=$c done
The Following User Says Thank You to stopgap For This Useful Post: | ||
![]() |
2010-01-20
, 17:56
|
|
Posts: 139 |
Thanked: 135 times |
Joined on Jan 2010
@ Cambridgeshire, UK
|
#30
|
![]() |
|