-rw-r--r-- | scripts/kconfig/mconf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index eba5ff7..26a94e7 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c | |||
@@ -699,82 +699,82 @@ static void conf_load(void) | |||
699 | 699 | ||
700 | static void conf_save(void) | 700 | static void conf_save(void) |
701 | { | 701 | { |
702 | int stat; | 702 | int stat; |
703 | 703 | ||
704 | while (1) { | 704 | while (1) { |
705 | cprint_init(); | 705 | cprint_init(); |
706 | cprint("--inputbox"); | 706 | cprint("--inputbox"); |
707 | cprint(save_config_text); | 707 | cprint(save_config_text); |
708 | cprint("11"); | 708 | cprint("11"); |
709 | cprint("55"); | 709 | cprint("55"); |
710 | cprint("%s", filename); | 710 | cprint("%s", filename); |
711 | stat = exec_conf(); | 711 | stat = exec_conf(); |
712 | switch(stat) { | 712 | switch(stat) { |
713 | case 0: | 713 | case 0: |
714 | if (!input_buf[0]) | 714 | if (!input_buf[0]) |
715 | return; | 715 | return; |
716 | if (!conf_write(input_buf)) | 716 | if (!conf_write(input_buf)) |
717 | return; | 717 | return; |
718 | show_textbox(NULL, "Can't create file! Probably a nonexistent directory.", 5, 60); | 718 | show_textbox(NULL, "Can't create file! Probably a nonexistent directory.", 5, 60); |
719 | break; | 719 | break; |
720 | case 1: | 720 | case 1: |
721 | show_helptext("Save Alternate Configuration", save_config_help); | 721 | show_helptext("Save Alternate Configuration", save_config_help); |
722 | break; | 722 | break; |
723 | case 255: | 723 | case 255: |
724 | return; | 724 | return; |
725 | } | 725 | } |
726 | } | 726 | } |
727 | } | 727 | } |
728 | 728 | ||
729 | static void conf_cleanup(void) | 729 | static void conf_cleanup(void) |
730 | { | 730 | { |
731 | tcsetattr(1, TCSAFLUSH, &ios_org); | 731 | tcsetattr(1, TCSAFLUSH, &ios_org); |
732 | unlink(".help.tmp"); | 732 | unlink(".help.tmp"); |
733 | unlink("lxdialog.scrltmp"); | 733 | unlink("lxdialog.scrltmp"); |
734 | } | 734 | } |
735 | 735 | ||
736 | int main(int ac, char **av) | 736 | int main(int ac, char **av) |
737 | { | 737 | { |
738 | struct symbol *sym; | 738 | struct symbol *sym; |
739 | char *mode; | 739 | char *mode; |
740 | int stat; | 740 | int stat; |
741 | 741 | ||
742 | conf_parse(av[1]); | 742 | conf_parse(av[1]); |
743 | conf_read(NULL); | 743 | conf_read(NULL); |
744 | 744 | ||
745 | sym = sym_lookup("KERNELRELEASE", 0); | 745 | sym = sym_lookup("KERNELRELEASE", 0); |
746 | sym_calc_value(sym); | 746 | sym_calc_value(sym); |
747 | sprintf(menu_backtitle, "Linux Kernel v%s Configuration", | 747 | sprintf(menu_backtitle, "Opie %s Configuration", |
748 | sym_get_string_value(sym)); | 748 | sym_get_string_value(sym)); |
749 | 749 | ||
750 | mode = getenv("MENUCONFIG_MODE"); | 750 | mode = getenv("MENUCONFIG_MODE"); |
751 | if (mode) { | 751 | if (mode) { |
752 | if (!strcasecmp(mode, "single_menu")) | 752 | if (!strcasecmp(mode, "single_menu")) |
753 | single_menu_mode = 1; | 753 | single_menu_mode = 1; |
754 | } | 754 | } |
755 | 755 | ||
756 | tcgetattr(1, &ios_org); | 756 | tcgetattr(1, &ios_org); |
757 | atexit(conf_cleanup); | 757 | atexit(conf_cleanup); |
758 | init_wsize(); | 758 | init_wsize(); |
759 | conf(&rootmenu); | 759 | conf(&rootmenu); |
760 | 760 | ||
761 | do { | 761 | do { |
762 | cprint_init(); | 762 | cprint_init(); |
763 | cprint("--yesno"); | 763 | cprint("--yesno"); |
764 | cprint("Do you wish to save your new configuration?"); | 764 | cprint("Do you wish to save your new configuration?"); |
765 | cprint("5"); | 765 | cprint("5"); |
766 | cprint("60"); | 766 | cprint("60"); |
767 | stat = exec_conf(); | 767 | stat = exec_conf(); |
768 | } while (stat < 0); | 768 | } while (stat < 0); |
769 | 769 | ||
770 | if (stat == 0) { | 770 | if (stat == 0) { |
771 | conf_write(NULL); | 771 | conf_write(NULL); |
772 | printf("\n\n" | 772 | printf("\n\n" |
773 | "*** End of Linux kernel configuration.\n" | 773 | "*** End of Opie configuration.\n" |
774 | "*** Check the top-level Makefile for additional configuration.\n" | 774 | "*** Check the top-level Makefile for additional configuration.\n" |
775 | "*** Next, you may run 'make bzImage', 'make bzdisk', or 'make install'.\n\n"); | 775 | "*** Next, you may run 'makee'.\n\n"); |
776 | } else | 776 | } else |
777 | printf("\n\nYour kernel configuration changes were NOT saved.\n\n"); | 777 | printf("\n\nYour Opie configuration changes were NOT saved.\n\n"); |
778 | 778 | ||
779 | return 0; | 779 | return 0; |
780 | } | 780 | } |