View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#5
Yeah, sure.

Just put that piece of code as root into a file named "gpio-switch_disabler" (or anything you like) into /etc/event.d folder

Code:
description "disabling gpio switch lock"

author "peterleinchen"

#start on MOUNTS_OK
start on started ke-recv
stop on starting shutdown

pre-start script
  sleep 60	
end script

script
  echo 1 > /sys/bus/platform/devices/gpio-switch/kb_lock/disable
end script
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post: