From: Jonatan Schlag Date: Mon, 17 Jul 2017 15:24:23 +0000 (+0200) Subject: header-zone fix hook_config_edit() X-Git-Tag: 009~171 X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fnetwork.git;a=commitdiff_plain;h=15be9d6963c91e787e25f2e9cc1defe446525470 header-zone fix hook_config_edit() This function accepted only two arguments so new cmd coudl be passed. We accept now more then 2 arguments. Signed-off-by: Jonatan Schlag Signed-off-by: Michael Tremer --- diff --git a/src/header-zone b/src/header-zone index 2e3fa09d..98b0ce77 100644 --- a/src/header-zone +++ b/src/header-zone @@ -225,7 +225,7 @@ hook_config_destroy() { } hook_config_edit() { - assert [ $# -eq 2 ] + assert [ $# -ge 2 ] local zone=${1} # The id must be the id and not the hid. local id=${2}