![]() |
2010-01-09
, 12:23
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#2
|
The Following 5 Users Say Thank You to Matan For This Useful Post: | ||
![]() |
2010-01-09
, 12:40
|
Posts: 187 |
Thanked: 28 times |
Joined on Apr 2007
@ Southampton, UK
|
#3
|
![]() |
2010-01-09
, 12:47
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#4
|
The Following User Says Thank You to Matan For This Useful Post: | ||
![]() |
2010-01-15
, 17:58
|
Posts: 18 |
Thanked: 3 times |
Joined on Nov 2009
@ Graz, Austria
|
#5
|
Nokia-N900-42-11:/# uname -a Linux Nokia-N900-42-11 2.6.28-omap1 #1 PREEMPT Thu Dec 17 09:40:52 EET 2009 armv7l unknown
![]() |
2010-01-15
, 19:59
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#6
|
![]() |
2010-03-23
, 23:12
|
Posts: 74 |
Thanked: 34 times |
Joined on Jan 2008
|
#7
|
The first string in get_statistics gives you the id of the string. you need to look at the gconf database to convert it to a name.
In python you need to do something like:
self.conns = gconf_client.all_dirs("/system/osso/connectivity/IAP")
for item in self.conns:
name=gconf_client.get_string(item+"/name")
gconftool -R /system/osso/connectivity/IAP |more
last_used_type = GPRS
flightmode_wlan = false
wlan_tx_power = 8
last_used_attrs = 83886080
last_used_network = Internet 3G
/system/osso/connectivity/IAP/36d13d8b-5baf-49af-8a3c-508c3c2a558f:
wlan_security = NONE
![]() |
2010-03-23
, 23:26
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#8
|
![]() |
2010-03-25
, 11:11
|
Posts: 74 |
Thanked: 34 times |
Joined on Jan 2008
|
#9
|
I've tried searching for this but haven't found anything relevant as of yet.
What I want to do is get the N900 to run a script if it's connected to a specific network (specifically a backup script).
Alternatively does anyone know of a way of detecting what network the N900 is connected to using either Python or a command line command?
Many thanks for any help you can offer.
There is no place like /home.