MCPcopy Create free account
hub / github.com/Entware/Entware / conf_save

Function conf_save

scripts/config/mconf.c:824–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824static void conf_save(void)
825{
826 while (1) {
827 int res;
828 dialog_clear();
829 res = dialog_inputbox(NULL, save_config_text,
830 11, 55, filename);
831 switch(res) {
832 case 0:
833 if (!dialog_input_result[0])
834 return;
835 if (!conf_write(dialog_input_result)) {
836 set_config_filename(dialog_input_result);
837 return;
838 }
839 show_textbox(NULL, "Can't create file!", 5, 60);
840 break;
841 case 1:
842 show_helptext("Save Alternate Configuration", save_config_help);
843 break;
844 case KEY_ESC:
845 return;
846 }
847 }
848}
849
850static void conf(struct menu *menu, struct menu *active_menu)
851{

Callers 1

confFunction · 0.70

Calls 6

dialog_clearFunction · 0.85
conf_writeFunction · 0.85
show_textboxFunction · 0.85
show_helptextFunction · 0.85
dialog_inputboxFunction · 0.70
set_config_filenameFunction · 0.70

Tested by

no test coverage detected