Deleted Added
full compact
menus.c (8828) menus.c (8837)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $Id: menus.c,v 1.36 1995/05/28 23:12:07 jkh Exp $
7 * $Id: menus.c,v 1.37 1995/05/29 01:43:17 jkh Exp $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 281 unchanged lines hidden (view full) ---

297method to use unless you have some overriding reason for using another\n\
298method.",
299 "Press F1 for more information on the various media types",
300 "media.hlp",
301 { { "CDROM", "Install from a FreeBSD CDROM",
302 DMENU_CALL, mediaSetCDROM, 0, 0 },
303 { "DOS", "Install from a DOS partition",
304 DMENU_CALL, mediaSetDOS, 0, 0 },
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 281 unchanged lines hidden (view full) ---

297method to use unless you have some overriding reason for using another\n\
298method.",
299 "Press F1 for more information on the various media types",
300 "media.hlp",
301 { { "CDROM", "Install from a FreeBSD CDROM",
302 DMENU_CALL, mediaSetCDROM, 0, 0 },
303 { "DOS", "Install from a DOS partition",
304 DMENU_CALL, mediaSetDOS, 0, 0 },
305 { "File System", "Install from a UFS or NFS mounted distribution",
306 DMENU_CALL, mediaSetFS, 0, 0 },
305 { "File System", "Install from a mounted filesystem",
306 DMENU_CALL, mediaSetUFS, 0, 0 },
307 { "Floppy", "Install from a floppy disk set",
308 DMENU_CALL, mediaSetFloppy, 0, 0 },
309 { "FTP", "Install from an Internet FTP server",
310 DMENU_CALL, mediaSetFTP, 0, 0 },
307 { "Floppy", "Install from a floppy disk set",
308 DMENU_CALL, mediaSetFloppy, 0, 0 },
309 { "FTP", "Install from an Internet FTP server",
310 DMENU_CALL, mediaSetFTP, 0, 0 },
311 { "NFS", "Install over NFS",
312 DMENU_CALL, mediaSetNFS, 0, 0 },
311 { "Tape", "Install from SCSI or QIC tape",
312 DMENU_CALL, mediaSetTape, 0, 0 },
313 { NULL } },
314};
315
316/* The installation type menu */
317DMenu MenuInstallType = {
318 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,

--- 318 unchanged lines hidden (view full) ---

637 "If you've already installed FreeBSD, you may use this menu to\n\
638customize it somewhat to suit your particular configuration. Most\n\
639importantly, you can use the Packages utility to load extra \"3rd party\"\n\
640software not provided in the base distributions.\n\n\
641When you're done, select Cancel",
642 "Press F1 for more information on these options",
643 "configure.hlp",
644 { { "Add User", "Add users to the system",
313 { "Tape", "Install from SCSI or QIC tape",
314 DMENU_CALL, mediaSetTape, 0, 0 },
315 { NULL } },
316};
317
318/* The installation type menu */
319DMenu MenuInstallType = {
320 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,

--- 318 unchanged lines hidden (view full) ---

639 "If you've already installed FreeBSD, you may use this menu to\n\
640customize it somewhat to suit your particular configuration. Most\n\
641importantly, you can use the Packages utility to load extra \"3rd party\"\n\
642software not provided in the base distributions.\n\n\
643When you're done, select Cancel",
644 "Press F1 for more information on these options",
645 "configure.hlp",
646 { { "Add User", "Add users to the system",
645 DMENU_SYSTEM_COMMAND, "adduser", 0, 0 },
647 DMENU_SYSTEM_COMMAND, "adduser -silent", 0, 0 },
646 { "Console", "Customize system console behavior",
647 DMENU_SUBMENU, &MenuSyscons, 0, 0 },
648 { "Networking", "Configure additional network services",
649 DMENU_SUBMENU, &MenuNetworking, 0, 0 },
650 { "Time Zone", "Set which time zone you're in",
651 DMENU_SYSTEM_COMMAND, "tzsetup", 0, 0 },
652 { "Packages", "Install extra FreeBSD packaged software",
653 DMENU_CALL, configPackages, 0, 0 },

--- 41 unchanged lines hidden (view full) ---

695 { { "Australia", "ntp.syd.dms.csiro.au (HP 5061 Cesium Beam)",
696 DMENU_SET_VARIABLE, "ntpdate=ntp.syd.dms.csiro.au", 0, 0 },
697 { "Canada", "tick.usask.ca (GOES clock)",
698 DMENU_SET_VARIABLE, "ntpdate=tick.usask.ca", 0, 0 },
699 { "France", "canon.inria.fr (TDF clock)",
700 DMENU_SET_VARIABLE, "ntpdate=canon.inria.fr", 0, 0 },
701 { "Germany", "ntps1-{0,1,2}.uni-erlangen.de (GPS)",
702 DMENU_SET_VARIABLE, "ntpdate=ntps1-0.uni-erlangen.de", 0, 0 },
648 { "Console", "Customize system console behavior",
649 DMENU_SUBMENU, &MenuSyscons, 0, 0 },
650 { "Networking", "Configure additional network services",
651 DMENU_SUBMENU, &MenuNetworking, 0, 0 },
652 { "Time Zone", "Set which time zone you're in",
653 DMENU_SYSTEM_COMMAND, "tzsetup", 0, 0 },
654 { "Packages", "Install extra FreeBSD packaged software",
655 DMENU_CALL, configPackages, 0, 0 },

--- 41 unchanged lines hidden (view full) ---

697 { { "Australia", "ntp.syd.dms.csiro.au (HP 5061 Cesium Beam)",
698 DMENU_SET_VARIABLE, "ntpdate=ntp.syd.dms.csiro.au", 0, 0 },
699 { "Canada", "tick.usask.ca (GOES clock)",
700 DMENU_SET_VARIABLE, "ntpdate=tick.usask.ca", 0, 0 },
701 { "France", "canon.inria.fr (TDF clock)",
702 DMENU_SET_VARIABLE, "ntpdate=canon.inria.fr", 0, 0 },
703 { "Germany", "ntps1-{0,1,2}.uni-erlangen.de (GPS)",
704 DMENU_SET_VARIABLE, "ntpdate=ntps1-0.uni-erlangen.de", 0, 0 },
703 { "Germany", "ntps1-0.cs.tu-berlin.de (GPS)",
705 { "Germany #2", "ntps1-0.cs.tu-berlin.de (GPS)",
704 DMENU_SET_VARIABLE, "ntpdate=ntps1-0.cs.tu-berlin.de", 0, 0 },
705 { "Japan", "clock.nc.fukuoka-u.ac.jp (GPS clock)",
706 DMENU_SET_VARIABLE, "ntpdate=clock.nc.fukuoka-u.ac.jp", 0, 0},
706 DMENU_SET_VARIABLE, "ntpdate=ntps1-0.cs.tu-berlin.de", 0, 0 },
707 { "Japan", "clock.nc.fukuoka-u.ac.jp (GPS clock)",
708 DMENU_SET_VARIABLE, "ntpdate=clock.nc.fukuoka-u.ac.jp", 0, 0},
707 { "Japan", "clock.tl.fukuoka-u.ac.jp (GPS clock)",
709 { "Japan #2", "clock.tl.fukuoka-u.ac.jp (GPS clock)",
708 DMENU_SET_VARIABLE, "ntpdate=clock.tl.fukuoka-u.ac.jp", 0, 0},
709 { "Netherlands", "ntp0.nl.net (GPS clock)",
710 DMENU_SET_VARIABLE, "ntpdate=ntp0.nl.net", 0, 0 },
711 { "Norway", "timer.unik.no (NTP clock)",
712 DMENU_SET_VARIABLE, "ntpdate=timer.unik.no", 0, 0 },
713 { "Sweden", "Time1.Stupi.SE (Cesium/GPS)",
714 DMENU_SET_VARIABLE, "ntpdate=Time1.Stupi.SE", 0, 0 },
715 { "Switzerland", "swisstime.ethz.ch (DCF77 clock)",
716 DMENU_SET_VARIABLE, "ntpdate=swisstime.ethz.ch", 0, 0 },
717 { "U.S. East Coast", "bitsy.mit.edu (WWV clock)",
718 DMENU_SET_VARIABLE, "ntpdate=bitsy.mit.edu", 0, 0 },
710 DMENU_SET_VARIABLE, "ntpdate=clock.tl.fukuoka-u.ac.jp", 0, 0},
711 { "Netherlands", "ntp0.nl.net (GPS clock)",
712 DMENU_SET_VARIABLE, "ntpdate=ntp0.nl.net", 0, 0 },
713 { "Norway", "timer.unik.no (NTP clock)",
714 DMENU_SET_VARIABLE, "ntpdate=timer.unik.no", 0, 0 },
715 { "Sweden", "Time1.Stupi.SE (Cesium/GPS)",
716 DMENU_SET_VARIABLE, "ntpdate=Time1.Stupi.SE", 0, 0 },
717 { "Switzerland", "swisstime.ethz.ch (DCF77 clock)",
718 DMENU_SET_VARIABLE, "ntpdate=swisstime.ethz.ch", 0, 0 },
719 { "U.S. East Coast", "bitsy.mit.edu (WWV clock)",
720 DMENU_SET_VARIABLE, "ntpdate=bitsy.mit.edu", 0, 0 },
719 { "U.S. East Coast", "otc1.psu.edu (WWV clock)",
721 { "U.S. East Coast #2", "otc1.psu.edu (WWV clock)",
720 DMENU_SET_VARIABLE, "ntpdate=otc1.psu.edu", 0, 0 },
721 { "U.S. West Coast", "apple.com (WWV clock)",
722 DMENU_SET_VARIABLE, "ntpdate=apple.com", 0, 0 },
722 DMENU_SET_VARIABLE, "ntpdate=otc1.psu.edu", 0, 0 },
723 { "U.S. West Coast", "apple.com (WWV clock)",
724 DMENU_SET_VARIABLE, "ntpdate=apple.com", 0, 0 },
723 { "U.S. West Coast", "clepsydra.dec.com (GOES clock)",
725 { "U.S. West Coast #2", "clepsydra.dec.com (GOES clock)",
724 DMENU_SET_VARIABLE, "ntpdate=clepsydra.dec.com", 0, 0 },
726 DMENU_SET_VARIABLE, "ntpdate=clepsydra.dec.com", 0, 0 },
725 { "U.S. West Coast", "clock.llnl.gov (WWVB clock)",
726 DMENU_SET_VARIABLE, "ntpdate=clock.llnl.gov", 0, 0 },
727 { "U.S. West Coast #3", "clock.llnl.gov (WWVB clock)",
728 DMENU_SET_VARIABLE, "ntpdate=clock.llnl.gov", 0, 0 },
727 { "U.S. Midwest", "ncar.ucar.edu (WWVB clock)",
729 { "U.S. Midwest", "ncar.ucar.edu (WWVB clock)",
728 DMENU_SET_VARIABLE, "ntpdate=ncar.ucar.edu", 0, 0 },
730 DMENU_SET_VARIABLE, "ntpdate=ncar.ucar.edu", 0, 0 },
729 { "U.S. Pacific", "chantry.hawaii.net (WWV/H clock)",
730 DMENU_SET_VARIABLE, "ntpdate=chantry.hawaii.net", 0, 0 },
731 { "U.S. Southwest", "shorty.chpc.utexas.edu (WWV clock)",
731 { "U.S. Pacific", "chantry.hawaii.net (WWV/H clock)",
732 DMENU_SET_VARIABLE, "ntpdate=chantry.hawaii.net", 0, 0 },
733 { "U.S. Southwest", "shorty.chpc.utexas.edu (WWV clock)",
732 DMENU_SET_VARIABLE, "ntpdate=shorty.chpc.utexas.edu", 0, 0 },
734 DMENU_SET_VARIABLE, "ntpdate=shorty.chpc.utexas.edu", 0, 0 },
733 { NULL } },
734};
735
736DMenu MenuSyscons = {
737 DMENU_NORMAL_TYPE,
738 "System Console Configuration",
739 "The default system console driver for FreeBSD (syscons) has a\n\
740number of configuration options which may be set according to\n\
735 { NULL } },
736};
737
738DMenu MenuSyscons = {
739 DMENU_NORMAL_TYPE,
740 "System Console Configuration",
741 "The default system console driver for FreeBSD (syscons) has a\n\
742number of configuration options which may be set according to\n\
741your preference. When you are done setting configuration options,\n\
742select Cancel.",
743 "Configure your screen saver settings",
743your preference.\n\n\
744When you are done setting configuration options, select Cancel.",
745 "Configure your system console settings",
744 NULL,
745 { { "Keymap", "Choose an alternate keyboard map",
746 DMENU_SUBMENU, &MenuSysconsKeymap, 0, 0 },
747 { "Repeat", "Set the rate at which keys repeat",
748 DMENU_SUBMENU, &MenuSysconsKeyrate, 0, 0 },
749 { "Saver", "Configure the screen saver",
750 DMENU_SUBMENU, &MenuSysconsSaver, 0, 0 },
751 { NULL } },

--- 41 unchanged lines hidden (view full) ---

793 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
794 "System Console Keyboard Repeat Rate",
795 "This menu allows you to set the speed at which keys repeat\n\
796when held down.",
797 "Choose a keyboard repeat rate",
798 NULL,
799 { { "Slow", "Slow keyboard repeat rate",
800 DMENU_SET_VARIABLE, "keyrate=slow", 0, 0 },
746 NULL,
747 { { "Keymap", "Choose an alternate keyboard map",
748 DMENU_SUBMENU, &MenuSysconsKeymap, 0, 0 },
749 { "Repeat", "Set the rate at which keys repeat",
750 DMENU_SUBMENU, &MenuSysconsKeyrate, 0, 0 },
751 { "Saver", "Configure the screen saver",
752 DMENU_SUBMENU, &MenuSysconsSaver, 0, 0 },
753 { NULL } },

--- 41 unchanged lines hidden (view full) ---

795 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
796 "System Console Keyboard Repeat Rate",
797 "This menu allows you to set the speed at which keys repeat\n\
798when held down.",
799 "Choose a keyboard repeat rate",
800 NULL,
801 { { "Slow", "Slow keyboard repeat rate",
802 DMENU_SET_VARIABLE, "keyrate=slow", 0, 0 },
801 { "Normal", "\"normal\" keyboard repeat rate",
803 { "Normal", "\"Normal\" keyboard repeat rate",
802 DMENU_SET_VARIABLE, "keyrate=normal", 0, 0 },
804 DMENU_SET_VARIABLE, "keyrate=normal", 0, 0 },
803 { "Fast", "fast keyboard repeat rate",
805 { "Fast", "Fast keyboard repeat rate",
804 DMENU_SET_VARIABLE, "keyrate=fast", 0, 0 },
805 { "Default", "Use default keyboard repeat rate",
806 DMENU_SET_VARIABLE, "keyrate=NO", 0, 0 },
807 { NULL } },
808};
809
810DMenu MenuSysconsSaver = {
811 DMENU_NORMAL_TYPE,
812 "System Console Screen Saver",
813 "By default, the console driver will not attempt to do anything\n\
814special with your screen when it's idle. If you expect to leave your\n\
815monitor switched on and idle for long periods of time then you should\n\
816probably enable one of these screen savers to prevent phosphor burn-in.",
817 "Choose a nifty-looking screen saver",
818 NULL,
819 { { "blank", "Simply blank the screen",
820 DMENU_SET_VARIABLE, "saver=star", 0, 0 },
806 DMENU_SET_VARIABLE, "keyrate=fast", 0, 0 },
807 { "Default", "Use default keyboard repeat rate",
808 DMENU_SET_VARIABLE, "keyrate=NO", 0, 0 },
809 { NULL } },
810};
811
812DMenu MenuSysconsSaver = {
813 DMENU_NORMAL_TYPE,
814 "System Console Screen Saver",
815 "By default, the console driver will not attempt to do anything\n\
816special with your screen when it's idle. If you expect to leave your\n\
817monitor switched on and idle for long periods of time then you should\n\
818probably enable one of these screen savers to prevent phosphor burn-in.",
819 "Choose a nifty-looking screen saver",
820 NULL,
821 { { "blank", "Simply blank the screen",
822 DMENU_SET_VARIABLE, "saver=star", 0, 0 },
821 { "Green", "\"green\" power saving mode (if supported by monitor)",
823 { "Green", "\"Green\" power saving mode (if supported by monitor)",
822 DMENU_SET_VARIABLE, "saver=snake", 0, 0 },
823 { "Snake", "Draw a FreeBSD \"snake\" on your screen",
824 DMENU_SET_VARIABLE, "saver=snake", 0, 0 },
824 DMENU_SET_VARIABLE, "saver=snake", 0, 0 },
825 { "Snake", "Draw a FreeBSD \"snake\" on your screen",
826 DMENU_SET_VARIABLE, "saver=snake", 0, 0 },
825 { "Star", "\"twinkling stars\" effect",
827 { "Star", "A \"twinkling stars\" effect",
826 DMENU_SET_VARIABLE, "saver=star", 0, 0 },
827 { "Timeout", "Set the screen saver timeout interval",
828 DMENU_CALL, configSaverTimeout, 0, 0 },
829 { NULL } },
830};
828 DMENU_SET_VARIABLE, "saver=star", 0, 0 },
829 { "Timeout", "Set the screen saver timeout interval",
830 DMENU_CALL, configSaverTimeout, 0, 0 },
831 { NULL } },
832};