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 /system/bin/sh ./system/etc/my.sh
>     user root
>     group root
> #    oneshot
>
> And my.sh is very simple:
>
> #!/system/bin/sh
>
> echo "Executing my.sh"
> lsmod
> ************
>
> Any ideas what could be missing?
>
> Thanks
> HV
>
>

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to