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

    autostart.sh not running

    Scheduled Pinned Locked Moved Help and Support
    boot
    8 Posts 4 Posters 9.5k 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.
    • G
      Guijar
      last edited by

      Hi,

      I'm trying to mount some Samba shared folders at retropie boot, adding some lines into autostart.sh file, but it seems to not be running. I have made some tests, like adding "touch /home/p.p" in the autostart file to check if it is running but the command is not being executed.

      Can someone help me please?

      Thansk

      1 Reply Last reply Reply Quote 0
      • BuZzB
        BuZz administrators
        last edited by

        Read https://retropie.org.uk/forum/topic/3/read-this-first as agreed when registering on the forum. No idea what version of anything you are running. No idea of your setup. No idea of the contents of autostart.sh

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        1 Reply Last reply Reply Quote 0
        • G
          Guijar
          last edited by

          Sorry.

          Pi Model: 2 B
          RetroPie Version Used: 4.1
          Built From: http://www.multibootpi.com/builds/osmc-rasplex-dual-boot/
          USB Devices connected: Lenovo wireless keyboard, asus bluetooth
          Controller used:Lenovo wireless keyboard
          Error messages received: no error
          Log found in /dev/shm/runcommand.log (if relevant):
          Guide used:
          File: /opt/retropie/configs/all/autostart.sh
          Emulator:
          Attachment of config files:
          How to replicate the problem:

          autostart.sh is not running anythin that I put in it and it seems not to be running when booting my device.

          Thanks.

          1 Reply Last reply Reply Quote 0
          • BuZzB
            BuZz administrators
            last edited by BuZz

            Please post the output of this (Please format it in a code block - http://commonmark.org/help/ - or use an external paste site)

            cat /etc/profile.d/10-retropie.sh
            cat /opt/retropie/configs/all/autostart.sh
            

            [edit] I just noticed you are using a third party distribution - I cannot support other peoples re-packaging of RetroPie so please use our official image for this. having said that - It's most likely they have the older boot method or something - you can try disable autostart and re-enabling.

            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

            1 Reply Last reply Reply Quote 0
            • G
              Guijar
              last edited by

              "/etc/profile.d/10-retropie.sh" does not exist.

              "cat /opt/retropie/configs/all/autostart.sh"
              touch /home/pi/roms/p.p2
              sudo touch /home/pi/roms/p.p2s

              The autostart file is only for testing. I have executed it manually and it works, but is not running on boot as expected.

              How can I disable and enable autostart.sh as you say?

              Thanks.

              BuZzB 1 Reply Last reply Reply Quote 0
              • BuZzB
                BuZz administrators @Guijar
                last edited by

                @Guijar from RetroPie-Setup in configuration / tools -> autostart.

                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                1 Reply Last reply Reply Quote 0
                • S
                  spieddy
                  last edited by

                  I had the same problem chmod +x autostart.sh did the trick for me

                  S 1 Reply Last reply Reply Quote 1
                  • S
                    smurfxx @spieddy
                    last edited by

                    @spieddy said in autostart.sh not running:

                    I had the same problem chmod +x autostart.sh did the trick for me

                    This solved my problem too!

                    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.