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
On Thu, May 12, 2011 at 12:29 PM, [email protected] <[email protected]>wrote:
> 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/
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-kernel
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel