RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Booting a bash file at startup

    Scheduled Pinned Locked Moved Help and Support
    bash file bootu
    6 Posts 3 Posters 2.2k Views
    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.
    • R
      rablack97
      last edited by

      I'm sure this has been posted before but i have a bashfile i want to boot into at start up. I found the thread discussing the autostart.sh folder, just not sure what i would need to add to it to point to the bash file.

      meleuM 1 Reply Last reply Reply Quote 0
      • synackS
        synack
        last edited by

        You would just add the path to the bash script in the autostart.sh file. For example -

        pi@retropie:~ $ cat /opt/retropie/configs/all/autostart.sh
        /path/to/your/bashscript.sh
        emulationstation #auto
        

        Also, ensure your bash script has the executable bit set:

        chmod a+x /path/to/your/bashscript.sh
        
        1 Reply Last reply Reply Quote 0
        • meleuM
          meleu @rablack97
          last edited by

          @rablack97 Depending on what your bash script does, maybe the autostart.sh isn't the best approach... Maybe putting /etc/rc.local can works better for your purpose.

          • Useful topics
          • joystick-selection tool
          • rpie-art tool
          • achievements I made
          R 1 Reply Last reply Reply Quote 0
          • R
            rablack97 @meleu
            last edited by

            @meleu it's a command line for daphne i want the pie to boot straight to DL.

            where would i put that command?

            meleuM 1 Reply Last reply Reply Quote 0
            • meleuM
              meleu @rablack97
              last edited by

              @rablack97 and not launch emulationstation?

              • Useful topics
              • joystick-selection tool
              • rpie-art tool
              • achievements I made
              R 1 Reply Last reply Reply Quote 0
              • R
                rablack97 @meleu
                last edited by

                @meleu yes

                Modifying the autostart.sh worked

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

                Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.