]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/sade/menus.c
Add Czech keyboard definition to sysinstall.
[FreeBSD/FreeBSD.git] / usr.sbin / sade / menus.c
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  * Copyright (c) 1995
8  *      Jordan Hubbard.  All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  * 1. Redistributions of source code must retain the above copyright
14  *    notice, this list of conditions and the following disclaimer,
15  *    verbatim and that no modifications are made prior to this
16  *    point in the file.
17  * 2. Redistributions in binary form must reproduce the above copyright
18  *    notice, this list of conditions and the following disclaimer in the
19  *    documentation and/or other materials provided with the distribution.
20  *
21  * THIS SOFTWARE IS PROVIDED BY JORDAN HUBBARD ``AS IS'' AND
22  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED.  IN NO EVENT SHALL JORDAN HUBBARD OR HIS PETS BE LIABLE
25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27  * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
28  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31  * SUCH DAMAGE.
32  *
33  */
34
35 #ifndef lint
36 static const char rcsid[] =
37   "$FreeBSD$";
38 #endif
39
40 #include "sysinstall.h"
41
42 /* Miscellaneous work routines for menus */
43 static int
44 setSrc(dialogMenuItem *self)
45 {
46     Dists |= DIST_SRC;
47     SrcDists = DIST_SRC_ALL;
48     CRYPTODists |= (DIST_CRYPTO_SCRYPTO | DIST_CRYPTO_SSECURE |
49         DIST_CRYPTO_SKERBEROS4 | DIST_CRYPTO_SKERBEROS5);
50     return DITEM_SUCCESS | DITEM_REDRAW;
51 }
52
53 static int
54 clearSrc(dialogMenuItem *self)
55 {
56     Dists &= ~DIST_SRC;
57     SrcDists = 0;
58     CRYPTODists &= ~(DIST_CRYPTO_SCRYPTO | DIST_CRYPTO_SSECURE |
59         DIST_CRYPTO_SKERBEROS4 | DIST_CRYPTO_SKERBEROS5);
60     return DITEM_SUCCESS | DITEM_REDRAW;
61 }
62
63 static int
64 setX11Misc(dialogMenuItem *self)
65 {
66     XF86Dists |= DIST_XF86_MISC_ALL;
67     Dists |= DIST_XF86;
68     return DITEM_SUCCESS | DITEM_REDRAW;
69 }
70
71 static int
72 clearX11Misc(dialogMenuItem *self)
73 {
74     XF86Dists &= ~DIST_XF86_MISC_ALL;
75     if (!XF86ServerDists && !XF86FontDists)
76         Dists &= ~DIST_XF86;
77     return DITEM_SUCCESS | DITEM_REDRAW;
78 }
79
80 static int
81 setX11Servers(dialogMenuItem *self)
82 {
83     XF86Dists |= DIST_XF86_SERVER;
84     XF86ServerDists = DIST_XF86_SERVER_ALL;
85     return DITEM_SUCCESS | DITEM_REDRAW;
86 }
87
88 static int
89 clearX11Servers(dialogMenuItem *self)
90 {
91     XF86Dists &= ~DIST_XF86_SERVER;
92     XF86ServerDists = 0;
93     return DITEM_SUCCESS | DITEM_REDRAW;
94 }
95
96 static int
97 setX11Fonts(dialogMenuItem *self)
98 {
99     XF86Dists |= DIST_XF86_FONTS;
100     XF86FontDists = DIST_XF86_FONTS_ALL;
101     return DITEM_SUCCESS | DITEM_REDRAW;
102 }
103
104 static int
105 clearX11Fonts(dialogMenuItem *self)
106 {
107     XF86Dists &= ~DIST_XF86_FONTS;
108     XF86FontDists = 0;
109     return DITEM_SUCCESS | DITEM_REDRAW;
110 }
111
112 #define _IS_SET(dist, set) (((dist) & (set)) == (set))
113
114 #define IS_DEVELOPER(dist, extra) (_IS_SET(dist, _DIST_DEVELOPER | extra) || \
115         _IS_SET(dist, _DIST_DEVELOPER | extra))
116
117 #define IS_USER(dist, extra) (_IS_SET(dist, _DIST_USER | extra) || \
118         _IS_SET(dist, _DIST_USER | extra))
119
120 static int
121 checkDistDeveloper(dialogMenuItem *self)
122 {
123     return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_ALL);
124 }
125
126 static int
127 checkDistXDeveloper(dialogMenuItem *self)
128 {
129     return IS_DEVELOPER(Dists, DIST_XF86) && _IS_SET(SrcDists, DIST_SRC_ALL);
130 }
131
132 static int
133 checkDistKernDeveloper(dialogMenuItem *self)
134 {
135     return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_SYS);
136 }
137
138 static int
139 checkDistXKernDeveloper(dialogMenuItem *self)
140 {
141     return IS_DEVELOPER(Dists, DIST_XF86) && _IS_SET(SrcDists, DIST_SRC_SYS);
142 }
143
144 static int
145 checkDistUser(dialogMenuItem *self)
146 {
147     return IS_USER(Dists, 0);
148 }
149
150 static int
151 checkDistXUser(dialogMenuItem *self)
152 {
153     return IS_USER(Dists, DIST_XF86);
154 }
155
156 static int
157 checkDistMinimum(dialogMenuItem *self)
158 {
159     return Dists == (DIST_BIN | DIST_CRYPTO);
160 }
161
162 static int
163 checkDistEverything(dialogMenuItem *self)
164 {
165     return Dists == DIST_ALL && CRYPTODists == DIST_CRYPTO_ALL && \
166         _IS_SET(SrcDists, DIST_SRC_ALL) && \
167         _IS_SET(XF86Dists, DIST_XF86_ALL) && \
168         _IS_SET(XF86ServerDists, DIST_XF86_SERVER_ALL) && \
169         _IS_SET(XF86FontDists, DIST_XF86_FONTS_ALL);
170 }
171
172 static int
173 srcFlagCheck(dialogMenuItem *item)
174 {
175     return SrcDists;
176 }
177
178 static int
179 x11FlagCheck(dialogMenuItem *item)
180 {
181     return Dists & DIST_XF86;
182 }
183
184 static int
185 checkTrue(dialogMenuItem *item)
186 {
187     return TRUE;
188 }
189
190 /* All the system menus go here.
191  *
192  * Hardcoded things like version number strings will disappear from
193  * these menus just as soon as I add the code for doing inline variable
194  * expansion.
195  */
196
197 DMenu MenuIndex = {
198     DMENU_NORMAL_TYPE,
199     "Glossary of functions",
200     "This menu contains an alphabetized index of the top level functions in\n"
201     "this program (sysinstall).  Invoke an option by pressing [SPACE] or\n"
202     "[ENTER].  To exit, use [TAB] to move to the Cancel button.",
203     "Use PageUp or PageDown to move through this menu faster!",
204     NULL,
205     { { " Anon FTP",            "Configure anonymous FTP logins.",      dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" },
206       { " Commit",              "Commit any pending actions (dangerous!)", NULL, installCustomCommit },
207       { " Console settings",    "Customize system console behavior.",   NULL, dmenuSubmenu, NULL, &MenuSyscons },
208       { " Configure",           "The system configuration menu.",       NULL, dmenuSubmenu, NULL, &MenuConfigure },
209       { " Defaults, Load",      "Load default settings.",               NULL, dispatch_load_floppy },
210       { " Device, Mouse",       "The mouse configuration menu.",        NULL, dmenuSubmenu, NULL, &MenuMouse },
211       { " Disklabel",           "The disk Label editor",                NULL, diskLabelEditor },
212       { " Dists, All",          "Root of the distribution tree.",       NULL, dmenuSubmenu, NULL, &MenuDistributions },
213       { " Dists, Basic",                "Basic FreeBSD distribution menu.",     NULL, dmenuSubmenu, NULL, &MenuSubDistributions },
214       { " Dists, Developer",    "Select developer's distribution.",     checkDistDeveloper, distSetDeveloper },
215       { " Dists, Src",          "Src distribution menu.",               NULL, dmenuSubmenu, NULL, &MenuSrcDistributions },
216       { " Dists, X Developer",  "Select X developer's distribution.",   checkDistXDeveloper, distSetXDeveloper },
217       { " Dists, Kern Developer", "Select kernel developer's distribution.", checkDistKernDeveloper, distSetKernDeveloper },
218       { " Dists, User",         "Select average user distribution.",    checkDistUser, distSetUser },
219       { " Dists, X User",       "Select average X user distribution.",  checkDistXUser, distSetXUser },
220       { " Distributions, Adding", "Installing additional distribution sets", NULL, distExtractAll },
221       { " Distributions, XFree86","XFree86 distribution menu.",         NULL, distSetXF86 },
222       { " Documentation",       "Installation instructions, README, etc.", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
223       { " Doc, README",         "The distribution README file.",        NULL, dmenuDisplayFile, NULL, "README" },
224       { " Doc, Hardware",       "The distribution hardware guide.",     NULL, dmenuDisplayFile, NULL, "HARDWARE" },
225       { " Doc, Install",                "The distribution installation guide.", NULL, dmenuDisplayFile, NULL, "INSTALL" },
226       { " Doc, Copyright",      "The distribution copyright notices.",  NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
227       { " Doc, Release",                "The distribution release notes.",      NULL, dmenuDisplayFile, NULL, "RELNOTES" },
228       { " Doc, HTML",           "The HTML documentation menu.",         NULL, docBrowser },
229       { " Dump Vars",           "(debugging) dump out internal variables.", NULL, dump_variables },
230       { " Emergency shell",     "Start an Emergency Holographic shell.",        NULL, installFixitHoloShell },
231 #ifdef __i386__
232       { " Fdisk",               "The disk Partition Editor",            NULL, diskPartitionEditor },
233 #endif
234       { " Fixit",               "Repair mode with CDROM or fixit floppy.",      NULL, dmenuSubmenu, NULL, &MenuFixit },
235       { " FTP sites",           "The FTP mirror site listing.",         NULL, dmenuSubmenu, NULL, &MenuMediaFTP },
236       { " Gateway",             "Set flag to route packets between interfaces.", dmenuVarCheck, dmenuToggleVariable, NULL, "gateway=YES" },
237       { " HTML Docs",           "The HTML documentation menu",          NULL, docBrowser },
238       { " inetd Configuration", "Configure inetd and simple internet services.",        dmenuVarCheck, configInetd, NULL, "inetd_enable=YES" },
239       { " Install, Standard",   "A standard system installation.",      NULL, installStandard },
240       { " Install, Express",    "An express system installation.",      NULL, installExpress },
241       { " Install, Custom",     "The custom installation menu",         NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
242       { " Label",               "The disk Label editor",                NULL, diskLabelEditor },
243       { " Media",               "Top level media selection menu.",      NULL, dmenuSubmenu, NULL, &MenuMedia },
244       { " Media, Tape",         "Select tape installation media.",      NULL, mediaSetTape },
245       { " Media, NFS",          "Select NFS installation media.",       NULL, mediaSetNFS },
246       { " Media, Floppy",       "Select floppy installation media.",    NULL, mediaSetFloppy },
247       { " Media, CDROM/DVD",    "Select CDROM/DVD installation media.", NULL, mediaSetCDROM },
248       { " Media, DOS",          "Select DOS installation media.",       NULL, mediaSetDOS },
249       { " Media, UFS",          "Select UFS installation media.",       NULL, mediaSetUFS },
250       { " Media, FTP",          "Select FTP installation media.",       NULL, mediaSetFTP },
251       { " Media, FTP Passive",  "Select passive FTP installation media.", NULL, mediaSetFTPPassive },
252       { " Media, HTTP",         "Select FTP via HTTP proxy installation media.", NULL, mediaSetHTTP },
253       { " Network Interfaces",  "Configure network interfaces",         NULL, tcpMenuSelect },
254       { " Networking Services", "The network services menu.",           NULL, dmenuSubmenu, NULL, &MenuNetworking },
255       { " NFS, client",         "Set NFS client flag.",                 dmenuVarCheck, dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
256       { " NFS, server",         "Set NFS server flag.",                 dmenuVarCheck, configNFSServer, NULL, "nfs_server_enable=YES" },
257       { " NTP Menu",            "The NTP configuration menu.",          NULL, dmenuSubmenu, NULL, &MenuNTP },
258       { " Options",             "The options editor.",                  NULL, optionsEditor },
259       { " Packages",            "The packages collection",              NULL, configPackages },
260       { " Partition",           "The disk Slice (PC-style partition) Editor",   NULL, diskPartitionEditor },
261       { " PCNFSD",              "Run authentication server for PC-NFS.", dmenuVarCheck, configPCNFSD, NULL, "pcnfsd" },
262       { " Root Password",       "Set the system manager's password.",   NULL, dmenuSystemCommand, NULL, "passwd root" },
263       { " Router",              "Select routing daemon (default: routed)", NULL, configRouter, NULL, "router_enable" },
264       { " Security",            "Select a default system security profile.", NULL, dmenuSubmenu, NULL, &MenuSecurityProfile },
265       { " Syscons",             "The system console configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSyscons },
266       { " Syscons, Font",       "The console screen font.",       NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
267       { " Syscons, Keymap",     "The console keymap configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
268       { " Syscons, Keyrate",    "The console key rate configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
269       { " Syscons, Saver",      "The console screen saver configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
270       { " Syscons, Screenmap",  "The console screenmap configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
271       { " Syscons, Ttys",       "The console terminal type menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsTtys },
272       { " Time Zone",           "Set the system's time zone.",          NULL, dmenuSystemCommand, NULL, "tzsetup" },
273       { " TTYs",                "Configure system ttys.",               NULL, configEtcTtys, NULL, "ttys" },
274       { " Upgrade",             "Upgrade an existing system.",          NULL, installUpgrade },
275       { " Usage",               "Quick start - How to use this menu system.",   NULL, dmenuDisplayFile, NULL, "usage" },
276       { " User Management",     "Add user and group information.",      NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
277       { " XFree86, Fonts",      "XFree86 Font selection menu.",         NULL, dmenuSubmenu, NULL, &MenuXF86SelectFonts },
278       { " XFree86, Server",     "XFree86 Server selection menu.",       NULL, dmenuSubmenu, NULL, &MenuXF86SelectServer },
279 #if defined(__i386__) && defined(PC98)
280       { " XFree86, PC98 Server",        "XFree86 PC98 Server selection menu.",  NULL, dmenuSubmenu, NULL, &MenuXF86SelectPC98Server },
281 #endif
282       { NULL } },
283 };
284
285 /* The initial installation menu */
286 DMenu MenuInitial = {
287     DMENU_NORMAL_TYPE,
288     "sysinstall Main Menu",                             /* title */
289     "Welcome to the FreeBSD installation and configuration tool.  Please\n" /* prompt */
290     "select one of the options below by using the arrow keys or typing the\n"
291     "first character of the option name you're interested in.  Invoke an\n"
292     "option with [SPACE] or [ENTER].  To exit, use [TAB] to move to Exit.", 
293     "Press F1 for Installation Guide",                  /* help line */
294     "INSTALL",                                          /* help file */
295     { { "Select" },
296       { "X Exit Install",       NULL, NULL, dmenuExit },
297       { " Usage",       "Quick start - How to use this menu system",    NULL, dmenuDisplayFile, NULL, "usage" },
298       { "Standard",     "Begin a standard installation (recommended)",  NULL, installStandard },
299       { "Express",      "Begin a quick installation (for the impatient)", NULL, installExpress },
300       { " Custom",      "Begin a custom installation (for experts)",    NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
301       { "Configure",    "Do post-install configuration of FreeBSD",     NULL, dmenuSubmenu, NULL, &MenuConfigure },
302       { "Doc",  "Installation instructions, README, etc.",      NULL, dmenuSubmenu, NULL, &MenuDocumentation },
303       { "Keymap",       "Select keyboard type",                         NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
304       { "Options",      "View/Set various installation options",        NULL, optionsEditor },
305       { "Fixit",        "Enter repair mode with CDROM/floppy or start shell",   NULL, dmenuSubmenu, NULL, &MenuFixit },
306       { "Upgrade",      "Upgrade an existing system",                   NULL, installUpgrade },
307       { "Load Config","Load default install configuration",             NULL, dispatch_load_floppy },
308       { "Index",        "Glossary of functions",                        NULL, dmenuSubmenu, NULL, &MenuIndex },
309       { NULL } },
310 };
311
312 /* The main documentation menu */
313 DMenu MenuDocumentation = {
314     DMENU_NORMAL_TYPE,
315     "FreeBSD Documentation Menu",
316     "If you are at all unsure about the configuration of your hardware\n"
317     "or are looking to build a system specifically for FreeBSD, read the\n"
318     "Hardware guide!  New users should also read the Install document for\n"
319     "a step-by-step tutorial on installing FreeBSD.  For general information,\n"
320     "consult the README file.",
321     "Confused?  Press F1 for help.",
322     "usage",
323     { { "X Exit",       "Exit this menu (returning to previous)",       NULL, dmenuExit },
324       { "2 README",     "A general description of FreeBSD.  Read this!", NULL, dmenuDisplayFile, NULL, "README" },
325       { "3 Hardware",   "The FreeBSD survival guide for PC hardware.",  NULL, dmenuDisplayFile, NULL, "HARDWARE" },
326       { "4 Install",    "A step-by-step guide to installing FreeBSD.",  NULL, dmenuDisplayFile, NULL, "INSTALL" },
327       { "5 Copyright",  "The FreeBSD Copyright notices.",               NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
328       { "6 Release"     ,"The release notes for this version of FreeBSD.", NULL, dmenuDisplayFile, NULL, "RELNOTES" },
329       { "7 Shortcuts",  "Creating shortcuts to sysinstall.",            NULL, dmenuDisplayFile, NULL, "shortcuts" },
330       { "8 HTML Docs",  "Go to the HTML documentation menu (post-install).", NULL, docBrowser },
331       { NULL } },
332 };
333
334 DMenu MenuMouseType = {
335     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
336     "Select a protocol type for your mouse",
337     "If your mouse is attached to the PS/2 mouse port or the bus mouse port,\n"
338     "you should always choose \"Auto\", regardless of the model and the brand\n"
339     "of the mouse.  All other protocol types are for serial mice and should\n"
340     "not be used with the PS/2 port mouse or the bus mouse.  If you have\n"
341     "a serial mouse and are not sure about its protocol, you should also try\n"
342     "\"Auto\".  It may not work for the serial mouse if the mouse does not\n"
343     "support the PnP standard.  But, it won't hurt.  Many 2-button serial mice\n"
344     "are compatible with \"Microsoft\" or \"MouseMan\".  3-button serial mice\n"
345     "may be compatible with \"MouseSystems\" or \"MouseMan\".  If the serial\n"
346     "mouse has a wheel, it may be compatible with \"IntelliMouse\".",
347     NULL,
348     NULL,
349     { { "1 Auto",       "Bus mouse, PS/2 style mouse or PnP serial mouse",      
350         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=auto" },
351       { "2 GlidePoint", "ALPS GlidePoint pad (serial)",
352         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=glidepoint" },
353       { "3 Hitachi","Hitachi tablet (serial)",
354         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmhittab" },
355       { "4 IntelliMouse",       "Microsoft IntelliMouse (serial)",
356         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=intellimouse" },
357       { "5 Logitech",   "Logitech protocol (old models) (serial)",
358         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=logitech" },
359       { "6 Microsoft",  "Microsoft protocol (serial)",
360         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=microsoft" },
361       { "7 MM Series","MM Series protocol (serial)",
362         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmseries" },
363       { "8 MouseMan",   "Logitech MouseMan/TrackMan models (serial)",
364         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mouseman" },
365       { "9 MouseSystems",       "MouseSystems protocol (serial)",
366         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mousesystems" },
367       { "A ThinkingMouse","Kensington ThinkingMouse (serial)",
368         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=thinkingmouse" },
369       { NULL } },
370 };
371
372 DMenu MenuMousePort = {
373     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
374     "Select your mouse port from the following menu",
375     "The built-in pointing device of laptop/notebook computers is usually\n"
376     "a PS/2 style device.",
377     NULL,
378     NULL,
379     { { "1 PS/2",       "PS/2 style mouse (/dev/psm0)", 
380         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/psm0" },
381       { "2 COM1",       "Serial mouse on COM1 (/dev/cuaa0)",
382         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa0" },
383       { "3 COM2",       "Serial mouse on COM2 (/dev/cuaa1)",
384         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa1" },
385       { "4 COM3",       "Serial mouse on COM3 (/dev/cuaa2)",
386         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa2" },
387       { "5 COM4",       "Serial mouse on COM4 (/dev/cuaa3)", 
388         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa3" },
389       { "6 BusMouse",   "Logitech, ATI or MS bus mouse (/dev/mse0)", 
390         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/mse0" },
391       { NULL } },
392 };
393
394 DMenu MenuMouse = {
395     DMENU_NORMAL_TYPE,
396     "Please configure your mouse",
397     "You can cut and paste text in the text console by running the mouse\n"
398     "daemon.  Specify a port and a protocol type of your mouse and enable\n"
399     "the mouse daemon.  If you don't want this feature, select 6 to disable\n"
400     "the daemon.\n"
401     "Once you've enabled the mouse daemon, you can specify \"/dev/sysmouse\"\n"
402     "as your mouse device and \"SysMouse\" or \"MouseSystems\" as mouse\n"
403     "protocol when running the X configuration utility (see Configuration\n"
404     "menu).",
405     NULL,
406     NULL,
407     { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
408       { "2 Enable",     "Test and run the mouse daemon", NULL, mousedTest, NULL, NULL },
409       { "3 Type",       "Select mouse protocol type", NULL, dmenuSubmenu, NULL, &MenuMouseType },
410       { "4 Port",       "Select mouse port", NULL, dmenuSubmenu, NULL, &MenuMousePort },
411       { "5 Flags",      "Set additional flags", dmenuVarCheck, setMouseFlags,
412         NULL, VAR_MOUSED_FLAGS "=" },
413       { "6 Disable",    "Disable the mouse daemon", NULL, mousedDisable, NULL, NULL },
414       { NULL } },
415 };
416
417 DMenu MenuMediaCDROM = {
418     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
419     "Choose a CD/DVD type",
420     "FreeBSD can be installed directly from a CD/DVD containing a valid\n"
421     "FreeBSD distribution.  If you are seeing this menu it is because\n"
422     "more than one CD/DVD drive was found on your system.  Please select one\n"
423     "of the following CD/DVD drives as your installation drive.",
424     "Press F1 to read the installation guide",
425     "INSTALL",
426     { { NULL } },
427 };
428
429 DMenu MenuMediaFloppy = {
430     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
431     "Choose a Floppy drive",
432     "You have more than one floppy drive.  Please choose which drive\n"
433     "you would like to use.",
434     NULL,
435     NULL,
436     { { NULL } },
437 };
438
439 DMenu MenuMediaDOS = {
440     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
441     "Choose a DOS partition",
442     "FreeBSD can be installed directly from a DOS partition\n"
443     "assuming, of course, that you have copied the relevant\n"
444     "distributions into your DOS partition before starting this\n"
445     "installation.  If this is not the case then you should reboot\n"
446     "DOS at this time and copy the distributions you wish to install\n"
447     "into a \"FREEBSD\" subdirectory on one of your DOS partitions.\n"
448     "Otherwise, please select the DOS partition containing the FreeBSD\n"
449     "distribution files.",
450     "Press F1 to read the installation guide",
451     "INSTALL",
452     { { NULL } },
453 };
454
455 DMenu MenuMediaFTP = {
456     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
457     "Please select a FreeBSD FTP distribution site",
458     "Please select the site closest to you or \"other\" if you'd like to\n"
459     "specify a different choice.  Also note that not every site listed here\n"
460     "carries more than the base distribution kits. Only the Primary site is\n"
461     "guaranteed to carry the full range of possible distributions.",
462     "Select a site that's close!",
463     "INSTALL",
464     { { "Primary Site", "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
465         VAR_FTP_PATH "=ftp://ftp.freebsd.org" },
466       { "URL", "Specify some other ftp site by URL", NULL, dmenuSetVariable, NULL,
467         VAR_FTP_PATH "=other" },
468       { " 5.0 SNAP Server", "current.freebsd.org", NULL, dmenuSetVariable, NULL,
469         VAR_FTP_PATH "=ftp://current.freebsd.org" },
470       { " 4.0 SNAP Server", "releng4.freebsd.org", NULL, dmenuSetVariable, NULL,
471         VAR_FTP_PATH "=ftp://releng4.freebsd.org/pub/FreeBSD/snapshots/" },
472       { " IPv6 Ready", "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
473         VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
474       { " IPv6 Ready #2", "ftp7.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
475         VAR_FTP_PATH "=ftp://ftp7.jp.freebsd.org" },
476       { "Argentina",    "ftp.ar.freebsd.org", NULL, dmenuSetVariable, NULL,
477         VAR_FTP_PATH "=ftp://ftp.ar.freebsd.org" },
478       { " Australia",   "ftp.au.freebsd.org", NULL, dmenuSetVariable, NULL,
479         VAR_FTP_PATH "=ftp://ftp.au.freebsd.org" },
480       { " Australia #2","ftp2.au.freebsd.org", NULL, dmenuSetVariable, NULL,
481         VAR_FTP_PATH "=ftp://ftp2.au.freebsd.org" },
482       { " Australia #3","ftp3.au.freebsd.org", NULL, dmenuSetVariable, NULL,
483         VAR_FTP_PATH "=ftp://ftp3.au.freebsd.org" },
484       { " Australia #4","ftp4.au.freebsd.org", NULL, dmenuSetVariable, NULL,
485         VAR_FTP_PATH "=ftp://ftp4.au.freebsd.org" },
486       { " Australia #5","ftp5.au.freebsd.org", NULL, dmenuSetVariable, NULL,
487         VAR_FTP_PATH "=ftp://ftp5.au.freebsd.org" },
488       { "Brazil",       "ftp.br.freebsd.org", NULL, dmenuSetVariable, NULL,
489         VAR_FTP_PATH "=ftp://ftp.br.freebsd.org" },
490       { " Brazil #2",   "ftp2.br.freebsd.org", NULL, dmenuSetVariable, NULL,
491         VAR_FTP_PATH "=ftp://ftp2.br.freebsd.org" },
492       { " Brazil #3",   "ftp3.br.freebsd.org", NULL, dmenuSetVariable, NULL,
493         VAR_FTP_PATH "=ftp://ftp3.br.freebsd.org" },
494       { " Brazil #4",   "ftp4.br.freebsd.org", NULL, dmenuSetVariable, NULL,
495         VAR_FTP_PATH "=ftp://ftp4.br.freebsd.org" },
496       { " Brazil #5",   "ftp5.br.freebsd.org", NULL, dmenuSetVariable, NULL,
497         VAR_FTP_PATH "=ftp://ftp5.br.freebsd.org" },
498       { " Brazil #6",   "ftp6.br.freebsd.org", NULL, dmenuSetVariable, NULL,
499         VAR_FTP_PATH "=ftp://ftp6.br.freebsd.org" },
500       { " Brazil #7",   "ftp7.br.freebsd.org", NULL, dmenuSetVariable, NULL,
501         VAR_FTP_PATH "=ftp://ftp7.br.freebsd.org" },
502       { " Canada",      "ftp.ca.freebsd.org", NULL, dmenuSetVariable, NULL,
503         VAR_FTP_PATH "=ftp://ftp.ca.freebsd.org" },
504       { " Czech Republic", "ftp.cz.freebsd.org", NULL, dmenuSetVariable, NULL,
505         VAR_FTP_PATH "=ftp://ftp.cz.freebsd.org" },
506       { "Denmark",      "ftp.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
507         VAR_FTP_PATH "=ftp://ftp.dk.freebsd.org" },
508       { " Denmark #2",  "ftp2.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
509         VAR_FTP_PATH "=ftp://ftp2.dk.freebsd.org" },
510       { "Estonia",      "ftp.ee.freebsd.org", NULL, dmenuSetVariable, NULL,
511         VAR_FTP_PATH "=ftp://ftp.ee.freebsd.org" },
512       { "Finland",      "ftp.fi.freebsd.org", NULL, dmenuSetVariable, NULL,
513         VAR_FTP_PATH "=ftp://ftp.fi.freebsd.org" },
514       { " France",      "ftp.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
515         VAR_FTP_PATH "=ftp://ftp.fr.freebsd.org" },
516       { " France #1",   "ftp.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
517         VAR_FTP_PATH "=ftp://ftp.fr.freebsd.org" },
518       { " France #2",   "ftp2.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
519         VAR_FTP_PATH "=ftp://ftp2.fr.freebsd.org" },
520       { " France #3",   "ftp3.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
521         VAR_FTP_PATH "=ftp://ftp3.fr.freebsd.org" },
522       { " France #4",   "ftp4.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
523         VAR_FTP_PATH "=ftp://ftp4.fr.freebsd.org" },
524       { " France #5",   "ftp5.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
525         VAR_FTP_PATH "=ftp://ftp5.fr.freebsd.org" },
526       { " France #6",   "ftp6.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
527         VAR_FTP_PATH "=ftp://ftp6.fr.freebsd.org" },
528       { "Germany",      "ftp.de.freebsd.org", NULL, dmenuSetVariable, NULL,
529         VAR_FTP_PATH "=ftp://ftp.de.freebsd.org" },
530       { " Germany #2",  "ftp2.de.freebsd.org", NULL, dmenuSetVariable, NULL,
531         VAR_FTP_PATH "=ftp://ftp2.de.freebsd.org" },
532       { " Germany #3",  "ftp3.de.freebsd.org", NULL, dmenuSetVariable, NULL,
533         VAR_FTP_PATH "=ftp://ftp3.de.freebsd.org" },
534       { " Germany #4",  "ftp4.de.freebsd.org", NULL, dmenuSetVariable, NULL,
535         VAR_FTP_PATH "=ftp://ftp4.de.freebsd.org" },
536       { " Germany #5",  "ftp5.de.freebsd.org", NULL, dmenuSetVariable, NULL,
537         VAR_FTP_PATH "=ftp://ftp5.de.freebsd.org" },
538       { " Germany #6",  "ftp6.de.freebsd.org", NULL, dmenuSetVariable, NULL,
539         VAR_FTP_PATH "=ftp://ftp6.de.freebsd.org" },
540       { " Germany #7",  "ftp7.de.freebsd.org", NULL, dmenuSetVariable, NULL,
541         VAR_FTP_PATH "=ftp://ftp7.de.freebsd.org" },
542       { " Greece",      "ftp.gr.freebsd.org", NULL, dmenuSetVariable, NULL,
543         VAR_FTP_PATH "=ftp://ftp.gr.freebsd.org" },
544       { " Greece #2",   "ftp2.gr.freebsd.org", NULL, dmenuSetVariable, NULL,
545         VAR_FTP_PATH "=ftp://ftp2.gr.freebsd.org" },
546       { "Holland",      "ftp.nl.freebsd.org", NULL, dmenuSetVariable, NULL,
547         VAR_FTP_PATH "=ftp://ftp.nl.freebsd.org" },
548       { " Hong Kong",   "ftp.hk.super.net", NULL, dmenuSetVariable, NULL,
549         VAR_FTP_PATH "=ftp://ftp.hk.super.net" },
550       { "Iceland",      "ftp.is.freebsd.org", NULL, dmenuSetVariable, NULL,
551         VAR_FTP_PATH "=ftp://ftp.is.freebsd.org" },
552       { " Ireland",     "ftp.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
553         VAR_FTP_PATH "=ftp://ftp.ie.freebsd.org" },
554       { " Israel",      "ftp.il.freebsd.org", NULL, dmenuSetVariable, NULL,
555         VAR_FTP_PATH "=ftp://ftp.il.freebsd.org" },
556       { " Israel #2",   "ftp2.il.freebsd.org", NULL, dmenuSetVariable, NULL,
557         VAR_FTP_PATH "=ftp://ftp2.il.freebsd.org" },
558       { "Japan",        "ftp.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
559         VAR_FTP_PATH "=ftp://ftp.jp.freebsd.org" },
560       { " Japan #2",    "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
561         VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
562       { " Japan #3",    "ftp3.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
563         VAR_FTP_PATH "=ftp://ftp3.jp.freebsd.org" },
564       { " Japan #4",    "ftp4.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
565         VAR_FTP_PATH "=ftp://ftp4.jp.freebsd.org" },
566       { " Japan #5",    "ftp5.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
567         VAR_FTP_PATH "=ftp://ftp5.jp.freebsd.org" },
568       { " Japan #6",    "ftp6.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
569         VAR_FTP_PATH "=ftp://ftp6.jp.freebsd.org" },
570       { " Japan #7",    "ftp7.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
571         VAR_FTP_PATH "=ftp://ftp7.jp.freebsd.org" },
572       { "Korea",        "ftp.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
573         VAR_FTP_PATH "=ftp://ftp.kr.freebsd.org" },
574       { " Korea #2",    "ftp2.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
575         VAR_FTP_PATH "=ftp://ftp2.kr.freebsd.org" },
576       { " Korea #3",    "ftp3.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
577         VAR_FTP_PATH "=ftp://ftp3.kr.freebsd.org" },
578       { " Korea #4",    "ftp4.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
579         VAR_FTP_PATH "=ftp://ftp4.kr.freebsd.org" },
580       { " Korea #5",    "ftp5.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
581         VAR_FTP_PATH "=ftp://ftp5.kr.freebsd.org" },
582       { "Lithuania",    "ftp.lt.freebsd.org", NULL, dmenuSetVariable, NULL,
583         VAR_FTP_PATH "=ftp://ftp.lt.freebsd.org" },
584       { "New Zealand",  "ftp.nz.freebsd.org", NULL, dmenuSetVariable, NULL,
585         VAR_FTP_PATH "=ftp://ftp.nz.freebsd.org" },
586       { "Norway",       "ftp.no.freebsd.org", NULL, dmenuSetVariable, NULL,
587         VAR_FTP_PATH "=ftp://ftp.no.freebsd.org" },
588       { "Poland",       "ftp.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
589         VAR_FTP_PATH "=ftp://ftp.pl.freebsd.org" },
590       { " Portugal",    "ftp.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
591         VAR_FTP_PATH "=ftp://ftp.pt.freebsd.org" },
592       { " Portugal #2", "ftp2.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
593         VAR_FTP_PATH "=ftp://ftp2.pt.freebsd.org" },
594       { "Romania",      "ftp.ro.freebsd.org", NULL, dmenuSetVariable, NULL,
595         VAR_FTP_PATH "=ftp://ftp.ro.freebsd.org" },
596       { " Russia",      "ftp.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
597         VAR_FTP_PATH "=ftp://ftp.ru.freebsd.org" },
598       { " Russia #2",   "ftp2.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
599         VAR_FTP_PATH "=ftp://ftp2.ru.freebsd.org" },
600       { " Russia #3",   "ftp3.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
601         VAR_FTP_PATH "=ftp://ftp3.ru.freebsd.org" },
602       { " Russia #4",    "ftp4.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
603         VAR_FTP_PATH "=ftp://ftp4.ru.freebsd.org" },
604       { "Slovak Republic",      "ftp.sk.freebsd.org", NULL, dmenuSetVariable, NULL,
605         VAR_FTP_PATH "=ftp://ftp.sk.freebsd.org" },
606       { "Slovenia",     "ftp.si.freebsd.org", NULL, dmenuSetVariable, NULL,
607         VAR_FTP_PATH "=ftp://ftp.si.freebsd.org" },
608       { " South Africa",        "ftp.za.freebsd.org", NULL, dmenuSetVariable, NULL,
609         VAR_FTP_PATH "=ftp://ftp.za.freebsd.org" },
610       { " South Africa #2", "ftp2.za.freebsd.org", NULL, dmenuSetVariable, NULL,
611         VAR_FTP_PATH "=ftp://ftp2.za.freebsd.org" },
612       { " South Africa #3", "ftp3.za.freebsd.org", NULL, dmenuSetVariable, NULL,
613         VAR_FTP_PATH "=ftp://ftp3.za.freebsd.org" },
614       { " South Africa #4", "ftp4.za.freebsd.org", NULL, dmenuSetVariable, NULL,
615         VAR_FTP_PATH "=ftp://ftp4.za.freebsd.org" },
616       { " Spain",       "ftp.es.freebsd.org", NULL, dmenuSetVariable, NULL,
617         VAR_FTP_PATH "=ftp://ftp.es.freebsd.org" },
618       { " Spain #2",    "ftp2.es.freebsd.org", NULL, dmenuSetVariable, NULL,
619         VAR_FTP_PATH "=ftp://ftp2.es.freebsd.org" },
620       { " Spain #3",    "ftp3.es.freebsd.org", NULL, dmenuSetVariable, NULL,
621         VAR_FTP_PATH "=ftp://ftp3.es.freebsd.org" },
622       { " Sweden",      "ftp.se.freebsd.org", NULL, dmenuSetVariable, NULL,
623         VAR_FTP_PATH "=ftp://ftp.se.freebsd.org" },
624       { " Sweden #2",   "ftp2.se.freebsd.org", NULL, dmenuSetVariable, NULL,
625         VAR_FTP_PATH "=ftp://ftp2.se.freebsd.org" },
626       { " Sweden #3",   "ftp3.se.freebsd.org", NULL, dmenuSetVariable, NULL,
627         VAR_FTP_PATH "=ftp://ftp3.se.freebsd.org" },
628       { "Taiwan",       "ftp.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
629         VAR_FTP_PATH "=ftp://ftp.tw.freebsd.org" },
630       { " Taiwan #2",   "ftp2.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
631         VAR_FTP_PATH "=ftp://ftp2.tw.freebsd.org" },
632       { " Taiwan #3",   "ftp3.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
633         VAR_FTP_PATH "=ftp://ftp3.tw.freebsd.org" },
634       { " Taiwan #4",   "ftp4.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
635         VAR_FTP_PATH "=ftp://ftp4.tw.freebsd.org" },
636       { " Thailand",    "ftp.nectec.or.th", NULL, dmenuSetVariable, NULL,
637         VAR_FTP_PATH "=ftp://ftp.nectec.or.th/pub/mirrors/FreeBSD/" },
638       { "UK",           "ftp.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
639         VAR_FTP_PATH "=ftp://ftp.uk.freebsd.org" },
640       { " UK #2",       "ftp2.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
641         VAR_FTP_PATH "=ftp://ftp2.uk.freebsd.org" },
642       { " UK #3",       "ftp3.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
643         VAR_FTP_PATH "=ftp://ftp3.uk.freebsd.org" },
644       { " UK #4",       "ftp4.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
645         VAR_FTP_PATH "=ftp://ftp4.uk.freebsd.org" },
646       { " UK #5",       "ftp5.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
647         VAR_FTP_PATH "=ftp://ftp5.uk.freebsd.org" },
648       { " Ukraine",     "ftp.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
649         VAR_FTP_PATH "=ftp://ftp.ua.freebsd.org" },
650       { " Ukraine #2",  "ftp2.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
651         VAR_FTP_PATH "=ftp://ftp2.ua.freebsd.org" },
652       { " Ukraine #3",  "ftp3.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
653         VAR_FTP_PATH "=ftp://ftp3.ua.freebsd.org" },
654       { " USA",         "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
655         VAR_FTP_PATH "=ftp://ftp.freebsd.org" },
656       { " USA #2",      "ftp2.freebsd.org", NULL, dmenuSetVariable, NULL,
657         VAR_FTP_PATH "=ftp://ftp2.freebsd.org" },
658       { " USA #3",      "ftp3.freebsd.org", NULL, dmenuSetVariable, NULL,
659         VAR_FTP_PATH "=ftp://ftp3.freebsd.org" },
660       { " USA #4",      "ftp4.freebsd.org", NULL, dmenuSetVariable, NULL,
661         VAR_FTP_PATH "=ftp://ftp4.freebsd.org" },
662       { " USA #5",      "ftp5.freebsd.org", NULL, dmenuSetVariable, NULL,
663         VAR_FTP_PATH "=ftp://ftp5.freebsd.org" },
664       { " USA #6",      "ftp6.freebsd.org", NULL, dmenuSetVariable, NULL,
665         VAR_FTP_PATH "=ftp://ftp6.freebsd.org" },
666       { NULL } }
667 };
668
669 DMenu MenuMediaTape = {
670     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
671     "Choose a tape drive type",
672     "FreeBSD can be installed from tape drive, though this installation\n"
673     "method requires a certain amount of temporary storage in addition\n"
674     "to the space required by the distribution itself (tape drives make\n"
675     "poor random-access devices, so we extract _everything_ on the tape\n"
676     "in one pass).  If you have sufficient space for this, then you should\n"
677     "select one of the following tape devices detected on your system.",
678     "Press F1 to read the installation guide",
679     "INSTALL",
680     { { NULL } },
681 };
682
683 DMenu MenuNetworkDevice = {
684     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
685     "Network interface information required",
686     "If you are using PPP over a serial device, as opposed to a direct\n"
687     "ethernet connection, then you may first need to dial your Internet\n"
688     "Service Provider using the ppp utility we provide for that purpose.\n"
689     "If you're using SLIP over a serial device then the expectation is\n"
690     "that you have a HARDWIRED connection.\n\n"
691     "You can also install over a parallel port using a special \"laplink\"\n"
692     "cable to another machine running a fairly recent (2.0R or later)\n"
693     "version of FreeBSD.",
694     "Press F1 to read network configuration manual",
695     "network_device",
696     { { NULL } },
697 };
698
699 /* The media selection menu */
700 DMenu MenuMedia = {
701     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
702     "Choose Installation Media",
703     "FreeBSD can be installed from a variety of different installation\n"
704     "media, ranging from floppies to an Internet FTP server.  If you're\n"
705     "installing FreeBSD from a supported CD/DVD drive then this is generally\n"
706     "the best media to use if you have no overriding reason for using other\n"
707     "media.",
708     "Press F1 for more information on the various media types",
709     "media",
710     { { "1 CD/DVD",             "Install from a FreeBSD CD/DVD",        NULL, mediaSetCDROM },
711       { "2 FTP",                "Install from an FTP server",           NULL, mediaSetFTPActive },
712       { "3 FTP Passive",        "Install from an FTP server through a firewall", NULL, mediaSetFTPPassive },
713       { "4 HTTP",               "Install from an FTP server through a http proxy", NULL, mediaSetHTTP },
714       { "5 DOS",                "Install from a DOS partition",         NULL, mediaSetDOS },
715       { "6 NFS",                "Install over NFS",                     NULL, mediaSetNFS },
716       { "7 File System",        "Install from an existing filesystem",  NULL, mediaSetUFS },
717       { "8 Floppy",             "Install from a floppy disk set",       NULL, mediaSetFloppy },
718       { "9 Tape",               "Install from SCSI or QIC tape",        NULL, mediaSetTape },
719       { "X Options",            "Go to the Options screen",             NULL, optionsEditor },
720       { NULL } },
721 };
722
723 /* The distributions menu */
724 DMenu MenuDistributions = {
725     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
726     "Choose Distributions",
727     "As a convenience, we provide several \"canned\" distribution sets.\n"
728     "These select what we consider to be the most reasonable defaults for the\n"
729     "type of system in question.  If you would prefer to pick and choose the\n"
730     "list of distributions yourself, simply select \"Custom\".  You can also\n"
731     "pick a canned distribution set and then fine-tune it with the Custom item.\n\n"
732     "Choose an item by pressing [SPACE] or [ENTER].  When finished, choose the\n"
733     "Exit item or move to the OK button with [TAB].",
734     "Press F1 for more information on these options.",
735     "distributions",
736     { { "X Exit", "Exit this menu (returning to previous)",
737         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
738       { "All",                  "All system sources, binaries and X Window System)",
739         checkDistEverything,    distSetEverything, NULL, NULL, ' ', ' ', ' ' },
740       { "Reset",                "Reset selected distribution list to nothing",
741         NULL,                   distReset, NULL, NULL, ' ', ' ', ' ' },
742       { "4 Developer",          "Full sources, binaries and doc but no games", 
743         checkDistDeveloper,     distSetDeveloper },
744       { "5 X-Developer",        "Same as above + X Window System",
745         checkDistXDeveloper,    distSetXDeveloper },
746       { "6 Kern-Developer",     "Full binaries and doc, kernel sources only",
747         checkDistKernDeveloper, distSetKernDeveloper },
748       { "7 X-Kern-Developer",   "Same as above + X Window System",
749         checkDistXKernDeveloper, distSetXKernDeveloper },
750       { "8 User",               "Average user - binaries and doc only",
751         checkDistUser,          distSetUser },
752       { "9 X-User",             "Same as above + X Window System",
753         checkDistXUser,         distSetXUser },
754       { "A Minimal",            "The smallest configuration possible",
755         checkDistMinimum,       distSetMinimum },
756       { "B Custom",             "Specify your own distribution set",
757         NULL,                   dmenuSubmenu, NULL, &MenuSubDistributions, '>', '>', '>' },
758       { NULL } },
759 };
760
761 DMenu MenuSubDistributions = {
762     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
763     "Select the distributions you wish to install.",
764     "Please check off the distributions you wish to install.  At the\n"
765     "very minimum, this should be \"bin\".",
766     NULL,
767     NULL,
768     { { "X Exit", "Exit this menu (returning to previous)",
769         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
770       { "All",          "All system sources, binaries and X Window System",
771         NULL, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
772       { "Reset",        "Reset all of the below",
773         NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
774       { " bin",         "Binary base distribution (required)",
775         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_BIN },
776 #ifdef __i386__
777       { " compat1x",    "FreeBSD 1.x binary compatibility",
778         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT1X },
779       { " compat20",    "FreeBSD 2.0 binary compatibility",
780         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT20 },
781       { " compat21",    "FreeBSD 2.1 binary compatibility",
782         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT21 },
783       { " compat22",    "FreeBSD 2.2.x and 3.0 a.out binary compatibility",
784         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT22 },
785 #if __FreeBSD__ > 3
786       { " compat3x",    "FreeBSD 3.x binary compatibility",
787         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT3X },
788 #endif
789 #if __FreeBSD__ > 4
790       { " compat4x",    "FreeBSD 4.x binary compatibility",
791         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT4X },
792 #endif
793 #endif
794       { " crypto",      "Basic encryption services",
795         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_CRYPTO, },
796 #if __FreeBSD__ <= 3
797       { " krb",         "KerberosIV authentication services",
798         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_KERBEROS },
799 #else
800       { " krb4",        "KerberosIV authentication services",
801         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_KERBEROS4 },
802       { " krb5",        "Kerberos5 authentication services",
803         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_KERBEROS5 },
804 #endif
805       { " dict",        "Spelling checker dictionary files",
806         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DICT },
807       { " doc",         "Miscellaneous FreeBSD online docs",
808         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DOC },
809       { " games",       "Games (non-commercial)",
810         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_GAMES },
811       { " info",        "GNU info files",
812         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_INFO },
813       { " man",         "System manual pages - recommended",
814         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_MANPAGES },
815       { " catman",      "Preformatted system manual pages",
816         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_CATPAGES },
817       { " proflibs",    "Profiled versions of the libraries",
818         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PROFLIBS },
819       { " src",         "Sources for everything",
820         srcFlagCheck,   distSetSrc },
821       { " ports",       "The FreeBSD Ports collection",
822         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PORTS },
823       { " local",       "Local additions collection",
824         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LOCAL},
825       { " XFree86",     "The XFree86 3.3.6 distribution",
826         x11FlagCheck,   distSetXF86 },
827       { NULL } },
828 };
829
830 DMenu MenuSrcDistributions = {
831     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
832     "Select the sub-components of src you wish to install.",
833     "Please check off those portions of the FreeBSD source tree\n"
834     "you wish to install.",
835     NULL,
836     NULL,
837     { { "X Exit", "Exit this menu (returning to previous)",
838         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
839       { "All",          "Select all of the below",
840         NULL,           setSrc, NULL, NULL, ' ', ' ', ' ' },
841       { "Reset",        "Reset all of the below",
842         NULL,           clearSrc, NULL, NULL, ' ', ' ', ' ' },
843       { " base",        "top-level files in /usr/src",
844         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BASE },
845       { " contrib",     "/usr/src/contrib (contributed software)",
846         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CONTRIB },
847       { " gnu",         "/usr/src/gnu (software from the GNU Project)",
848         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GNU },
849       { " etc",         "/usr/src/etc (miscellaneous system files)",
850         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_ETC },
851       { " games",       "/usr/src/games (the obvious!)",
852         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GAMES },
853       { " include",     "/usr/src/include (header files)",
854         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_INCLUDE },
855       { " lib",         "/usr/src/lib (system libraries)",
856         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIB },
857       { " libexec",     "/usr/src/libexec (system programs)",
858         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIBEXEC },
859       { " release",     "/usr/src/release (release-generation tools)",
860         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_RELEASE },
861       { " bin",         "/usr/src/bin (system binaries)",
862         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BIN },
863       { " sbin",        "/usr/src/sbin (system binaries)",
864         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SBIN },
865       { " scrypto",     "/usr/src/crypto (contrib encryption sources)",
866         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SCRYPTO },
867       { " share",       "/usr/src/share (documents and shared files)",
868         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SHARE },
869       { " skrb4",       "/usr/src/kerberosIV (sources for KerberosIV)",
870         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SKERBEROS4 },
871       { " skrb5",       "/usr/src/kerberos5 (sources for Kerberos5)",
872         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SKERBEROS5 },
873       { " ssecure",     "/usr/src/secure (BSD encryption sources)",
874         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SSECURE },
875       { " sys",         "/usr/src/sys (FreeBSD kernel)",
876         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SYS },
877       { " tools",       "/usr/src/tools (miscellaneous tools)",
878         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_TOOLS },
879       { " ubin",        "/usr/src/usr.bin (user binaries)",
880         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_UBIN },
881       { " usbin",       "/usr/src/usr.sbin (aux system binaries)",
882         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_USBIN },
883       { NULL } },
884 };
885
886 DMenu MenuXF86Config = {
887     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
888     "Please select the XFree86 configuration tool you want to use.",
889 #ifdef __alpha__
890     "Due to problems with the VGA16 server right now, only the\n"
891     "text-mode configuration tool (xf86config) is currently supported.",
892 #else
893     "The first tool, XF86Setup, is fully graphical and requires the\n"
894     "VGA16 server in order to work (should have been selected by\n"
895     "default, but if you de-selected it then you won't be able to\n"
896     "use this fancy setup tool).  The second tool, xf86config, is\n"
897     "a more simplistic shell-script based tool and less friendly to\n"
898     "new users, but it may work in situations where the fancier one\n"
899     "does not.",
900 #endif
901     NULL,
902     NULL,
903     { { "X Exit", "Exit this menu (returning to previous)",
904         NULL, dmenuExit },
905 #ifdef __alpha__
906       { "2 xf86config", "Shell-script based XFree86 configuration tool.",
907         NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86config" },
908 #else
909       { "2 XF86Setup",  "Fully graphical XFree86 configuration tool.",
910         NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=XF86Setup" },
911       { "3 xf86config", "Shell-script based XFree86 configuration tool.",
912         NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86config" },
913 #ifdef PC98
914       { "4 XF98Setup",  "Fully graphical XFree86 configuration tool (PC98).",
915         NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=XF98Setup" },
916 #endif
917 #endif
918       { "D XDesktop",   "X already set up, just do desktop configuration.",
919         NULL, dmenuSubmenu, NULL, &MenuXDesktops },
920       { NULL } },
921 };
922
923 DMenu MenuXDesktops = {
924     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
925     "Please select the default X desktop to use.",
926     "By default, XFree86 comes with a fairly vanilla desktop which\n"
927     "is based around the twm(1) window manager and does not offer\n"
928     "much in the way of features.  It does have the advantage of\n"
929     "being a standard part of X so you don't need to load anything\n"
930     "extra in order to use it.  If, however, you have access to a\n"
931     "reasonably full packages collection on your installation media,\n"
932     "you can choose any one of the following desktops as alternatives.",
933     NULL,
934     NULL,
935     { { "X Exit", "Exit this menu (returning to previous)",
936         NULL, dmenuExit },
937       { "2 KDE",                "The K Desktop Environment.",
938         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=kde" },
939       { "3 GNOME + Sawfish",    "GNOME + Sawfish window manager.",
940         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=gnome" },
941       { "4 GNOME + Enlightenment","GNOME + The E window manager",
942         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=enlightenment" },
943       { "5 Afterstep",  "The Afterstep window manager",
944         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=afterstep" },
945       { "6 Windowmaker",        "The Windowmaker window manager",
946         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=windowmaker" },
947       { "7 fvwm",               "The fvwm window manager",
948         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=fvwm2" },
949       { NULL } },
950 };
951
952 DMenu MenuXF86Select = {
953     DMENU_NORMAL_TYPE,
954     "XFree86 3.3.6 Distribution",
955     "Please select the components you need from the XFree86 3.3.6\n"
956     "distribution sets.",
957     NULL,
958     NULL,
959     { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
960       { "Basic",        "Basic component menu (required)",      NULL, dmenuSubmenu, NULL, &MenuXF86SelectCore },
961       { "Server",       "X server menu",                        NULL, dmenuSubmenu, NULL, &MenuXF86SelectServer },
962       { "Fonts",        "Font set menu",                        NULL, dmenuSubmenu, NULL, &MenuXF86SelectFonts },
963       { NULL } },
964 };
965
966 DMenu MenuXF86SelectCore = {
967     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
968     "XFree86 3.3.6 base distribution types",
969     "Please check off the basic XFree86 components you wish to install.\n"
970     "Bin, lib, and set are recommended for a minimum installaion.",
971     NULL,
972     NULL,
973     { { "X Exit",       "Exit this menu (returning to previous)",
974         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
975       { "All",          "Select all below",
976         NULL,           setX11Misc, NULL, NULL, ' ', ' ', ' ' },
977       { "Reset",        "Reset all below",
978         NULL,           clearX11Misc, NULL, NULL, ' ', ' ', ' ' },
979       { " bin",         "Client applications and shared libs",
980         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_BIN },
981       { " lib",         "Data files needed at runtime",
982         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LIB },
983       { " cfg",         "Configuration files",
984         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_CFG },
985       { " set",         "XFree86 Setup Utility",
986         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_SET },
987       { " man",         "Manual pages",
988         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_MAN },
989       { " doc",         "READMEs and release notes",
990         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_DOC },
991       { " html",        "HTML documentation files",
992         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_HTML },
993       { " lkit",        "Server link kit for all other machines",
994         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LKIT },
995       { " prog",        "Programmer's header and library files",
996         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_PROG },
997 #if defined(__i386__) && defined(PC98)
998       { " 9set",        "XFree86 Setup Utility for PC98 machines",
999         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_9SET },
1000       { " lk98",        "Server link kit for PC98 machines",
1001         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LKIT98 },
1002 #endif
1003       { NULL } },
1004 };
1005
1006 DMenu MenuXF86SelectFonts = {
1007     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1008     "Font distribution selection.",
1009     "Please check off the individual font distributions you wish to\n\
1010 install.  At the minimum, you should install the standard\n\
1011 75 DPI and misc fonts if you're also installing a server\n\
1012 (these are selected by default).",
1013     NULL,
1014     NULL,
1015     { { "X Exit",       "Exit this menu (returning to previous)",
1016         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1017       { "All",          "All fonts",
1018         NULL,           setX11Fonts, NULL, NULL, ' ', ' ', ' ' },
1019       { "Reset",        "Reset font selections",
1020         NULL,           clearX11Fonts, NULL, NULL, ' ', ' ', ' ' },
1021       { " fnts",        "Standard 75 DPI and miscellaneous fonts",
1022         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_MISC },
1023       { " f100",        "100 DPI fonts",
1024         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_100 },
1025       { " fcyr",        "Cyrillic Fonts",
1026         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_CYR },
1027       { " fscl",        "Speedo and Type scalable fonts",
1028         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_SCALE },
1029       { " non",         "Japanese, Chinese and other non-english fonts",
1030         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_NON },
1031       { " server",      "Font server",
1032         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_SERVER },
1033       { NULL } },
1034 };
1035
1036 DMenu MenuXF86SelectServer = {
1037     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1038     "X Server selection.",
1039     "Please check off the types of X servers you wish to install.\n"
1040     "If you are unsure as to which server will work for your graphics card,\n"
1041     "it is recommended that try the SVGA or VGA16 servers or, for PC98\n"
1042     "machines, the 9EGC or 9840 servers.",
1043     NULL,
1044     NULL,
1045     { { "X Exit",       "Exit this menu (returning to previous)",
1046         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1047       { "All",          "Select all of the above",
1048         NULL,           setX11Servers, NULL, NULL, ' ', ' ', ' ' },
1049       { "Reset",        "Reset all of the above",
1050         NULL,           clearX11Servers, NULL, NULL, ' ', ' ', ' ' },
1051       { " SVGA",        "Standard VGA or Super VGA card",
1052         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_SVGA },
1053       { " VGA16",       "Standard 16 color VGA card",
1054         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_VGA16 },
1055       { " Mono",        "Standard Monochrome card",
1056         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MONO },
1057       { " 3DL",         "8, 16 and 24 bit color 3D Labs boards",
1058         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_3DL },
1059       { " 8514",        "8-bit (256 color) IBM 8514 or compatible card",
1060         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_8514 },
1061       { " AGX",         "8-bit AGX card",
1062         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_AGX },
1063       { " I128",        "8, 16 and 24-bit #9 Imagine I128 card",
1064         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_I128 },
1065       { " Ma8",         "8-bit ATI Mach8 card",
1066         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH8 },
1067       { " Ma32",        "8 and 16-bit (65K color) ATI Mach32 card",
1068         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH32 },
1069       { " Ma64",        "8 and 16-bit (65K color) ATI Mach64 card",
1070         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH64 },
1071       { " P9K",         "8, 16, and 24-bit color Weitek P9000 based boards",
1072         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_P9000 },
1073       { " S3",          "8, 16 and 24-bit color S3 based boards",
1074         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_S3 },
1075       { " S3V",         "8, 16 and 24-bit color S3 Virge based boards",
1076         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_S3V },
1077       { " W32",         "8-bit ET4000/W32, /W32i and /W32p cards",
1078         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_W32 },
1079 #if defined(__i386__) && defined(PC98)
1080       { " PC98",        "Select an X server for a NEC PC98 [Submenu]",
1081         NULL,           dmenuSubmenu,  NULL, &MenuXF86SelectPC98Server, '>', ' ', '>', 0 },
1082 #elif __alpha__
1083       { " TGA",         "TGA cards (alpha architecture only)",
1084         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_TGA },
1085 #endif
1086       { NULL } },
1087 };
1088
1089 #if defined(__i386__) && defined(PC98)
1090 DMenu MenuXF86SelectPC98Server = {
1091     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1092     "PC98 X Server selection.",
1093     "Please check off the types of NEC PC98 X servers you wish to install.\n\
1094 If you are unsure as to which server will work for your graphics card,\n\
1095 it is recommended that try the SVGA or VGA16 servers (the VGA16 and\n\
1096 Mono servers are particularly well-suited to most LCD displays).",
1097     NULL,
1098     NULL,
1099     { { " 9480",        "PC98 8-bit (256 color) PEGC-480 card",
1100         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9480 },
1101       { " 9EGC",        "PC98 4-bit (16 color) EGC card",
1102         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9EGC },
1103       { " 9GA9",        "PC98 GA-968V4/PCI (S3 968) card",
1104         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9GA9 },
1105       { " 9GAN",        "PC98 GANB-WAP (cirrus) card",
1106         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9GAN },
1107       { " 9LPW",        "PC98 PowerWindowLB (S3) card",
1108         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9LPW },
1109       { " 9MGA",        "PC98 MGA (Matrox) card",
1110         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9MGA },
1111       { " 9NKV",        "PC98 NKV-NEC (cirrus) card",
1112         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9NKV },
1113       { " 9NS3",        "PC98 NEC (S3) card",
1114         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9NS3 },
1115       { " 9SPW",        "PC98 SKB-PowerWindow (S3) card",
1116         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9SPW },
1117       { " 9SVG",        "PC98 generic SVGA card",
1118         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9SVG },
1119       { " 9TGU",        "PC98 Cyber9320 and TGUI9680 cards",
1120         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9TGU },
1121       { " 9WEP",        "PC98 WAB-EP (cirrus) card",
1122         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WEP },
1123       { " 9WS",         "PC98 WABS (cirrus) card",
1124         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WS },
1125       { " 9WSN",        "PC98 WSN-A2F (cirrus) card",
1126         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WSN },
1127       { NULL } }
1128 };
1129 #endif
1130
1131 DMenu MenuDiskDevices = {
1132     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1133     "Select Drive(s)",
1134     "Please select the drive, or drives, on which you wish to perform\n"
1135     "this operation.  If you are attempting to install a boot partition\n"
1136     "on a drive other than the first one or have multiple operating\n"
1137     "systems on your machine, you will have the option to install a boot\n"
1138     "manager later.  To select a drive, use the arrow keys to move to it\n"
1139     "and press [SPACE] or [ENTER].  To de-select it, press it again.\n\n"
1140     "Use [TAB] to get to the buttons and leave this menu.",
1141     "Press F1 for important information regarding disk geometry!",
1142     "drives",
1143     { { NULL } },
1144 };
1145
1146 DMenu MenuHTMLDoc = {
1147     DMENU_NORMAL_TYPE,
1148     "Select HTML Documentation pointer",
1149     "Please select the body of documentation you're interested in, the main\n"
1150     "ones right now being the FAQ and the Handbook.  You can also choose \"other\"\n"
1151     "to enter an arbitrary URL for browsing.",
1152     "Press F1 for more help on what you see here.",
1153     "html",
1154     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
1155       { "2 Handbook",   "The FreeBSD Handbook.",                                NULL, docShowDocument },
1156       { "3 FAQ",        "The Frequently Asked Questions guide.",                NULL, docShowDocument },
1157       { "4 Home",       "The Home Pages for the FreeBSD Project (requires net)", NULL, docShowDocument },
1158       { "5 Other",      "Enter a URL.",                                         NULL, docShowDocument },
1159       { NULL } },
1160 };
1161
1162 /* The main installation menu */
1163 DMenu MenuInstallCustom = {
1164     DMENU_NORMAL_TYPE,
1165     "Choose Custom Installation Options",
1166     "This is the custom installation menu. You may use this menu to specify\n"
1167     "details on the type of distribution you wish to have, where you wish\n"
1168     "to install it from and how you wish to allocate disk storage to FreeBSD.",
1169     "Press F1 to read the installation guide",
1170     "INSTALL",
1171     { { "X Exit",               "Exit this menu (returning to previous)", NULL, dmenuExit },
1172       { "2 Options",            "View/Set various installation options", NULL, optionsEditor },
1173 #ifdef __alpha__
1174       { "3 Label",              "Label disk partitions",                NULL, diskLabelEditor },
1175       { "4 Distributions",      "Select distribution(s) to extract",    NULL, dmenuSubmenu, NULL, &MenuDistributions },
1176       { "5 Media",              "Choose the installation media type",   NULL, dmenuSubmenu, NULL, &MenuMedia },
1177       { "6 Commit",             "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1178 #else
1179       { "3 Partition",          "Allocate disk space for FreeBSD",      NULL, diskPartitionEditor },
1180       { "4 Label",              "Label allocated disk partitions",      NULL, diskLabelEditor },
1181       { "5 Distributions",      "Select distribution(s) to extract",    NULL, dmenuSubmenu, NULL, &MenuDistributions },
1182       { "6 Media",              "Choose the installation media type",   NULL, dmenuSubmenu, NULL, &MenuMedia },
1183       { "7 Commit",             "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1184 #endif
1185       { NULL } },
1186 };
1187
1188 /* MBR type menu */
1189 DMenu MenuMBRType = {
1190     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1191     "overwrite me",             /* will be disk specific label */
1192     "FreeBSD comes with a boot selector that allows you to easily\n"
1193     "select between FreeBSD and any other operating systems on your machine\n"
1194     "at boot time.  If you have more than one drive and want to boot\n"
1195     "from the second one, the boot selector will also make it possible\n"
1196     "to do so (limitations in the PC BIOS usually prevent this otherwise).\n"
1197     "If you do not want a boot selector, or wish to replace an existing\n"
1198     "one, select \"standard\".  If you would prefer your Master Boot\n"
1199     "Record to remain untouched then select \"None\".\n\n"
1200     "  NOTE:  PC-DOS users will almost certainly require \"None\"!",
1201     "Press F1 to read about drive setup",
1202     "drives",
1203     { { "BootMgr",      "Install the FreeBSD Boot Manager",
1204         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr },
1205 #ifndef PC98
1206       { "Standard",     "Install a standard MBR (no boot manager)",
1207         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
1208 #endif
1209       { "None",         "Leave the Master Boot Record untouched",
1210         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 2 },
1211       { NULL } },
1212 };
1213
1214 /* Final configuration menu */
1215 DMenu MenuConfigure = {
1216     DMENU_NORMAL_TYPE,
1217     "FreeBSD Configuration Menu",       /* title */
1218     "If you've already installed FreeBSD, you may use this menu to customize\n"
1219     "it somewhat to suit your particular configuration.  Most importantly,\n"
1220     "you can use the Packages utility to load extra \"3rd party\"\n"
1221     "software not provided in the base distributions.",
1222     "Press F1 for more information on these options",
1223     "configure",
1224     { { "X Exit",               "Exit this menu (returning to previous)",
1225         NULL,   dmenuExit },
1226       { " Distributions", "Install additional distribution sets",
1227         NULL, distExtractAll },
1228       { " Packages",    "Install pre-packaged software for FreeBSD",
1229         NULL, configPackages },
1230       { " Root Password", "Set the system manager's password",
1231         NULL,   dmenuSystemCommand, NULL, "passwd root" },
1232 #ifdef __i386__
1233       { " Fdisk",       "The disk Slice (PC-style partition) Editor",
1234         NULL, diskPartitionEditor },
1235 #endif
1236       { " Label",       "The disk Label editor",
1237         NULL, diskLabelEditor },
1238       { " User Management",     "Add user and group information",
1239         NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
1240       { " Console",     "Customize system console behavior",
1241         NULL,   dmenuSubmenu, NULL, &MenuSyscons },
1242       { " Time Zone",   "Set which time zone you're in",
1243         NULL,   dmenuSystemCommand, NULL, "tzsetup" },
1244       { " Media",       "Change the installation media type",
1245         NULL,   dmenuSubmenu, NULL, &MenuMedia },
1246       { " Mouse",       "Configure your mouse",
1247         NULL,   dmenuSubmenu, NULL, &MenuMouse, NULL },
1248       { " Networking",  "Configure additional network services",
1249         NULL,   dmenuSubmenu, NULL, &MenuNetworking },
1250       { " Security",    "Select default system security profile",
1251         NULL,   dmenuSubmenu, NULL, &MenuSecurityProfile },
1252       { " Startup",     "Configure system startup options",
1253         NULL,   dmenuSubmenu, NULL, &MenuStartup },
1254       { " TTYs",        "Configure system ttys.",
1255         NULL,   configEtcTtys, NULL, "ttys" },
1256       { " Options",     "View/Set various installation options",
1257         NULL, optionsEditor },
1258       { " XFree86",     "Configure XFree86 Server",
1259         NULL, configXSetup },
1260       { " Desktop",     "Configure XFree86 Desktop",
1261         NULL, configXDesktop },
1262       { " HTML Docs",   "Go to the HTML documentation menu (post-install)",
1263         NULL, docBrowser },
1264       { NULL } },
1265 };
1266
1267 DMenu MenuStartup = {
1268     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1269     "Startup Services Menu",
1270     "This menu allows you to configure various aspects of your system's\n"
1271     "startup configuration.  Use [SPACE] or [ENTER] to select items, and\n"
1272     "[TAB] to move to the buttons.  Select Exit to leave this menu.",
1273     NULL,
1274     NULL,
1275     { { "X Exit",       "Exit this menu (returning to previous)",
1276         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1277       { " APM",         "Auto-power management services (typically laptops)",
1278         dmenuVarCheck,  dmenuToggleVariable, NULL, "apm_enable=YES" },
1279       { " pccard",      "Enable PCCARD (AKA PCMCIA) services (also laptops)",
1280         dmenuVarCheck, dmenuToggleVariable, NULL, "pccard_enable=YES" },
1281       { " pccard mem",  "Set PCCARD memory address (if enabled)",
1282         dmenuVarCheck, dmenuISetVariable, NULL, "pccard_mem" },
1283       { " pccard ifconfig",     "List of PCCARD ethernet devices to configure",
1284         dmenuVarCheck, dmenuISetVariable, NULL, "pccard_ifconfig" },
1285       { " usbd", "Enable USB daemon (detect USB attach / detach)",
1286         dmenuVarCheck, dmenuToggleVariable, NULL, "usbd_enable=YES" },
1287       { " usbd flags", "Set default flags to usbd (if enabled)", 
1288         dmenuVarCheck, dmenuISetVariable, NULL, "usbd_flags" },
1289       { " ",            " -- ", NULL,   NULL, NULL, NULL, ' ', ' ', ' ' },
1290       { " startup dirs",        "Set the list of dirs to look for startup scripts",
1291         dmenuVarCheck, dmenuISetVariable, NULL, "local_startup" },
1292       { " named",       "Run a local name server on this host",
1293         dmenuVarCheck, dmenuToggleVariable, NULL, "named_enable=YES" },
1294       { " named flags", "Set default flags to named (if enabled)",
1295         dmenuVarCheck, dmenuISetVariable, NULL, "named_flags" },
1296       { " nis client",  "This host wishes to be an NIS client.",
1297         dmenuVarCheck, dmenuToggleVariable, NULL, "nis_client_enable=YES" },
1298       { " nis domainname",      "Set NIS domainname (if enabled)",
1299         dmenuVarCheck, dmenuISetVariable, NULL, "nisdomainname" },
1300       { " nis server",  "This host wishes to be an NIS server.",
1301         dmenuVarCheck, dmenuToggleVariable, NULL, "nis_server_enable=YES" },
1302       { " ",            " -- ", NULL,   NULL, NULL, NULL, ' ', ' ', ' ' },
1303       { " accounting",  "This host wishes to run process accounting.",
1304         dmenuVarCheck, dmenuToggleVariable, NULL, "accounting_enable=YES" },
1305       { " lpd",         "This host has a printer and wants to run lpd.",
1306         dmenuVarCheck, dmenuToggleVariable, NULL, "lpd_enable=YES" },
1307 #ifdef __i386__
1308       { " linux",       "This host wants to be able to run linux binaries.",
1309         dmenuVarCheck, configLinux, NULL, VAR_LINUX_ENABLE "=YES" },
1310       { " SVR4",        "This host wants to be able to run SVR4 binaries.",
1311         dmenuVarCheck, dmenuToggleVariable, NULL, "svr4_enable=YES" },
1312       { " SCO",         "This host wants to be able to run IBCS2 binaries.",
1313         dmenuVarCheck, dmenuToggleVariable, NULL, "ibcs2_enable=YES" },
1314 #elif __alpha__
1315       { " OSF/1",       "This host wants to be able to run DEC OSF/1 binaries.",
1316         dmenuVarCheck, dmenuToggleVariable, NULL, "osf1_enable=YES" },
1317 #endif
1318       { " quotas",      "This host wishes to check quotas on startup.",
1319         dmenuVarCheck, dmenuToggleVariable, NULL, "check_quotas=YES" },
1320       { NULL } },
1321 };
1322
1323 DMenu MenuNetworking = {
1324     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1325     "Network Services Menu",
1326     "You may have already configured one network device (and the other\n"
1327     "various hostname/gateway/name server parameters) in the process\n"
1328     "of installing FreeBSD.  This menu allows you to configure other\n"
1329     "aspects of your system's network configuration.",
1330     NULL,
1331     NULL,
1332     { { "X Exit",       "Exit this menu (returning to previous)",
1333         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1334       { " Interfaces",  "Configure additional network interfaces",
1335         NULL, tcpMenuSelect },
1336       { " AMD",         "This machine wants to run the auto-mounter service",
1337         dmenuVarCheck,  dmenuToggleVariable, NULL, "amd_enable=YES" },
1338       { " AMD Flags",   "Set flags to AMD service (if enabled)",
1339         dmenuVarCheck,  dmenuISetVariable, NULL, "amd_flags" },
1340       { " Anon FTP",    "This machine wishes to allow anonymous FTP.",
1341         dmenuVarCheck,  configAnonFTP, NULL, "anon_ftp" },
1342       { " Gateway",     "This machine will route packets between interfaces",
1343         dmenuVarCheck,  dmenuToggleVariable, NULL, "gateway_enable=YES" },
1344       { " inetd",       "This machine wants to run the inet daemon",
1345         dmenuVarCheck,  configInetd, NULL, "inetd_enable=YES" },
1346       { " NFS client",  "This machine will be an NFS client",
1347         dmenuVarCheck,  dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
1348       { " NFS server",  "This machine will be an NFS server",
1349         dmenuVarCheck,  configNFSServer, NULL, "nfs_server_enable=YES" },
1350       { " Ntpdate",     "Select a clock-synchronization server",
1351         dmenuVarCheck,  dmenuSubmenu, NULL, &MenuNTP, '[', 'X', ']', "ntpdate_enable=YES" },
1352       { " PCNFSD",      "Run authentication server for clients with PC-NFS.",
1353         dmenuVarCheck,  configPCNFSD, NULL, "pcnfsd" },
1354       { " portmap",     "This machine wants to run the portmapper daemon",
1355         dmenuVarCheck,  dmenuToggleVariable, NULL, "portmap_enable=YES" },
1356       { " Routed",      "Select routing daemon (default: routed)",
1357         dmenuVarCheck,  configRouter, NULL, "router_enable=YES" },
1358       { " Rwhod",       "This machine wants to run the rwho daemon",
1359         dmenuVarCheck,  dmenuToggleVariable, NULL, "rwhod_enable=YES" },
1360       { " Sendmail",    "This machine wants to run the sendmail daemon",
1361         dmenuVarCheck,  dmenuToggleVariable, NULL, "sendmail_enable=YES" },
1362       { " Sshd",        "This machine wants to run the ssh daemon",
1363         dmenuVarCheck,  dmenuToggleVariable, NULL, "sshd_enable=YES" },
1364       { " TCP Extensions", "Allow RFC1323 and RFC1644 TCP extensions?",
1365         dmenuVarCheck,  dmenuToggleVariable, NULL, "tcp_extensions=YES" },
1366       { NULL } },
1367 };
1368
1369 DMenu MenuNTP = {
1370     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1371     "NTPDATE Server Selection",
1372     "There are a number of time synchronization servers available\n"
1373     "for public use around the Internet.  Please select one reasonably\n"
1374     "close to you to have your system time synchronized accordingly.",
1375     "These are the primary open-access NTP servers",
1376     NULL,
1377     { { "None",                 "No NTP server",
1378         dmenuVarsCheck, dmenuSetVariables, NULL, 
1379         "ntpdate_enable=NO,ntpdate_flags=none" },
1380       { "Other",                "Select a site not on this list",
1381         dmenuVarsCheck, configNTP, NULL, NULL },
1382       { "Australia",            "ntp.nml.csiro.au (HP 5071A Cesium Beam)",
1383         dmenuVarsCheck, dmenuSetVariables, NULL, 
1384         "ntpdate_enable=YES,ntpdate_flags=ntp.tip.csiro.au" },
1385       { " Canada",              "tick.usask.ca (GOES clock)",
1386         dmenuVarsCheck, dmenuSetVariables, NULL, 
1387         "ntpdate_enable=YES,ntpdate_flags=tick.usask.ca" },
1388       { "France",               "canon.inria.fr (TDF clock)",
1389         dmenuVarsCheck, dmenuSetVariables, NULL, 
1390         "ntpdate_enable=YES,ntpdate_flags=canon.inria.fr" },
1391       { "Germany",              "ntps1-{0,1,2}.uni-erlangen.de (GPS)",
1392         dmenuVarsCheck, dmenuSetVariables, NULL, 
1393         "ntpdate_enable=YES,ntpdate_flags=ntps1-0.uni-erlangen.de" },
1394       { " Germany #2",          "ntps1-0.cs.tu-berlin.de (GPS)",
1395         dmenuVarsCheck, dmenuSetVariables, NULL, 
1396         "ntpdate_enable=YES,ntpdate_flags=ntps1-0.cs.tu-berlin.de" },
1397       { "Japan",                "clock.nc.fukuoka-u.ac.jp (GPS clock)",
1398         dmenuVarsCheck, dmenuSetVariables, NULL, 
1399         "ntpdate_enable=YES,ntpdate_flags=clock.nc.fukuoka-u.ac.jp" },
1400       { " Japan #2",            "clock.tl.fukuoka-u.ac.jp (GPS clock)",
1401         dmenuVarsCheck, dmenuSetVariables, NULL, 
1402         "ntpdate_enable=YES,ntpdate_flags=clock.tl.fukuoka-u.ac.jp" },
1403       { "Netherlands",          "ntp0.nl.net (GPS clock)",
1404         dmenuVarsCheck, dmenuSetVariables, NULL, 
1405         "ntpdate_enable=YES,ntpdate_flags=ntp0.nl.net" },
1406       { " Norway",              "timehost.ifi.uio.no (NTP clock)",
1407         dmenuVarsCheck, dmenuSetVariables, NULL, 
1408         "ntpdate_enable=YES,ntpdate_flags=timehost.ifi.uio.no" },
1409       { "Sweden",               "Time1.Stupi.SE (Cesium/GPS)",
1410         dmenuVarsCheck, dmenuSetVariables, NULL, 
1411         "ntpdate_enable=YES,ntpdate_flags=Time1.Stupi.SE" },
1412       { " Switzerland",         "swisstime.ethz.ch (DCF77 clock)",
1413         dmenuVarsCheck, dmenuSetVariables, NULL, 
1414         "ntpdate_enable=YES,ntpdate_flags=swisstime.ethz.ch" },
1415       { "U.S. East Coast",      "bitsy.mit.edu (WWV clock)",
1416         dmenuVarsCheck, dmenuSetVariables, NULL, 
1417         "ntpdate_enable=YES,ntpdate_flags=bitsy.mit.edu" },
1418       { " U.S. East Coast #2",  "otc1.psu.edu (WWV clock)",
1419         dmenuVarsCheck, dmenuSetVariables, NULL, 
1420         "ntpdate_enable=YES,ntpdate_flags=otc1.psu.edu" },
1421       { " U.S. West Coast #1",  "clepsydra.dec.com (GOES clock)",
1422         dmenuVarsCheck, dmenuSetVariables, NULL, 
1423         "ntpdate_enable=YES,ntpdate_flags=clepsydra.dec.com" },
1424       { " U.S. West Coast #2",  "clock.llnl.gov (WWVB clock)",
1425         dmenuVarsCheck, dmenuSetVariables, NULL, 
1426         "ntpdate_enable=YES,ntpdate_flags=clock.llnl.gov" },
1427       { " U.S. Midwest",                "ncar.ucar.edu (WWVB clock)",
1428         dmenuVarsCheck, dmenuSetVariables, NULL, 
1429         "ntpdate_enable=YES,ntpdate_flags=ncar.ucar.edu" },
1430       { NULL } },
1431 };
1432
1433 DMenu MenuSyscons = {
1434     DMENU_NORMAL_TYPE,
1435     "System Console Configuration",
1436     "The default system console driver for FreeBSD (syscons) has a\n"
1437     "number of configuration options which may be set according to\n"
1438     "your preference.\n\n"
1439     "When you are done setting configuration options, select Cancel.",
1440     "Configure your system console settings",
1441     NULL,
1442     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
1443       { "2 Font",       "Choose an alternate screen font",      NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
1444       { "3 Keymap",     "Choose an alternate keyboard map",     NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
1445       { "4 Repeat",     "Set the rate at which keys repeat",    NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
1446       { "5 Saver",      "Configure the screen saver",           NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
1447       { "6 Screenmap",  "Choose an alternate screenmap",        NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
1448       { "7 Ttys",       "Choose console terminal type",         NULL, dmenuSubmenu, NULL, &MenuSysconsTtys },
1449       { NULL } },
1450 };
1451
1452 #ifdef PC98
1453 DMenu MenuSysconsKeymap = {
1454     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1455     "System Console Keymap",
1456     "The default system console driver for FreeBSD (syscons) defaults\n"
1457     "to a standard \"PC-98x1\" keyboard map.  Users may wish to choose\n"
1458     "one of the other keymaps below.\n"
1459     "Note that sysinstall itself only uses the part of the keyboard map\n"
1460     "which is required to generate the ANSI character subset, but your\n"
1461     "choice of keymap will also be saved for later (fuller) use.",
1462     "Choose a keyboard map",
1463     NULL,
1464     { { "Japanese PC-98x1",             "Japanese PC-98x1 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98" },
1465       { " Japanese PC-98x1 (ISO)",      "Japanese PC-98x1 (ISO) keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98.iso" },
1466       { NULL } },
1467 };
1468 #else
1469 DMenu MenuSysconsKeymap = {
1470     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1471     "System Console Keymap",
1472     "The default system console driver for FreeBSD (syscons) defaults\n"
1473     "to a standard \"American\" keyboard map.  Users in other countries\n"
1474     "(or with different keyboard preferences) may wish to choose one of\n"
1475     "the other keymaps below.\n"
1476     "Note that sysinstall itself only uses the part of the keyboard map\n"
1477     "which is required to generate the ANSI character subset, but your\n"
1478     "choice of keymap will also be saved for later (fuller) use.",
1479     "Choose a keyboard map",
1480     NULL,
1481     { { "Belgian",      "Belgian ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=be.iso" },
1482       { " Brazil CP850",        "Brazil CP850 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.cp850" },
1483       { " Brazil ISO (accent)", "Brazil ISO keymap (accent keys)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso.acc" },
1484       { " Brazil ISO",  "Brazil ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso" },
1485       { " Croatian ISO",        "Croatian ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hr.iso" },
1486       { " Czech ISO (accent)",  "Czech ISO keymap (accent keys)",       dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=cs.latin2.qwertz" },
1487       { "Danish CP865", "Danish Code Page 865 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.cp865" },
1488       { " Danish ISO",  "Danish ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.iso" },
1489       { "Estonian ISO", "Estonian ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso" },
1490       { " Estonian ISO 15", "Estonian ISO 8859-15 keymap",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso15" },
1491       { " Estonian CP850", "Estonian Code Page 850 keymap",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.cp850" },
1492       { "Finnish CP850","Finnish Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.cp850" },
1493       { " Finnish ISO",  "Finnish ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.iso" },
1494       { " French ISO (accent)", "French ISO keymap (accent keys)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso.acc" },
1495       { " French ISO",  "French ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso" },
1496       { "German CP850", "German Code Page 850 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.cp850"        },
1497       { " German ISO",  "German ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.iso" },
1498       { "Hungarian 101", "Hungarian ISO keymap (101 key)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.101keys" },
1499       { " Hungarian 102", "Hungarian ISO keymap (102 key)",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.102keys" },
1500       { "Icelandic (accent)", "Icelandic ISO keymap (accent keys)",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso.acc" },
1501       { " Icelandic",   "Icelandic ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso" },
1502       { " Italian",     "Italian ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=it.iso" },
1503       { "Japanese 106", "Japanese 106 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.106" },
1504       { "Latin American", "Latin American ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=lat-amer" },
1505       { "Norway ISO",   "Norwegian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=norwegian.iso" },
1506       { "Polish ISO",   "Polish ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pl_PL.ISO8859-2" },
1507       { " Portuguese (accent)", "Portuguese ISO keymap (accent keys)",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso.acc" },
1508       { " Portuguese",  "Portuguese ISO keymap",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso" },
1509       { "Russia KOI8-R", "Russian KOI8-R keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ru.koi8-r" },
1510       { "Slovenian", "Slovenian ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=si.iso" },
1511       { " Spanish (accent)", "Spanish ISO keymap (accent keys)",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso.acc" },
1512       { " Spanish",     "Spanish ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso" },
1513       { " Swedish CP850", "Swedish Code Page 850 keymap", dmenuVarCheck,        dmenuSetKmapVariable, NULL, "keymap=swedish.cp850" },
1514       { " Swedish ISO", "Swedish ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swedish.iso" },
1515       { " Swiss French ISO (accent)", "Swiss French ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso.acc" },
1516       { " Swiss French ISO", "Swiss French ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso" },
1517       { " Swiss French CP850", "Swiss French Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.cp850" },
1518       { " Swiss German ISO (accent)", "Swiss German ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso.acc" },
1519       { " Swiss German ISO", "Swiss German ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso" },
1520       { " Swiss German CP850", "Swiss German Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.cp850" },
1521       { "UK CP850",     "UK Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.cp850" },
1522       { " UK ISO",      "UK ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.iso" },
1523       { " Ukrainian KOI8-U",    "Ukrainian KOI8-U keymap",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u" },
1524       { " Ukrainian KOI8-U+KOI8-R",     "Ukrainian KOI8-U+KOI8-R keymap (alter)",       dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u.shift.alt" },
1525       { " USA CapsLock->Ctrl",  "US standard (Caps as L-Control)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.pc-ctrl" },
1526       { " USA Dvorak",  "US Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorak" },
1527       { " USA Dvorak (left)",   "US left handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakl" },
1528       { " USA Dvorak (right)",  "US right handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakr" },
1529       { " USA Emacs",   "US standard optimized for EMACS",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.emacs" },
1530       { " USA ISO",     "US ISO keymap",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.iso" },
1531       { " USA UNIX",    "US traditional UNIX-workstation",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.unix" },
1532       { NULL } },
1533 };
1534 #endif
1535
1536 DMenu MenuSysconsKeyrate = {
1537     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1538     "System Console Keyboard Repeat Rate",
1539     "This menu allows you to set the speed at which keys repeat\n"
1540     "when held down.",
1541     "Choose a keyboard repeat rate",
1542     NULL,
1543     { { "Slow", "Slow keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=slow" },
1544       { "Normal", "\"Normal\" keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=normal" },
1545       { "Fast", "Fast keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=fast" },
1546       { "Default", "Use default keyboard repeat rate",  dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=NO" },
1547       { NULL } },
1548 };
1549
1550 DMenu MenuSysconsSaver = {
1551     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1552     "System Console Screen Saver",
1553     "By default, the console driver will not attempt to do anything\n"
1554     "special with your screen when it's idle.  If you expect to leave your\n"
1555     "monitor switched on and idle for long periods of time then you should\n"
1556     "probably enable one of these screen savers to prevent phosphor burn-in.",
1557     "Choose a nifty-looking screen saver",
1558     NULL,
1559     { { "1 Blank",      "Simply blank the screen",
1560         dmenuVarCheck, configSaver, NULL, "saver=blank" },
1561       { "2 Daemon",     "\"BSD Daemon\" animated screen saver (text)",
1562         dmenuVarCheck, configSaver, NULL, "saver=daemon" },
1563       { "3 Fade",       "Fade out effect screen saver",
1564         dmenuVarCheck, configSaver, NULL, "saver=fade" },
1565       { "4 Fire",       "Flames effect screen saver",
1566         dmenuVarCheck, configSaver, NULL, "saver=fire" },
1567       { "5 Green",      "\"Green\" power saving mode (if supported by monitor)",
1568         dmenuVarCheck, configSaver, NULL, "saver=green" },
1569       { "6 Logo",       "\"BSD Daemon\" animated screen saver (graphics)",
1570         dmenuVarCheck, configSaver, NULL, "saver=logo" },
1571       { "7 Rain",       "Rain drops screen saver",
1572         dmenuVarCheck, configSaver, NULL, "saver=rain" },
1573       { "8 Snake",      "Draw a FreeBSD \"snake\" on your screen",
1574         dmenuVarCheck, configSaver, NULL, "saver=snake" },
1575       { "9 Star",       "A \"twinkling stars\" effect",
1576         dmenuVarCheck, configSaver, NULL, "saver=star" },
1577       { "Warp", "A \"stars warping\" effect",
1578         dmenuVarCheck, configSaver, NULL, "saver=warp" },
1579       { "Timeout",      "Set the screen saver timeout interval",
1580         NULL, configSaverTimeout, NULL, NULL, ' ', ' ', ' ' },
1581       { NULL } },
1582 };
1583
1584 DMenu MenuSysconsScrnmap = {
1585     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1586     "System Console Screenmap",
1587     "Unless you load a specific font, most PC hardware defaults to\n"
1588     "displaying characters in the IBM 437 character set.  However,\n"
1589     "in the Unix world, this character set is very rarely used.  Most\n"
1590     "Western European countries, for example, prefer ISO 8859-1.\n"
1591     "American users won't notice the difference since the bottom half\n"
1592     "of all these character sets is ANSI anyway.\n"
1593     "If your hardware is capable of downloading a new display font,\n"
1594     "you should probably choose that option.  However, for hardware\n"
1595     "where this is not possible (e.g. monochrome adapters), a screen\n"
1596     "map will give you the best approximation that your hardware can\n"
1597     "display at all.",
1598     "Choose a screen map",
1599     NULL,
1600     { { "None",                 "No screenmap, use default font", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=NO" },
1601       { "KOI8-R to IBM866",     "Russian KOI8-R to IBM 866 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-r2cp866" },
1602       { "KOI8-U to IBM866u",    "Ukrainian KOI8-U to IBM 866u screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-u2cp866u" },
1603       { "ISO 8859-1 to IBM437", "W-Europe ISO 8859-1 to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=iso-8859-1_to_cp437" },
1604       { NULL } },
1605 };
1606
1607 DMenu MenuSysconsTtys = {
1608     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1609     "System Console Terminal Type",
1610     "For various console encodings corresponding terminal type\n"
1611     "must be choosed in /etc/ttys.\n"
1612     "WARNING: due to compatibility reasons, only entries started with\n"
1613     "ttyv and with terminal type started with cons[0-9] can be changed\n"
1614     "via this menu.\n",
1615     "Choose a terminal type",
1616     NULL,
1617     { { "1 None",               "Don't touch anything",  dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=NO" },
1618       { "2 US-ASCII or IBM437", "cons25", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25" },
1619       { "3 ISO 8859-1",         "cons25l1", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l1" },
1620       { "4 ISO 8859-2",         "cons25l2", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l2" },
1621       { "5 KOI8-R",             "cons25r", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25r" },
1622       { "6 KOI8-U",             "cons25u", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25u" },
1623       { NULL } },
1624 };
1625
1626 DMenu MenuSysconsFont = {
1627     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1628     "System Console Font",
1629     "Most PC hardware defaults to displaying characters in the\n"
1630     "IBM 437 character set.  However, in the Unix world, this\n"
1631     "character set is very rarely used.  Most Western European\n"
1632     "countries, for example, prefer ISO 8859-1.\n"
1633     "American users won't notice the difference since the bottom half\n"
1634     "of all these charactersets is ANSI anyway.  However, they might\n"
1635     "want to load a font anyway to use the 30- or 50-line displays.\n"
1636     "If your hardware is capable of downloading a new display font,\n"
1637     "you can select the appropriate font below.",
1638     "Choose a font",
1639     NULL,
1640     { { "1 None", "Use default font",   dmenuVarCheck,  dmenuSetVariables, NULL,
1641         "font8x8=NO,font8x14=NO,font8x16=NO" },
1642       { "2 IBM 437", "English", dmenuVarCheck,  dmenuSetVariables, NULL,
1643         "font8x8=cp437-8x8,font8x14=cp437-8x14,font8x16=cp437-8x16" },
1644       { "3 IBM 850", "Western Europe, IBM encoding",    dmenuVarCheck,  dmenuSetVariables, NULL,
1645         "font8x8=cp850-8x8,font8x14=cp850-8x14,font8x16=cp850-8x16" },
1646       { "4 IBM 865", "Norwegian, IBM encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
1647         "font8x8=cp865-8x8,font8x14=cp865-8x14,font8x16=cp865-8x16" },
1648       { "5 IBM 866", "Russian, IBM encoding (use with KOI8-R screenmap)",   dmenuVarCheck,  dmenuSetVariables, NULL,
1649         "font8x8=cp866-8x8,font8x14=cp866-8x14,font8x16=cp866b-8x16,mousechar_start=3" },
1650       { "6 IBM 866u", "Ukrainian, IBM encoding (use with KOI8-U screenmap)",   dmenuVarCheck,  dmenuSetVariables, NULL,
1651         "font8x8=cp866u-8x8,font8x14=cp866u-8x14,font8x16=cp866u-8x16,mousechar_start=3" },
1652       { "7 ISO 8859-1", "Western Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
1653         "font8x8=iso-8x8,font8x14=iso-8x14,font8x16=iso-8x16" },
1654       { "8 ISO 8859-2", "Eastern Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
1655         "font8x8=iso02-8x8,font8x14=iso02-8x14,font8x16=iso02-8x16" },
1656       { "9 SWISS", "English, better resolution", dmenuVarCheck, dmenuSetVariables, NULL,
1657         "font8x8=swiss-8x8,font8x14=NO,font8x16=swiss-8x16" },
1658       { NULL } },
1659 };
1660
1661 DMenu MenuUsermgmt = {
1662     DMENU_NORMAL_TYPE,
1663     "User and group management",
1664     "The submenus here allow to manipulate user groups and\n"
1665     "login accounts.\n",
1666     "Configure your user groups and users",
1667     NULL,
1668     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
1669       { "User",         "Add a new user to the system.",        NULL, userAddUser },
1670       { "Group",        "Add a new user group to the system.",  NULL, userAddGroup },
1671       { NULL } },
1672 };
1673
1674 DMenu MenuSecurityProfile = {
1675     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1676     "Default system security profile",
1677     "Each item in this list will set what it considers to\n"
1678     "be \"appropriate\" values in that category for various\n"
1679     "security-related knobs in /etc/rc.conf.",
1680     "Select a canned security profile - F1 for help",
1681     "security",                                         /* help file */
1682     { { "X Exit",       "Exit this menu (returning to previous)", NULL, configSecurityModerate },
1683       { "Medium",       "Moderate security settings [DEFAULT].", NULL, configSecurityModerate },
1684       { "Extreme",      "Very restrictive security settings.", NULL, configSecurityExtreme },
1685       { NULL } },
1686 };
1687
1688 DMenu MenuFixit = {
1689     DMENU_NORMAL_TYPE,
1690     "Please choose a fixit option",
1691     "There are three ways of going into \"fixit\" mode:\n"
1692     "- you can use the 2nd FreeBSD CDROM, in which case there will be\n"
1693     "  full access to the complete set of FreeBSD commands and utilities,\n"
1694     "- you can use the more limited (but perhaps customized) fixit floppy,\n"
1695     "- or you can start an Emergency Holographic Shell now, which is\n"
1696     "  limited to the subset of commands that is already available right now.",
1697     "Press F1 for more detailed repair instructions",
1698     "fixit",
1699 { { "X Exit",   "Exit this menu (returning to previous)",               NULL, dmenuExit },
1700   { "2 CDROM",  "Use the 2nd \"live\" CDROM from the distribution",     NULL, installFixitCDROM },
1701   { "3 Floppy", "Use a floppy generated from the fixit image",          NULL, installFixitFloppy },
1702   { "4 Shell",  "Start an Emergency Holographic Shell",                 NULL, installFixitHoloShell },
1703   { NULL } },
1704 };