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

by » 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 


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/

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

Add this to your init,rc



Sponsored Links

Other Threads

1. setContentView of a Custom View


My current painting activity is built off of from the
API Demos. In my xml I declared the custom view, see below. When I
setContentView(view); everything works fine, but the problem is when I
setContentView(paint_layout.xml) it does not work properly.

public class Paint extends PaintActivity implements
ColorPickerDialog.OnColorChangedListener {

     private Paint mPaint;
     private PaintView view;

     protected void onCreate(Bundle savedInstanceState) {
      view = new PaintView(this);

     //Set mPaint code

     public class PaintView extends View {
     //PaintView code
//Paint code

<FrameLayout xmlns:android="

android:layout_height="fill_parent" />

<!-- other buttons and text -->

Can anyone inform me of why exactly? Am I missing an attribute for the
custom layout in the xml?

Thank you!



2. Singapura --- Temannya Tablet Android

wah enak juga ya si robot punya temen cantik2........



3. How to determine which part of a file has been buffered?

4. Loading database file error after decrypting

5. Smooth Image Rotation with Gesture Control, UI Setup, Help

6. Set picture as wallpaper

7. Horay dapat juga doc to go full gratisan