Add tun0 detection in the service
This commit is contained in:
1
TODO
1
TODO
@@ -1,3 +1,4 @@
|
|||||||
* Translate PHP interface in French
|
* Translate PHP interface in French
|
||||||
|
* Add connect-retry-max=3 in openvpn conf
|
||||||
* Support VPN without certificates (only login) -- added need just tests
|
* Support VPN without certificates (only login) -- added need just tests
|
||||||
** Add require for slapd for the service start -- added need just tests
|
** Add require for slapd for the service start -- added need just tests
|
||||||
|
@@ -203,6 +203,12 @@ case "${1}" in
|
|||||||
if [ ! $? -eq 0 ]; then
|
if [ ! $? -eq 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
(i=0 && false) || while [ $? -ne 0 ]; do
|
||||||
|
sleep 1 && (( i++ ))
|
||||||
|
[ ${i} -gt 20 ] && exit 1
|
||||||
|
ip link show dev tun0 &> /dev/null
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check old state of the server ipv6 route
|
# Check old state of the server ipv6 route
|
||||||
@@ -223,12 +229,6 @@ case "${1}" in
|
|||||||
# Set the ipv6 address
|
# Set the ipv6 address
|
||||||
if ! has_hotspot_app && has_ip6delegatedprefix && ! is_ip6addr_set; then
|
if ! has_hotspot_app && has_ip6delegatedprefix && ! is_ip6addr_set; then
|
||||||
echo "Set IPv6 address"
|
echo "Set IPv6 address"
|
||||||
|
|
||||||
false || while [ $? -ne 0 ]; do
|
|
||||||
sleep 1
|
|
||||||
ip link show dev tun0 &> /dev/null
|
|
||||||
done
|
|
||||||
|
|
||||||
set_ip6addr
|
set_ip6addr
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user