+ if (ctx->flags & UCI_FLAG_SAVED_HISTORY)
+ uci_add_history(ctx, &p->saved_history, cmd, ptr.section, ptr.option, ptr.value);
+
+ switch(cmd) {
+ case UCI_CMD_RENAME:
+ UCI_INTERNAL(uci_rename, ctx, p, ptr.section, ptr.option, ptr.value);
+ break;
+ case UCI_CMD_REMOVE:
+ UCI_INTERNAL(uci_delete, ctx, p, ptr.section, ptr.option);
+ break;
+ case UCI_CMD_LIST_ADD:
+ UCI_INTERNAL(uci_add_list, ctx, p, ptr.section, ptr.option, ptr.value, NULL);
+ break;
+ case UCI_CMD_ADD:
+ case UCI_CMD_CHANGE:
+ UCI_INTERNAL(uci_set, ctx, p, ptr.section, ptr.option, ptr.value, &e);
+ if (!ptr.option && e && (cmd == UCI_CMD_ADD))
+ uci_to_section(e)->anonymous = true;
+ break;
+ }