mercredi 25 février 2015

[Q] Problem starting own script from init.rc topic






Hello,

I am having some trouble running a script at boot started with init.rc:

I have added the following to the init.rc


Code:


service custom-init /system/bin/init.custom
    class main
    user root
    group root
    oneshot


The file exists and has executable rights:

Code:


ll /system/bin/init.custom
-rwxr-xr-x root    root          645 2008-08-01 14:00 init.custom


If I execute the file from the shell everything works fine. What am I doing wrong? Needs the started script to be a binary?






Aucun commentaire:

Enregistrer un commentaire