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

    Run code on boot in retro pi

    Scheduled Pinned Locked Moved Help and Support
    retropi 3+codeonboot
    2 Posts 2 Posters 228 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.
    • L
      littlehavok4544
      last edited by

      Hi I want to get a code to run on boot of my pi 3b at the moment I want to only turn on a led and I know how to do that but I’m using retro pi so I don’t know how to get it to work please help.

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by mitu

        RetroPie is just a RaspiOS Lite image underneath, so a regular Linux/Debian installation.
        You can add your code to the autostart.sh script that RetroPie uses to start EmulationStation (see here how to access the script) or just create your own service to start on boot (see here).

        1 Reply Last reply Reply Quote 0
        • 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.