|
2010-02-09
, 20:42
|
Posts: 183 |
Thanked: 115 times |
Joined on Nov 2007
@ Seattle, WA
|
#2
|
#!/bin/sh iwgetid|grep -q CENPA if [ $? -eq 0 ]; then su -c /home/user/bin/LinkOffice.sh user fi
The Following User Says Thank You to baksiidaa For This Useful Post: | ||
|
2010-02-09
, 20:51
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#3
|
The Following 2 Users Say Thank You to rambo For This Useful Post: | ||
|
2010-04-07
, 07:55
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#4
|
# Get the autolock status (true or false) gconftool-2 --get /system/osso/dsm/locks/devicelock_autolock_enabled # Set the autolock status to for example true gconftool-2 --set --type boolean /system/osso/dsm/lock/devicelock_autolock_enabled true
# List all the registered internet access points IDs: gconftool-2 --all-dirs /system/osso/connectivity/IAP # Get an access point's name: gconftool-2 -g /system/osso/connectivity/IAP/$ICD_CONNECTION_ID/name
I was wondering if there is any way to trigger a script before the auto-lock happens? I'd like to be able to specify wlan connections which are "home" so that the locking just doesn't happen when connected to one of those.
Is there an event handler for this? Does anyone know how I might achieve this?