View Single Post
Posts: 153 | Thanked: 81 times | Joined on Dec 2011 @ P town
#508
peterleinchen,
I have edited your script, to make it cleaner.
Code:
#!/bin/sh
#configure timeout, may be any integer value from 1 to 999?
lock=`gconftool -g /system/osso/dsm/locks/devicelock_autolock_enabled` 
Timeout=`gconftool -g /system/osso/dsm/locks/devicelock_autolock_timeout`
if $lock ; then
 echo "input timeout in minutes (integer)"
 read iTimeout
 gconftool -s /system/osso/dsm/locks/devicelock_autolock_enabled -t bool true 
 gconftool -s /system/osso/dsm/locks/devicelock_autolock_timeout -t int $iTimeout
 #applet, will only accept and show 5, 10, 30, 60 
 gconftool -s /apps/osso/applet/osso-applet-devicelock/device_lock -t bool true
 gconftool -s /apps/osso/applet/osso-applet-devicelock/autolock_period -t int $iTimeout
 echo Change device lock timeout from $Timeout minute\(s\) to $iTimeout minute\(s\)
else
 echo "Device autolock disable. Enable it from Menu->System->Settings->Device lock."
fi
Thanks again. Sorry for asking an oot question.
Attached Files
File Type: txt DeviceLock.txt (847 Bytes, 86 views)

Last edited by sLumPia; 2012-05-29 at 07:19. Reason: add attachment