State of VPN does not give a hint about IPv6 uplink state
This commit is contained in:
parent
768334815e
commit
3253943fd1
|
@ -24,14 +24,11 @@ OLD_STATE="$(cat $MESH/gw_mode)"
|
||||||
if [ "$NEW_STATE" == "off" ]; then
|
if [ "$NEW_STATE" == "off" ]; then
|
||||||
# Shutdown DHCP server to prevent renewal of leases
|
# Shutdown DHCP server to prevent renewal of leases
|
||||||
service isc-dhcp-server stop
|
service isc-dhcp-server stop
|
||||||
# Shutdown radvd daemon to prevent advertisment of server as gateway
|
|
||||||
service radvd stop
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check whether gateway modus has been activated
|
# Check whether gateway modus has been activated
|
||||||
if [ "$NEW_STATE" == "server" ]; then
|
if [ "$NEW_STATE" == "server" ]; then
|
||||||
# Restart DHCP server and radvd daemon
|
# Restart DHCP server and radvd daemon
|
||||||
service isc-dhcp-server start
|
service isc-dhcp-server start
|
||||||
service radvd start
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue