Thank you Voxel, Ill give that a try!
I guess that the red line should be sleep..?
sed '49 a /bin/
speep 120' /etc/init.d/openvpn-client > /tmp/openvpn-client
cp /tmp/openvpn-client /etc/init.d
chmod +x /etc/init.d/openvpn-client
This is the log from when restarting client upon reboot due to date failure (haven't applied your code yet)
root@R7800:/$ /etc/init.d/openvpn-client start
Please wait...
Done!
Starting Firewall...
Done!
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: No chain/target/match by that name.
Thu Jan 1 01:00:40 1970 library versions: OpenSSL 1.0.2n 7 Dec 2017, LZO 2.10
Thu Jan 1 01:00:40 1970 NOTE: the current --script-security setting may allow
this configuration to call user-defined scripts
Thu Jan 1 01:00:40 1970 RESOLVE: Cannot resolve host address: sweden.privatein
ternetaccess.com:1198 (Name or service not known)
Thu Jan 1 01:00:40 1970 RESOLVE: Cannot resolve host address: sweden.privatein
ternetaccess.com:1198 (Name or service not known)
Thu Jan 1 01:00:40 1970 Could not determine IPv4/IPv6 protocol
Thu Jan 1 01:00:40 1970 SIGUSR1[soft,init_instance] received, process restarti
ng
Thu Jan 1 01:00:45 1970 NOTE: the current --script-security setting may allow
this configuration to call user-defined scripts
Thu Jan 1 01:00:45 1970 RESOLVE: Cannot resolve host address: sweden.privatein
ternetaccess.com:1198 (Name or service not known)
Thu Jan 1 01:00:45 1970 RESOLVE: Cannot resolve host address: sweden.privatein
ternetaccess.com:1198 (Name or service not known)
Thu Jan 1 01:00:45 1970 Could not determine IPv4/IPv6 protocol
Thu Jan 1 01:00:45 1970 SIGUSR1[soft,init_instance] received, process restarti
ng
Thu Jan 1 01:00:50 1970 NOTE: the current --script-security setting may allow
this configuration to call user-defined scripts
Thu Jan 1 01:00:50 1970 TCP/UDP: Preserving recently used remote address: [AF_
INET]5.153.233.26:1198