#!/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