christianhaitian / arkos

Another rockchip Operating System
MIT License
1.55k stars 85 forks source link

is there a way to execute scripts on startup like autostart.sh? like is a feature built in to do it or smth #566

Closed wind013 closed 2 years ago

wind013 commented 2 years ago

Before submitting your issue or feature request. DO NOT REQUEST ASSISTANTS FOR PRELOADED IMAGES. I do not support or condone the use of preloaded ArkOS images. Preloaded meaning images that come with copyrighted roms preincluded. Look for support from the creator or supplier of those preloaded images, not from here! If a ticket is submitted for assistance for such images or if there's an indiciation that a preloaded image is what the support request is for, the issue ticket will be closed with no further response.

  1. This is not Anbernic Stock Emuelec or 351Elec. ArkOS is a different distribution from those systems and will have differing features. The only somewhat similarity is that they both use EmulationStation as a frontend. Even with that, the versions of EmulationStation that's used in between ArkOS and Anbernic Emuelec/351Elec is different with different capabilities. If there are features you prefer with Anbernic Emuelec/351Elec, just use those distributions instead. The choice is yours.

  2. Have you reviewed the Frequently Asked Questions available at https://github.com/christianhaitian/arkos/wiki/Frequently-Asked-Questions---RG351P ?

Yes I did.

  1. If your issue is related to being able to run certain emulators or ports, have you reviewed the Emulators and Ports section available at https://github.com/christianhaitian/arkos/wiki/ArkOS-Emulators-and-Ports-information for needed bios files and supported rom extensions?

Yes I did

  1. Have you reviewed the known issues section available at https://github.com/christianhaitian/arkos/wiki/Known-issues ?

Yes I did.

Describe the Issue (If applicable)

A clear and concise description of what the bug is.

It is not a bug it is more of a question, please let me know if this doesnt fit in the issues tab im really sorry if i do something wrong. So is there a way to execute scripts on startup like an autostart.sh where you put linux commands in and they execute upon booting up the device? like retropie has it i think https://wiki.libreelec.tv/configuration/startup-shutdown and amberelecc has a custom_startup.sh i think it was called, so is there something similiar or same on arkos too?

How can the issue be reproduced? (If applicable)

What device are you using?

RG351MP

What version of ArkOS are you on?

Version 2.0 from 09/05/2022

Anything else you'd like to include that may help to review this issue or feature request?

christianhaitian commented 2 years ago

I don't provide a similar function to retropie or AmberElec for this as there's multiple ways to achieve this since ArkOS is a full Read/Write Linux OS. You can add your scripts to the crontab, enable rc.local and have them run through there, or setup a systemctl for it. All you need to do is to ssh into your device or connect a keyboard to the device and do it via terminal. Instructions on how to do this are available in the FAQ for this device. Have fun and good luck!