|
|
@ -29,11 +29,9 @@ static char menu_backtitle[128]; |
|
|
|
static const char mconf_readme[] = N_( |
|
|
|
static const char mconf_readme[] = N_( |
|
|
|
"Overview\n" |
|
|
|
"Overview\n" |
|
|
|
"--------\n" |
|
|
|
"--------\n" |
|
|
|
"Some kernel features may be built directly into the kernel.\n" |
|
|
|
"Some OpenWrt features may be built directly into the image.\n" |
|
|
|
"Some may be made into loadable runtime modules. Some features\n" |
|
|
|
"Some may be made into installable ipkg packages. Some features\n" |
|
|
|
"may be completely removed altogether. There are also certain\n" |
|
|
|
"may be completely removed altogether.\n" |
|
|
|
"kernel parameters which are not really features, but must be\n" |
|
|
|
|
|
|
|
"entered in as decimal or hexadecimal numbers or possibly text.\n" |
|
|
|
|
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"Menu items beginning with [*], <M> or [ ] represent features\n" |
|
|
|
"Menu items beginning with [*], <M> or [ ] represent features\n" |
|
|
|
"configured to be built in, modularized or removed respectively.\n" |
|
|
|
"configured to be built in, modularized or removed respectively.\n" |
|
|
@ -115,7 +113,7 @@ static const char mconf_readme[] = N_( |
|
|
|
"-----------------------------\n" |
|
|
|
"-----------------------------\n" |
|
|
|
"Menuconfig supports the use of alternate configuration files for\n" |
|
|
|
"Menuconfig supports the use of alternate configuration files for\n" |
|
|
|
"those who, for various reasons, find it necessary to switch\n" |
|
|
|
"those who, for various reasons, find it necessary to switch\n" |
|
|
|
"between different kernel configurations.\n" |
|
|
|
"between different OpenWrt configurations.\n" |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"At the end of the main menu you will find two options. One is\n" |
|
|
|
"At the end of the main menu you will find two options. One is\n" |
|
|
|
"for saving the current configuration to a file of your choosing.\n" |
|
|
|
"for saving the current configuration to a file of your choosing.\n" |
|
|
@ -148,7 +146,7 @@ static const char mconf_readme[] = N_( |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"Optional personality available\n" |
|
|
|
"Optional personality available\n" |
|
|
|
"------------------------------\n" |
|
|
|
"------------------------------\n" |
|
|
|
"If you prefer to have all of the kernel options listed in a single\n" |
|
|
|
"If you prefer to have all of the build options listed in a single\n" |
|
|
|
"menu, rather than the default multimenu hierarchy, run the menuconfig\n" |
|
|
|
"menu, rather than the default multimenu hierarchy, run the menuconfig\n" |
|
|
|
"with MENUCONFIG_MODE environment variable set to single_menu. Example:\n" |
|
|
|
"with MENUCONFIG_MODE environment variable set to single_menu. Example:\n" |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
@ -186,18 +184,18 @@ setmod_text[] = N_( |
|
|
|
"This feature depends on another which has been configured as a module.\n" |
|
|
|
"This feature depends on another which has been configured as a module.\n" |
|
|
|
"As a result, this feature will be built as a module."), |
|
|
|
"As a result, this feature will be built as a module."), |
|
|
|
nohelp_text[] = N_( |
|
|
|
nohelp_text[] = N_( |
|
|
|
"There is no help available for this kernel option.\n"), |
|
|
|
"There is no help available for this config option.\n"), |
|
|
|
load_config_text[] = N_( |
|
|
|
load_config_text[] = N_( |
|
|
|
"Enter the name of the configuration file you wish to load. " |
|
|
|
"Enter the name of the configuration file you wish to load. " |
|
|
|
"Accept the name shown to restore the configuration you " |
|
|
|
"Accept the name shown to restore the configuration you " |
|
|
|
"last retrieved. Leave blank to abort."), |
|
|
|
"last retrieved. Leave blank to abort."), |
|
|
|
load_config_help[] = N_( |
|
|
|
load_config_help[] = N_( |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"For various reasons, one may wish to keep several different kernel\n" |
|
|
|
"For various reasons, one may wish to keep several different OpenWrt\n" |
|
|
|
"configurations available on a single machine.\n" |
|
|
|
"configurations available on a single machine.\n" |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"If you have saved a previous configuration in a file other than the\n" |
|
|
|
"If you have saved a previous configuration in a file other than\n" |
|
|
|
"kernel's default, entering the name of the file here will allow you\n" |
|
|
|
"OpenWrt's default, entering the name of the file here will allow you\n" |
|
|
|
"to modify that configuration.\n" |
|
|
|
"to modify that configuration.\n" |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"If you are uncertain, then you have probably never used alternate\n" |
|
|
|
"If you are uncertain, then you have probably never used alternate\n" |
|
|
@ -207,7 +205,7 @@ save_config_text[] = N_( |
|
|
|
"as an alternate. Leave blank to abort."), |
|
|
|
"as an alternate. Leave blank to abort."), |
|
|
|
save_config_help[] = N_( |
|
|
|
save_config_help[] = N_( |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"For various reasons, one may wish to keep different kernel\n" |
|
|
|
"For various reasons, one may wish to keep different OpenWrt\n" |
|
|
|
"configurations available on a single machine.\n" |
|
|
|
"configurations available on a single machine.\n" |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"Entering a file name here will allow you to later retrieve, modify\n" |
|
|
|
"Entering a file name here will allow you to later retrieve, modify\n" |
|
|
@ -1051,9 +1049,9 @@ int main(int ac, char **av) |
|
|
|
conf_parse(av[1]); |
|
|
|
conf_parse(av[1]); |
|
|
|
conf_read(NULL); |
|
|
|
conf_read(NULL); |
|
|
|
|
|
|
|
|
|
|
|
sym = sym_lookup("KERNELVERSION", 0); |
|
|
|
sym = sym_lookup("OPENWRTVERSION", 0); |
|
|
|
sym_calc_value(sym); |
|
|
|
sym_calc_value(sym); |
|
|
|
sprintf(menu_backtitle, _("Linux Kernel v%s Configuration"), |
|
|
|
sprintf(menu_backtitle, _("OpenWrt %s Configuration"), |
|
|
|
sym_get_string_value(sym)); |
|
|
|
sym_get_string_value(sym)); |
|
|
|
|
|
|
|
|
|
|
|
mode = getenv("MENUCONFIG_MODE"); |
|
|
|
mode = getenv("MENUCONFIG_MODE"); |
|
|
@ -1070,7 +1068,7 @@ int main(int ac, char **av) |
|
|
|
do { |
|
|
|
do { |
|
|
|
cprint_init(); |
|
|
|
cprint_init(); |
|
|
|
cprint("--yesno"); |
|
|
|
cprint("--yesno"); |
|
|
|
cprint(_("Do you wish to save your new kernel configuration?")); |
|
|
|
cprint(_("Do you wish to save your new OpenWrt configuration?")); |
|
|
|
cprint("5"); |
|
|
|
cprint("5"); |
|
|
|
cprint("60"); |
|
|
|
cprint("60"); |
|
|
|
stat = exec_conf(); |
|
|
|
stat = exec_conf(); |
|
|
@ -1079,18 +1077,18 @@ int main(int ac, char **av) |
|
|
|
if (stat == 0) { |
|
|
|
if (stat == 0) { |
|
|
|
if (conf_write(NULL)) { |
|
|
|
if (conf_write(NULL)) { |
|
|
|
fprintf(stderr, _("\n\n" |
|
|
|
fprintf(stderr, _("\n\n" |
|
|
|
"Error during writing of the kernel configuration.\n" |
|
|
|
"Error during writing of the OpenWrt configuration.\n" |
|
|
|
"Your kernel configuration changes were NOT saved." |
|
|
|
"Your configuration changes were NOT saved." |
|
|
|
"\n\n")); |
|
|
|
"\n\n")); |
|
|
|
return 1; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
|
printf(_("\n\n" |
|
|
|
printf(_("\n\n" |
|
|
|
"*** End of Linux kernel configuration.\n" |
|
|
|
"*** End of OpenWrt configuration.\n" |
|
|
|
"*** Execute 'make' to build the kernel or try 'make help'." |
|
|
|
"*** Execute 'make' to build the OpenWrt or try 'make help'." |
|
|
|
"\n\n")); |
|
|
|
"\n\n")); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
fprintf(stderr, _("\n\n" |
|
|
|
fprintf(stderr, _("\n\n" |
|
|
|
"Your kernel configuration changes were NOT saved." |
|
|
|
"Your configuration changes were NOT saved." |
|
|
|
"\n\n")); |
|
|
|
"\n\n")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|