I am attempting to run a script that exectues when the machine has completed booting. This specific machine doesn’t help operating scripts from an init.d listing, which is why I’m utilizing init.rc.
The init.rc file has been modified to incorporate the next code
on property:sys.boot_completed=1 begin initAsic service initAsic /knowledge/native/tmp/runn.sh person root group root oneshot
The boot picture has then been rebuilt and flashed to the machine. The adjustments could be confirmed by viewing the init.rc file situated at
At the moment I’m solely utilizing a easy take a look at script (testScript.sh) which points the next command
echo hello >> /knowledge/native/tmp/take a look at.txt
The testScript.sh and textual content.txt file has
777 permissions set and each have been pushed to the machine utilizing
Their present location is
For some purpose evidently my script just isn’t operating, as I can not see any textual content being written to check.txt.
Am I lacking one thing?
May it’s a problem with SELinux?
My machine at the moment has SElinux set to permissive. This was achieved by way of altering the BoardConfig.mk file and doing a rebuild of the boot.img.