|Re: problems with starting a shell script at boot time from init.<target>.rc||Pieter||8/2/12 12:47 AM|
I solved it. It seems you have to specify the class, otherwise it is in the class "default". In your init.rc, there are only statements for class_start core and class_start main. So you have to specifiy the class and add (if needed) an appropriate class_start statement.
On Wednesday, August 1, 2012 9:12:13 AM UTC+2, Pieter wrote:
|Re: [android-kernel] Re: problems with starting a shell script at boot time from init.<target>.rc||Distrovix_DEV_TEAM||8/2/12 10:44 AM|
|Re: problems with starting a shell script at boot time from init.<target>.rc||William Roberts||8/2/12 7:24 PM|
Shouldn't be executable?
We have something in SE Android that uses something similair in out init.rc we have:
service netlabels /system/bin/selinux-network.sh
And our Android.mk for the project has this:
LOCAL_MODULE := selinux-network.sh
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)
It is important to note that the shell file is executable in the project directory, this way when it gets added to the image it is executable as well.
Hope this helps...