disable the automatic config reset if 'Advanced configuration options' is selected
[openwrt/openwrt.git] / scripts / config / zconf.y
index ce13f0269561fc1e8dea27386669e674913728c2..4b8ba45061b1b879f2dfee20acb6e6742c4fb826 100644 (file)
@@ -275,9 +275,9 @@ choice_option: T_OPTIONAL T_EOL
        printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno());
 };
 
-choice_option: T_RESET T_EOL
+choice_option: T_RESET if_expr T_EOL
 {
-       current_entry->sym->flags |= SYMBOL_RESET;
+       menu_add_prop(P_RESET, NULL, NULL, $2);
 };
 
 choice_option: T_DEFAULT T_WORD if_expr T_EOL