From: Jonatan Schlag Date: Tue, 4 Jul 2017 15:46:10 +0000 (+0200) Subject: ipv6-auto: prevent multiple configs for the same zone X-Git-Tag: 009~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75e02e5887b8c247c266fec40c7f81d0d92961b4;p=network.git ipv6-auto: prevent multiple configs for the same zone It is senseless to configure the ipv6-auto hook multiple times for a zone. Signed-off-by: Jonatan Schlag Signed-off-by: Michael Tremer --- diff --git a/src/hooks/configs/ipv6-auto b/src/hooks/configs/ipv6-auto index 44cef48d..c3627975 100644 --- a/src/hooks/configs/ipv6-auto +++ b/src/hooks/configs/ipv6-auto @@ -34,6 +34,11 @@ hook_new() { local zone="${1}" shift + if zone_config_hook_is_configured ${zone} "ipv6-auto"; then + log ERROR "You can configure the ipv6-auto hook only once for a zone" + return ${EXIT_ERROR} + fi + while read arg; do case "${arg}" in --privacy-extensions=*)