chris41g

Keytimer

May 10th, 2011
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.94 KB | None | 0 0
  1. #!/tmp/busybox sh
  2. #
  3. # This program is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU Library General Public License as published
  5. # by the Free Software Foundation; either version 2, or (at your option)
  6. # any later version.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. #
  13. # License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
  14. #
  15. echo '#!/system/bin/sh' > /system/etc/init.d/13-keytimer
  16. echo '#set keyboard timer delay' >> /system/etc/init.d/13-keytimer
  17. if [ $1 != "" ]
  18.     then
  19.  echo 'echo ' $1 ' > /sys/devices/platform/s3c-keypad/timer_delay' >> /system/etc/init.d/13-keytimer
  20.     else
  21.  echo 'echo 5 > /sys/devices/platform/s3c-keypad/timer_delay' >> /system/etc/init.d/13-keytimer
  22. fi
Advertisement
Add Comment
Please, Sign In to add comment