#fossfrog #init.d
In this tutorial, I enabled init.d support without modifying and repacking kernel.
REQUIREMENTS
Rooted android or Custom recovery installed
*FOR MAGISK USERS*
Put your shell scripts in /data/adb/service.d
NOTE-
1- "init.rc" file is read-only because it is mounted from ramdisk, So don't make changes on it. If you do then it will be reverted at the next boot.
2- You can use "run-parts" instead of "for loop" in "install-recovery.sh" if you have busybox installed.
3- You can change the sleep seconds used in your scripts as per your requirement.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Mastering Linux Shell Scripting - Second Edition https://amzn.to/2O7hwBK
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
If you like it then hit the thumbs up.
Thanks for watching...