From: Stefan Schantl Date: Wed, 25 Jan 2017 13:48:21 +0000 (+0100) Subject: Only call radvd_update if a zone contains an IPv6. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6325e3ccbfb73c8ee428b349eacbfc6de19dec47;p=people%2Fjschlag%2Fnetwork.git Only call radvd_update if a zone contains an IPv6. On systems which lacks any IPv6 configured zone, radvd would be started with an empty configuration file and crashes which will brick the system startup and results in a frozen system. Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.routing b/src/functions/functions.routing index c7aac09..4824f34 100644 --- a/src/functions/functions.routing +++ b/src/functions/functions.routing @@ -81,7 +81,9 @@ routing_default_update() { routes=$(echo ${routes}) # Reload radvd configuration - [[ "${proto}" = "ipv6" ]] && radvd_update + if [[ "${proto}" = "ipv6" ]] && db_exists "${zone}/ipv6"; then + radvd_update + fi # Remove all default routes. if [ -z "${routes}" ]; then