[Resolved] Executing startup script within rc.local

EDIT: Never mind it seems I had messed up rc.local with a keyboard misthit in nano and thus a missing piece of code made the whole script not working. (I deleted some from the line echoing default username and password for DietPi. Couldn’t remember what was there before so I deleted the whole part and now it works. Starts DietPi services then connects to VPN.)


Hello people !

I just figured out how to properly use OpenVPN client mode with the provided DietPi package.

It’s pretty straightforward :

cd /etc/openvpn
 nano login.txt
  1. fill that txt with :
    username
    password
  2. save
wget *.opvn

and

wget *.crt
  1. to test it, use that command :
openvpn --config /etc/openvpn/*.ovpn --auth-user-pass /etc/openvpn/login.txt
  1. IT WORKS

Problem :

When I

nano



sleep 5
openvpn --config /etc/openvpn/*.ovpn --auth-user-pass /etc/openvpn/login.txt

at the bottom of rc.local before

exit 0

and then save and reboot, it doesn’t connect by itself.

Any ideas ?