allow scripts to disable config callbacks

SVN-Revision: 6934
owl
Felix Fietkau 2007-04-11 19:34:20 +00:00
parent 3885d2b542
commit 30dfff4849
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ config () {
export ${NO_EXPORT:+-n} CONFIG_NUM_SECTIONS=$(($CONFIG_NUM_SECTIONS + 1))
name="${name:-cfg$CONFIG_NUM_SECTIONS}"
append CONFIG_SECTIONS "$name"
config_cb "$cfgtype" "$name"
[ -n "$NO_CALLBACK" ] || config_cb "$cfgtype" "$name"
export ${NO_EXPORT:+-n} CONFIG_SECTION="$name"
export ${NO_EXPORT:+-n} "CONFIG_${CONFIG_SECTION}_TYPE=$cfgtype"
}
@ -46,7 +46,7 @@ option () {
local value="$*"
export ${NO_EXPORT:+-n} "CONFIG_${CONFIG_SECTION}_${varname}=$value"
option_cb "$varname" "$*"
[ -n "$NO_CALLBACK" ] || option_cb "$varname" "$*"
}
config_rename() {