mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-01-28 01:47:18 +01:00
get varstate uci option with confdir instead of savedir
This commit is contained in:
parent
c56a828512
commit
6b1eca2873
3 changed files with 4 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ static int get_management_server_url(char *refparam, struct dmctx *ctx, void *da
|
|||
else if ((url != NULL) && (url[0] != '\0'))
|
||||
*value = url;
|
||||
else
|
||||
*value = dmstrdup("http://192.168.1.1:8080/openacs/acs");
|
||||
*value = "";
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -862,7 +862,7 @@ int varstate_get_value_string(char *package, char *section, char *option, char *
|
|||
struct uci_ptr ptr = {0};
|
||||
|
||||
uci_add_delta_path(uci_varstate_ctx, uci_varstate_ctx->savedir);
|
||||
uci_set_savedir(uci_varstate_ctx, VARSTATE_CONFIG);
|
||||
uci_set_confdir(uci_varstate_ctx, VARSTATE_CONFIG);
|
||||
|
||||
if (dmuci_lookup_ptr(uci_varstate_ctx, &ptr, package, section, option, NULL)) {
|
||||
*value = "";
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
cwmp.acs.dhcp_url='http://192.168.1.123:8080/openacs'
|
||||
config acs 'acs'
|
||||
option dhcp_url 'http://192.168.1.123:8080/openacs'
|
||||
Loading…
Add table
Reference in a new issue