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