Commit cdec2fe6 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Ping6 server is know in a variable

parent 08aa29f2
......@@ -33,16 +33,18 @@ for service in rpcbind network-remotefs postfix ; do
/etc/init.d/$service stop
done
IPV6CHECK=ipv6.google.com
# Test ipv6 connectivity and if not working use openvpn
# and wait for it to be ready
/etc/init.d/openvpn stop
ping6 -c 2 ipv6.google.com
ping6 -c 2 $IPV6CHECK
if [[ $? != 0 ]]; then
echo """ Starting openVPN """
/etc/init.d/openvpn start
ping6 -c 2 ipv6.google.com
ping6 -c 2 $IPV6CHECK
while [[ $? != 0 ]]; do
ping6 -c 2 ipv6.google.com
ping6 -c 2 $IPV6CHECK
done
# Ask slapos to use openvpn as ipv6 provider
if [ ! -f /etc/slapos/openvpn-needed ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment