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, bord...@gmail.com <bord...@gmail.com>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: android-kernel+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-kernel

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to