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

by bord...@gmail.com » Thu, 12 May 2011 18:29:39 GMT


Sponsored Links
 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/ 

-- 



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

by hedwin » Sun, 15 May 2011 05:17:48 GMT


 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





-- 


Sponsored Links


Other Threads

1. Get the list of discovered bluetooth

Can any body help me how can I get the list of discovered bluetooth
device ?
I am currently developing an application which scan for bluetooth
devices in a specific time interval and log their names.
I haven't been found any example yet. also it seems that
BluetoothAdapter class does not support this.

-- 

2. 0xdroid new release beagle-donut-0x3

Hello list,
    0xdroid[1] is an Android distribution project dedicated for
Beagleboard (based on TI OMAP353x SoC) hardware platform.
    0xlab is glad to announce the availability of the new release,
beagle-donut-0x3. This release is based on donut branch with further
performance tweak.

    For more information and detail, here is the release notes,
http://code.google.com/p/0xdroid/wiki/beagle_donut_0x3

    Welcome giving us feedback and discussion by joining

3. AudioTack

4. just another android rtp stack question

5. Calendar - Custom Appointment Data

6. How to start activity in android default packages

7. Lifecycle states