diff options
Diffstat (limited to 'usr.sbin/sysinstall/menus.c')
| -rw-r--r-- | usr.sbin/sysinstall/menus.c | 132 |
1 files changed, 103 insertions, 29 deletions
diff --git a/usr.sbin/sysinstall/menus.c b/usr.sbin/sysinstall/menus.c index c4afad573b2b..401801376e77 100644 --- a/usr.sbin/sysinstall/menus.c +++ b/usr.sbin/sysinstall/menus.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: menus.c,v 1.2 1995/04/27 18:03:54 jkh Exp $ + * $Id: menus.c,v 1.3 1995/04/29 19:33:03 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -50,10 +50,12 @@ * expansion. */ +/* Forward decls for submenus */ extern DMenu MenuDocumentation; extern DMenu MenuMedia; extern DMenu MenuInstallType; extern DMenu MenuInstallOptions; +extern DMenu MenuDistributions; /* The initial installation menu */ DMenu MenuInitial = { @@ -63,10 +65,10 @@ DMenu MenuInitial = { select one of the options below by using the arrow keys or typing the\n\ first character of the option name you're interested in. Invoke an\n\ option by pressing enter.", /* prompt */ - "Press F1 for further help", /* help line */ - "help/initial.hlp", /* help file */ + "Press F1 for usage instructions", /* help line */ + "usage.hlp", /* help file */ { { "Usage", "Quick start - How to use this menu system.", /* U */ - DMENU_DISPLAY_FILE, (void *)"help/initial.hlp", 0 }, + DMENU_DISPLAY_FILE, (void *)"usage.hlp", 0 }, { "Doc", "More detailed documentation on FreeBSD.", /* D */ DMENU_SUBMENU, (void *)&MenuDocumentation, 0 }, { "Lang", "Select natural language options.", /* L */ @@ -77,6 +79,8 @@ option by pressing enter.", /* prompt */ DMENU_CALL, (void *)installCustom, 0 }, { "Maint", "Go into maintainance mode (`fix it').", /* M */ DMENU_CALL, (void *)installMaint, 0 }, + { "Bootmsg", "Read the boot messages again.", /* B */ + DMENU_SYSTEM_COMMAND_BOX, (void *)"dmesg", 0 }, { NULL } }, }; @@ -90,16 +94,16 @@ Hardware guide! New users should also read the Install document for\n\ a step-by-step tutorial on installing FreeBSD. For general information,\n\ consult the README file. If you're having other problems, you may find\n\ answers in the FAQ.", - "Having trouble? Press F1 for help!", /* help line */ - "help/usage.hlp", /* help file */ + "Confused? Press F1 for help.", + "usage.hlp", /* help file */ { { "README", "Read this for a general description of FreeBSD", /* R */ - DMENU_DISPLAY_FILE, (void *)"help/readme.hlp", 0 }, + DMENU_DISPLAY_FILE, (void *)"readme.hlp", 0 }, { "Hardware", "The FreeBSD survival guide for PC hardware.", /* H */ - DMENU_DISPLAY_FILE, (void *)"help/hardware.hlp", 0 }, + DMENU_DISPLAY_FILE, (void *)"hardware.hlp", 0 }, { "Install", "A step-by-step guide to installing FreeBSD.", /* I */ - DMENU_DISPLAY_FILE, (void *)"help/install.hlp", 0 }, + DMENU_DISPLAY_FILE, (void *)"install.hlp", 0 }, { "FAQ", "Frequently Asked Questions about FreeBSD.", /* F */ - DMENU_DISPLAY_FILE, (void *)"help/faq.hlp", 0 }, + DMENU_DISPLAY_FILE, (void *)"faq.hlp", 0 }, { NULL } }, }; @@ -113,25 +117,31 @@ DMenu MenuLanguage = { DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS, "Natural language selection", /* title */ "Please specify the language you'd like to use by default.\n\n\ -While almost all of the system's documentation is still\n\ -written in english (and may never be translated), there are a few\n\ -guides and types of system documentation that may be written in your\n\ +While almost all of the system's documentation is still written\n\ +in english (and may never be translated), there are a few guides\n\ +and types of system documentation that may be written in your\n\ preferred language. When such are found, they will be used instead\n\ of the english versions.", /* prompt */ "Press F1 for more information", /* help line */ - "help/language.hlp", /* help file */ + "language.hlp", /* help file */ { { "Danish", "Danish language and character set (ISO-8859-1)", /* D */ - DMENU_SET_VARIABLE, (void *)"LANG=en", 0 }, + DMENU_SET_VARIABLE, (void *)"LANG=da_DK.ISO8859-1", 0 }, + { "Dutch", "Dutch language and character set (ISO-8859-1)", /* D */ + DMENU_SET_VARIABLE, (void *)"LANG=nl_NL.ISO8859-1", 0 }, { "*English", "English language (system default)", /* E */ - DMENU_SET_VARIABLE, (void *)"LANG=en", 0 }, + DMENU_SET_VARIABLE, (void *)"LANG=en_US.ISO8859-1", 0 }, { "French", "French language and character set (ISO-8859-1)", /* F */ - DMENU_SET_VARIABLE, (void *)"LANG=fr", 0 }, + DMENU_SET_VARIABLE, (void *)"LANG=fr_FR.ISO8859-1", 0 }, { "German", "German language and character set (ISO-8859-1)", /* G */ - DMENU_SET_VARIABLE, (void *)"LANG=de", 0 }, + DMENU_SET_VARIABLE, (void *)"LANG=de_DE.ISO8859-1", 0 }, + { "Italian", "Italian language and character set (ISO-8859-1)", /* I */ + DMENU_SET_VARIABLE, (void *)"LANG=it_IT.ISO8859-1", 0 }, { "Japanese", "Japanese language and character set (JIS?)", /* J */ - DMENU_SET_VARIABLE, (void *)"LANG=jp", 0 }, + DMENU_SET_VARIABLE, (void *)"LANG=ja_JP.EUC", 0 }, { "Russian", "Russian language and character set (cp866-8x14)", /* R */ - DMENU_SET_VARIABLE, (void *)"LANG=ru", 0 }, + DMENU_SET_VARIABLE, (void *)"LANG=ru_SU.KOI8-R", 0 }, + { "Spanish", "Spanish language and character set (ISO-8859-1)", /* S */ + DMENU_SET_VARIABLE, (void *)"LANG=es_ES.ISO8859-1", 0 }, { NULL } }, }; @@ -140,11 +150,13 @@ DMenu MenuMedia = { DMENU_NORMAL_TYPE, "Choose Installation Media", "FreeBSD can be installed from a variety of different installation\n\ -media, from floppies to the Internet. If you're installing FreeBSD from\n\ -a supported CDROM drive then this is generally the best method to\n\ -use unless you have some overriding reason for using another method.", +media, ranging from floppies to the Internet. If you're installing\n\ +FreeBSD from a supported CDROM drive then this is generally the best\n\ +method to use unless you have some overriding reason for using another\n\ +method. Please also note that the DES distribution is NOT available on \n\ +CDROM due to U.S. export restrictions.", "Press F1 for more information on the various media types", - "help/media.hlp", + "media.hlp", { { "CDROM", "Install from a FreeBSD CDROM", DMENU_CALL, (void *)mediaSetCDROM, 0 }, { "FLOPPY", "Install from a floppy disk set", @@ -164,10 +176,58 @@ use unless you have some overriding reason for using another method.", DMenu MenuInstallType = { DMENU_NORMAL_TYPE, "Choose Installation Type", - "blah blah", - NULL, - NULL, - { { NULL } }, + "As a convenience, we provide several `canned' installation types. \ +These pick what we consider to be the most reasonable defaults for the \ +type of system in question. If you would prefer to pick and choose \ +the list of distributions yourself, simply select `custom'.", + "Press F1 for more information on the various distributions", + "install_types.hlp", + { { "Developer", "Includes full sources, binaries and doc but no games.", + DMENU_CALL, (void *)installSetDeveloper, 0 }, + { "X-Developer", "Same as above, but includes XFree86.", + DMENU_CALL, (void *)installSetXDeveloper, 0 }, + { "User", "General user. Binaries and doc but no sources.", + DMENU_CALL, (void *)installSetUser, 0 }, + { "X-User", "Same as above, but includes XFree86.", + DMENU_CALL, (void *)installSetXUser, 0 }, + { "Minimal", "The smallest configuration possible.", + DMENU_CALL, (void *)installSetMinimum, 0 }, + { "Everything", "The entire kitchen sink, plus bedroom suite.", + DMENU_CALL, (void *)installSetEverything, 0 }, + { "Custom", "I don't want it canned! I want to drive!", + DMENU_SUBMENU, (void *)&MenuDistributions, 0 }, + { NULL } }, +}; + +DMenu MenuDistributions = { + DMENU_MULTIPLE_TYPE, + "Select the distributions you wish to install.", + "Please check off the distributions you wish to install.", + "Press F1 for a more complete description of these distributions.", + "distribution_types.hlp", + { { "*bin", "Binary base distribution (required)", + DMENU_NOP, NULL, 0 }, + { "commercial", "Commercial demos and shareware", + DMENU_NOP, NULL, 0 }, + { "compat1x", "FreeBSD 1.x binary compatability package", + DMENU_NOP, NULL, 0 }, + { "DES", "DES encryption code and sources", + DMENU_NOP, NULL, 0 }, + { "dict", "Spelling checker disctionary files", + DMENU_NOP, NULL, 0 }, + { "games", "Games and other amusements (non-commercial)", + DMENU_NOP, NULL, 0 }, + { "info", "GNU info files", + DMENU_NOP, NULL, 0 }, + { "man", "System manual pages - strongly recommended", + DMENU_NOP, NULL, 0 }, + { "proflibs", "Profiled versions of the libraries", + DMENU_NOP, NULL, 0 }, + { "src", "Sources for everything but DES", + DMENU_NOP, NULL, 0 }, + { "XFree86", "The XFree86 3.1.1 distribution", + DMENU_NOP, NULL, 0 }, + { NULL } }, }; /* The installation options menu */ @@ -180,6 +240,20 @@ DMenu MenuInstallOptions = { { { NULL } }, }; +DMenu MenuDiskDevices = { + DMENU_MULTIPLE_TYPE, + "Select Drive(s)", + "Please select the drive, or drives, on which you wish to install\n\ +FreeBSD. You need to select at least one drive containing some free\n\ +space, though FreeBSD can be installed across several drives if you do\n\ +not have the required space on a single drive. If you wish to boot\n\ +off a drive that's not a `zero drive', you will have the option to install\n\ +a boot manager later.", + "drives.hlp", + "Press F1 for more information on what you see here.", + { { NULL } }, +}; + /* The main installation menu */ DMenu MenuInstall = { DMENU_NORMAL_TYPE, @@ -190,7 +264,7 @@ of installation you want to have (and where). There are also a number\n\ of options you can specify in the Options menu. If you do not wish to\n\ install FreeBSD at this time, you may select Cancel to leave this menu", "You may wish to read the install guide - press F1 to do so", - "help/install.hlp", + "install.hlp", { { "Media", "Choose Installation media type", /* M */ DMENU_SUBMENU, (void *)&MenuMedia, 0 }, { "Type", "Choose the type of installation you want", /* T */ |
