How to autorun a script on startup(exec command not implemented in init.rc?)

593 views
Skip to first unread message

bor...@gmail.com

unread,
May 12, 2011, 6:29:29 AM5/12/11
to android...@googlegroups.com, android...@googlegroups.com
Hi all:
How to autorun a script to config network on startup. I try to
use exec command in the init.rc, but it's not implemented yet?
The "do_exec" function in "builtins.c", it simply returns -1 without
doing anything.

Android version 2.2 (Froyo).
Kernel 2.6.32

--
Bian Jiang
http://www.wifihack.net/
http://golang-china.org/

hedwin

unread,
May 14, 2011, 5:17:38 PM5/14/11
to android...@googlegroups.com
service aName /aPath/aScript.sh
     oneschot

aName     - name you give to the service to run
aPath       - where the script is located
aScript.sh - your script to start the network stuff

Add this to your init,rc

Hedwin


Reply all
Reply to author
Forward
0 new messages