Jump to content
Sign in to follow this  
doggedly

How to Automatic Start (Autorun) Script

Recommended Posts

In Asus Tinker board version one it was easy. It was enough to put the init.asus.sh file in the /system/etc/ directory and grant it permissions. Everything in this file was executed on boot (after the tinkerboard bootlog).

Unfortunately, it doesn't work in Tinkerboard 2.

There is a solution after installing the Magisk package. Daily Job Scheduler mod needs to be added. This is a pretty cool solution that looks like a Linux crontab.

However, I would prefer a more system-level solution, ignoring these types of mods.

Is there any autorun method similar to init.asus.sh / rc.local etc ??

Share this post


Link to post
Share on other sites

hello @doggedly

it should be the same as the first gen (tinker baord/ tinker board s). may i know the steps of how you run the executable on boot? 

Share this post


Link to post
Share on other sites

it doesn't work i did a simple test.
I created init.asus.sh in /system/etc/ (same as in generation 1) to do something simple:

#!/system/bin/sh
touch /sdcard/test.txt

The file has chmod + x (see the attachment).
Nothing happens, the file has not been created. Just like my scripts don't run, they run and run on startup in generation one. What they do doesn't matter. In my opinion, the asus.init.sh autostart routine does not work.

So I repeat the question how to do autorun without the Magisk mod.

Screenshot_12.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...