From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: network@lists.ipfire.org Subject: Re: [network] [PATCH 3/3] Only call radvd_update if a zone contains an IPv6. Date: Wed, 25 Jan 2017 15:37:35 +0100 Message-ID: <1485355055.15495.1.camel@ipfire.org> In-Reply-To: <20170125134821.15442-3-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1585007971272860748==" List-Id: --===============1585007971272860748== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Please ignore this patch, it fixes the descibed issue on IPv4 only systems but there is another issue with IPv6 as well which requires more and deeper work to get this solved in a right way. Thanks in advance, -Stefan > 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 > --- >  src/functions/functions.routing | 4 +++- >  1 file changed, 3 insertions(+), 1 deletion(-) > > 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 --===============1585007971272860748== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjIKCmlRSWNCQUFC Q2dBR0JRSllpTGd2QUFvSkVFN1hUaFdQazdMZVFFc1AvMUQ4bjRtS25yS09pdVl0NWhQRFdzUzEK RlRXcnVEaGhFRE9McFB5QTZBRkZQaThySDRHMU5KVElpUEsxRjFIOEoxZEE4WXNBWlVyQjFhOUlm aWtqNDIxZgpuN0xxZk9lQ2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