[4.0.0] Own script before start
-
Hello, i need create a personal script in my recalbox, it need wait user input information before start recalbox/emustation . i tried to put my bash script in init.d but that run in background and the user can't se terminal. anyone can help-me ? thankz
-
@fernando-stteffen how is the user suppoed to input anything ? keyboard ? pad ?
-
keyboard, i just need run a bash script like:
echo "Please enter some input: "
read input_variable
echo "You entered: $input_variable"and pause system until user input that
-
@fernando-stteffen what do you want to use the input for ?
-
A Timer to shutdown the system for limit play time of my childreans
-
@fernando-stteffen so in addition you will need a piece of code to automatically shutdown the system after a while.
It is a lot of work when an alarm clock on your phone would perfectly work...
-
@voljega , Yeah thanks but iam posting because i need help only to run a bash script before start recallbox system, that is not about my phone, i only need know, how i can start recalbox in line command turning off graphics menu, by a bashscript or configuration nvm and the rest of alot work i do.
-
@fernando-stteffen Well, I wouldn't wait for a user input. I would write the alllowed time to a config file and read it at boot. Now I don't know your skills in bash, but this should be pretty easy, except you must set this at the previous boot.
There is no cron nor at in recalbox though ... You'll have to write the while loop by yourself