]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/header-config
hook: Rename HOOK_CONFIG_SETTINGS to HOOK_SETTINGS
[people/ms/network.git] / src / header-config
index 4458eaa94862472c93d512520f95194a2733b1da..baeca5e3340daa79fab82ecff438b10e63d18c04 100644 (file)
@@ -26,6 +26,9 @@ hook_new() {
        local id=$(zone_config_get_new_id ${zone})
        log DEBUG "ID for the config is: ${id}"
 
+       # Import all default variables
+       hook_set_defaults
+
        # Parse command line arguments
        if ! hook_parse_cmdline "${id}" "$@"; then
                # Return an error if the parsing of the cmd line fails
@@ -64,7 +67,7 @@ hook_edit() {
                fi
        fi
 
-       local ${HOOK_CONFIG_SETTINGS}
+       local ${HOOK_SETTINGS}
 
        # If reading the config fails we cannot go on
        if ! zone_config_settings_read "${zone}" "${config}"; then