]> git.ipfire.org Git - people/ms/network.git/commitdiff
header-zone fix hook_config_edit()
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Mon, 17 Jul 2017 15:24:23 +0000 (17:24 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Jul 2017 20:16:06 +0000 (16:16 -0400)
This function accepted only two arguments so new cmd coudl be passed.
We accept now more then 2 arguments.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/header-zone

index 2e3fa09d31ce08291f100e3e75a5b165c9463206..98b0ce775ea29b0b624aa573d5c2bed0b7fb1c7a 100644 (file)
@@ -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}