Delay startup until vpn is available
-
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?
-
@jbreitbart It's the
autologin
service that's responsible for logging in thepi
user automatically and starting the ES frontend - take a look at https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/supplementary/autostart.sh. -
Thanks a lot. I ended up modifying
/etc/profile.d/10-retropie.sh
and addedwhile ! 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>
-
@jbreitbart You could also do that in the
autostart.sh
file, whereemulationstation
is started. Add it before running ES to make sure the ROM folder is mounted before the frontend is opened. -
@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.
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.