Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    [4.0.0] Own script before start

    Recalbox General
    [4.0.0] own script before start
    3
    8
    2284
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Fernando Stteffen
      Fernando Stteffen last edited by

      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

      Substring 1 Reply Last reply Reply Quote 0
      • Substring
        Substring @Fernando Stteffen last edited by

        @fernando-stteffen how is the user suppoed to input anything ? keyboard ? pad ?

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

        1 Reply Last reply Reply Quote 0
        • Fernando Stteffen
          Fernando Stteffen last edited by

          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

          voljega 1 Reply Last reply Reply Quote 0
          • voljega
            voljega Banned @Fernando Stteffen last edited by

            @fernando-stteffen what do you want to use the input for ?

            1 Reply Last reply Reply Quote 0
            • Fernando Stteffen
              Fernando Stteffen last edited by

              A Timer to shutdown the system for limit play time of my childreans

              voljega 1 Reply Last reply Reply Quote 0
              • voljega
                voljega Banned @Fernando Stteffen last edited by

                @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... 😉

                1 Reply Last reply Reply Quote 0
                • Fernando Stteffen
                  Fernando Stteffen last edited by

                  @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.

                  Substring 1 Reply Last reply Reply Quote 0
                  • Substring
                    Substring @Fernando Stteffen last edited by

                    @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

                    Former dev - Please reply with @substring so that i am notified when you answer me
                    Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Want to support us ?

                    67
                    Online

                    98.7k
                    Users

                    28.1k
                    Topics

                    187.0k
                    Posts

                    Copyright © 2021 recalbox.com