[android-porting] Re: running a script from init.rc

2013-06-26 Thread Chen Jiaqi
Please try like this: on boot exec /system/bin/sh ./system/etc/my.sh add to init.rc 在 2012年4月25日星期三UTC+8上午8时46分39秒,HV写道: Hi All, I'm trying to initiate a script as a service from init.rc (running ICS), but it doesn't seem to work. Here is what I have: service my_sh

[android-porting] Re: running a script from init.rc

2012-04-30 Thread HV
Thanks for all your responses, appreciate it. I was able to put up a script that does the job On Thursday, April 26, 2012 11:02:51 PM UTC-7, Alvin Wong wrote: Hi, If you need to do some setup job (for example setting hardware, e.g. cpu scaling) you can use a script, just look into

[android-porting] Re: running a script from init.rc

2012-04-29 Thread Alvin Wong
My words on this: Follow that goldfish thing. Note that all services outputs to /dev/null so you never see it in the console. (How often do you see outputs of services?) You can use logwrapper to log in logcat or use redirection in script to output to files. Good luck, Alvin Wong On 4月26日,

[android-porting] Re: running a script from init.rc

2012-04-29 Thread Alvin Wong
Hi, If you need to do some setup job (for example setting hardware, e.g. cpu scaling) you can use a script, just look into `init.goldfish.rc` and `/system/etc/init.goldfish.sh`. However I don't think you would like to show something in the console. Android has a GUI, and normally you don't want

[android-porting] Re: running a script from init.rc

2012-04-25 Thread Chris Stratton
On Tuesday, April 24, 2012 8:46:39 PM UTC-4, HV wrote: Hi All, I'm trying to initiate a script as a service from init.rc (running ICS), but it doesn't seem to work. Here is what I have: service my_sh /system/bin/sh ./system/etc/my.sh Why are you staring what looks to be an