X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fnetwork.git;a=blobdiff_plain;f=src%2Fheader-config;h=baeca5e3340daa79fab82ecff438b10e63d18c04;hp=4458eaa94862472c93d512520f95194a2733b1da;hb=636f1b96fc0b60c47cf5636f95b1ee6c856a701c;hpb=f6659cc56ecdef375fb868a3a44ada37b4cbfc3c diff --git a/src/header-config b/src/header-config index 4458eaa9..baeca5e3 100644 --- a/src/header-config +++ b/src/header-config @@ -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