It is senseless to configure the ppoe-server hook multiple times for a zone. Signed-off-by: Jonatan Schlag --- src/hooks/configs/pppoe-server | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hooks/configs/pppoe-server b/src/hooks/configs/pppoe-server index 6f95212..22e0906 100644 --- a/src/hooks/configs/pppoe-server +++ b/src/hooks/configs/pppoe-server @@ -52,6 +52,11 @@ hook_new() { local zone=${1} shift + if zone_config_hook_is_configured ${zone} "pppoe-server"; then + log ERROR "You can configure the pppoe-server hook only once for a zone" + return ${EXIT_ERROR} + fi + while [ $# -gt 0 ]; do case "${1}" in --dns-server=*) -- 2.6.3