Shell script won't execute

I have CM12.1 on my Galaxy S3. I am trying to set up SSHD. Everything is working fine for now, except for the last step: start the sshd daemon on startup.

The problem is that the script

/data/local/userinit.sh

will be executed, but the call is no longer in it.

Here is the script:

#!/system/bin/sh

if [ -e /data/local/userinit.d/99sshd ]
then
   log -p i -t userinit "Launching /data/local/userinit.d/99sshd--before"
   /system/bin/sh /data/local/userinit.d/99sshd
   log -p i -t userinit "Launching /data/local/userinit.d/99sshd--after"
fi

      

script 99sshd is very simple, just for debugging:

#!/system/bin/sh

log -p i -t userinit "Executing /data/local/userinit.d/99sshd"

      

And here is the logcat output:

userinit - Run /data/local/userinit.d/99sshd--before

userinit - Run /data/local/userinit.d/99sshd--after

Missing message:

userinit - Executing /data/local/userinit.d/99sshd

How could this happen?!

+3


source to share


1 answer


init.d and userinit.d support removed from CM12 and CM13



+1


source







All Articles