mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-02-18 02:01:26 +01:00
Update enabled parameter handling
This commit is contained in:
parent
db708d1050
commit
2963a32f96
2 changed files with 2 additions and 2 deletions
|
|
@ -928,7 +928,7 @@ static int set_rule_enable(char *refparam, struct dmctx *ctx, void *data, char *
|
|||
break;
|
||||
case VALUESET:
|
||||
string_to_bool(value, &b);
|
||||
dmuci_set_value_by_section(((struct dmmap_dup *)data)->config_section, "enabled", b ? "" : "0");
|
||||
dmuci_set_value_by_section(((struct dmmap_dup *)data)->config_section, "enabled", b ? "1" : "0");
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -394,7 +394,7 @@ static int set_UPnPDevice_Enable(char *refparam, struct dmctx *ctx, void *data,
|
|||
return 0;
|
||||
case VALUESET:
|
||||
string_to_bool(value, &b);
|
||||
dmuci_set_value("upnpd", "config", "enabled", b ? "" : "0");
|
||||
dmuci_set_value("upnpd", "config", "enabled", b ? "1" : "0");
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue