Index: trunk/src/conf_act.c =================================================================== --- trunk/src/conf_act.c (revision 1796) +++ trunk/src/conf_act.c (revision 1797) @@ -33,6 +33,7 @@ static const char conf_syntax[] = "conf(set, path, value, [role], [policy]) - change a config setting\n" "conf(toggle, path, [role]) - invert boolean value of a flag; if no role given, overwrite the highest prio config\n" + "conf(reset, role) - reset the in-memory lihata of a role\n" ; static const char conf_help[] = "Perform various operations on the configuration tree."; @@ -128,6 +129,18 @@ conf_update(); } + else if (NSTRCMP(cmd, "toggle") == 0) { + conf_role_t role; + int res; + role = conf_role_parse(argv[1]); + if (role == CFR_invalid) { + Message("Invalid role: '%s'", argv[1]); + return 1; + } + conf_reset(role, ""); + conf_update(); + } + else { Message("Invalid conf command '%s'\n", argv[0]); return 1;