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 ...@@ -33,16 +33,18 @@ for service in rpcbind network-remotefs postfix ; do
/etc/init.d/$service stop /etc/init.d/$service stop
done done
IPV6CHECK=ipv6.google.com
# Test ipv6 connectivity and if not working use openvpn # Test ipv6 connectivity and if not working use openvpn
# and wait for it to be ready # and wait for it to be ready
/etc/init.d/openvpn stop /etc/init.d/openvpn stop
ping6 -c 2 ipv6.google.com ping6 -c 2 $IPV6CHECK
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
echo """ Starting openVPN """ echo """ Starting openVPN """
/etc/init.d/openvpn start /etc/init.d/openvpn start
ping6 -c 2 ipv6.google.com ping6 -c 2 $IPV6CHECK
while [[ $? != 0 ]]; do while [[ $? != 0 ]]; do
ping6 -c 2 ipv6.google.com ping6 -c 2 $IPV6CHECK
done done
# Ask slapos to use openvpn as ipv6 provider # Ask slapos to use openvpn as ipv6 provider
if [ ! -f /etc/slapos/openvpn-needed ]; then 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