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

    Delay startup until vpn is available

    Scheduled Pinned Locked Moved Help and Support
    startupvpnsamba
    5 Posts 3 Posters 882 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.
    • J
      jbreitbart
      last edited by

      Hi,

      I would like to delay the startup of the GUI until the connection of my openvpn is completed as I mount the ROMs via samba over the VPN connection. I could not find the service(?) file that starts the GUI to make it depend on openvpn. Can anyone help me out and tell me how it is started?

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

        @jbreitbart It's the autologin service that's responsible for logging in the pi user automatically and starting the ES frontend - take a look at https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/supplementary/autostart.sh.

        1 Reply Last reply Reply Quote 0
        • J
          jbreitbart
          last edited by

          Thanks a lot. I ended up modifying /etc/profile.d/10-retropie.sh and added

              while ! ping -c 1 -n -w 1 10.8.10.1 &> /dev/null
              do
                  printf "%c" "."
              done
              sudo mount -t cifs -o user=samba,password="PASSWORD" //10.8.10.1/<path> <path>
          
          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @jbreitbart
            last edited by

            @jbreitbart You could also do that in the autostart.sh file, where emulationstation is started. Add it before running ES to make sure the ROM folder is mounted before the frontend is opened.

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

              @ericdave you should not edit that file but the autostart.sh. the file you edited is not meant to be user editable and will be overwritten.

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