]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/sysinstall/menus.c
MFV: ACPICA 20090521
[FreeBSD/FreeBSD.git] / usr.sbin / sysinstall / 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     return DITEM_SUCCESS | DITEM_REDRAW;
49 }
50
51 static int
52 clearSrc(dialogMenuItem *self)
53 {
54     Dists &= ~DIST_SRC;
55     SrcDists = 0;
56     return DITEM_SUCCESS | DITEM_REDRAW;
57 }
58
59 static int
60 setKernel(dialogMenuItem *self)
61 {
62     Dists |= DIST_KERNEL;
63     KernelDists = DIST_KERNEL_ALL;
64     return DITEM_SUCCESS | DITEM_REDRAW;
65 }
66
67 static int
68 clearKernel(dialogMenuItem *self)
69 {
70     Dists &= ~DIST_KERNEL;
71     KernelDists = 0;
72     return DITEM_SUCCESS | DITEM_REDRAW;
73 }
74
75 #define _IS_SET(dist, set) (((dist) & (set)) == (set))
76
77 #define IS_DEVELOPER(dist, extra) (_IS_SET(dist, _DIST_DEVELOPER | extra) || \
78         _IS_SET(dist, _DIST_DEVELOPER | extra))
79
80 #define IS_USER(dist, extra) (_IS_SET(dist, _DIST_USER | extra) || \
81         _IS_SET(dist, _DIST_USER | extra))
82
83 static int
84 checkDistDeveloper(dialogMenuItem *self)
85 {
86     return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_ALL);
87 }
88
89 static int
90 checkDistKernDeveloper(dialogMenuItem *self)
91 {
92     return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_SYS);
93 }
94
95 static int
96 checkDistUser(dialogMenuItem *self)
97 {
98     return IS_USER(Dists, 0);
99 }
100
101 static int
102 checkDistMinimum(dialogMenuItem *self)
103 {
104     return Dists == (DIST_BASE | DIST_KERNEL);
105 }
106
107 static int
108 checkDistEverything(dialogMenuItem *self)
109 {
110     return Dists == DIST_ALL &&
111         _IS_SET(SrcDists, DIST_SRC_ALL) &&
112         _IS_SET(KernelDists, DIST_KERNEL_ALL);
113 }
114
115 static int
116 srcFlagCheck(dialogMenuItem *item)
117 {
118     return SrcDists;
119 }
120
121 static int
122 kernelFlagCheck(dialogMenuItem *item)
123 {
124     return KernelDists;
125 }
126
127 static int
128 checkTrue(dialogMenuItem *item)
129 {
130     return TRUE;
131 }
132
133 /* All the system menus go here.
134  *
135  * Hardcoded things like version number strings will disappear from
136  * these menus just as soon as I add the code for doing inline variable
137  * expansion.
138  */
139
140 DMenu MenuIndex = {
141     DMENU_NORMAL_TYPE,
142     "Glossary of functions",
143     "This menu contains an alphabetized index of the top level functions in\n"
144     "this program (sysinstall).  Invoke an option by pressing [SPACE] or\n"
145     "[ENTER].  To exit, use [TAB] to move to the Cancel button.",
146     "Use PageUp or PageDown to move through this menu faster!",
147     NULL,
148     { { " Anon FTP",            "Configure anonymous FTP logins.",      dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" },
149       { " Commit",              "Commit any pending actions (dangerous!)", NULL, installCustomCommit },
150       { " Country",             "Set the system's country",             NULL, configCountry },
151 #ifdef WITH_SYSCONS
152       { " Console settings",    "Customize system console behavior.",   NULL, dmenuSubmenu, NULL, &MenuSyscons },
153 #endif
154       { " Configure",           "The system configuration menu.",       NULL, dmenuSubmenu, NULL, &MenuConfigure },
155       { " Defaults, Load (FDD)","Load default settings from floppy.",   NULL, dispatch_load_floppy },
156       { " Defaults, Load (CD)", "Load default settings from CDROM.",    NULL, dispatch_load_cdrom },
157       { " Defaults, Load",      "Load default settings (all devices).", NULL, dispatch_load_menu },
158 #ifdef WITH_MICE
159       { " Device, Mouse",       "The mouse configuration menu.",        NULL, dmenuSubmenu, NULL, &MenuMouse },
160 #endif
161       { " Disklabel",           "The disk Label editor",                NULL, diskLabelEditor },
162       { " Dists, All",          "Root of the distribution tree.",       NULL, dmenuSubmenu, NULL, &MenuDistributions },
163       { " Dists, Basic",                "Basic FreeBSD distribution menu.",     NULL, dmenuSubmenu, NULL, &MenuSubDistributions },
164       { " Dists, Developer",    "Select developer's distribution.",     checkDistDeveloper, distSetDeveloper },
165       { " Dists, Src",          "Src distribution menu.",               NULL, dmenuSubmenu, NULL, &MenuSrcDistributions },
166       { " Dists, Kern Developer", "Select kernel developer's distribution.", checkDistKernDeveloper, distSetKernDeveloper },
167       { " Dists, User",         "Select average user distribution.",    checkDistUser, distSetUser },
168       { " Distributions, Adding", "Installing additional distribution sets", NULL, distExtractAll },
169       { " Documentation",       "Installation instructions, README, etc.", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
170       { " Doc, README",         "The distribution README file.",        NULL, dmenuDisplayFile, NULL, "README" },
171       { " Doc, Errata",         "The distribution errata.",     NULL, dmenuDisplayFile, NULL, "ERRATA" },
172       { " Doc, Hardware",       "The distribution hardware guide.",     NULL, dmenuDisplayFile, NULL, "HARDWARE" },
173       { " Doc, Copyright",      "The distribution copyright notices.",  NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
174       { " Doc, Release",                "The distribution release notes.",      NULL, dmenuDisplayFile, NULL, "RELNOTES" },
175       { " Doc, HTML",           "The HTML documentation menu.",         NULL, docBrowser },
176       { " Dump Vars",           "(debugging) dump out internal variables.", NULL, dump_variables },
177       { " Emergency shell",     "Start an Emergency Holographic shell.",        NULL, installFixitHoloShell },
178 #ifdef WITH_SLICES
179       { " Fdisk",               "The disk Partition Editor",            NULL, diskPartitionEditor },
180 #endif
181       { " Fixit",               "Repair mode with CDROM or fixit floppy.",      NULL, dmenuSubmenu, NULL, &MenuFixit },
182       { " FTP sites",           "The FTP mirror site listing.",         NULL, dmenuSubmenu, NULL, &MenuMediaFTP },
183       { " Gateway",             "Set flag to route packets between interfaces.", dmenuVarCheck, dmenuToggleVariable, NULL, "gateway=YES" },
184       { " HTML Docs",           "The HTML documentation menu",          NULL, docBrowser },
185       { " inetd Configuration", "Configure inetd and simple internet services.",        dmenuVarCheck, configInetd, NULL, "inetd_enable=YES" },
186       { " Install, Standard",   "A standard system installation.",      NULL, installStandard },
187       { " Install, Express",    "An express system installation.",      NULL, installExpress },
188       { " Install, Custom",     "The custom installation menu",         NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
189       { " Label",               "The disk Label editor",                NULL, diskLabelEditor },
190       { " Media",               "Top level media selection menu.",      NULL, dmenuSubmenu, NULL, &MenuMedia },
191       { " Media, NFS",          "Select NFS installation media.",       NULL, mediaSetNFS },
192       { " Media, Floppy",       "Select floppy installation media.",    NULL, mediaSetFloppy },
193       { " Media, CDROM/DVD",    "Select CDROM/DVD installation media.", NULL, mediaSetCDROM },
194       { " Media, DOS",          "Select DOS installation media.",       NULL, mediaSetDOS },
195       { " Media, UFS",          "Select UFS installation media.",       NULL, mediaSetUFS },
196       { " Media, FTP",          "Select FTP installation media.",       NULL, mediaSetFTP },
197       { " Media, FTP Passive",  "Select passive FTP installation media.", NULL, mediaSetFTPPassive },
198       { " Media, HTTP",         "Select FTP via HTTP proxy installation media.", NULL, mediaSetHTTP },
199       { " Network Interfaces",  "Configure network interfaces",         NULL, tcpMenuSelect },
200       { " Networking Services", "The network services menu.",           NULL, dmenuSubmenu, NULL, &MenuNetworking },
201       { " NFS, client",         "Set NFS client flag.",                 dmenuVarCheck, dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
202       { " NFS, server",         "Set NFS server flag.",                 dmenuVarCheck, configNFSServer, NULL, "nfs_server_enable=YES" },
203       { " NTP Menu",            "The NTP configuration menu.",          NULL, dmenuSubmenu, NULL, &MenuNTP },
204       { " Options",             "The options editor.",                  NULL, optionsEditor },
205       { " Packages",            "The packages collection",              NULL, configPackages },
206 #ifdef WITH_SLICES
207       { " Partition",           "The disk Slice (PC-style partition) Editor",   NULL, diskPartitionEditor },
208 #endif
209       { " PCNFSD",              "Run authentication server for PC-NFS.", dmenuVarCheck, configPCNFSD, NULL, "pcnfsd" },
210       { " Root Password",       "Set the system manager's password.",   NULL, dmenuSystemCommand, NULL, "passwd root" },
211       { " Router",              "Select routing daemon (default: routed)", NULL, configRouter, NULL, "router_enable" },
212       { " Security",            "Configure system security options", NULL, dmenuSubmenu, NULL, &MenuSecurity },
213 #ifdef WITH_SYSCONS
214       { " Syscons",             "The system console configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSyscons },
215 #ifndef PC98
216       { " Syscons, Font",       "The console screen font.",       NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
217 #endif
218       { " Syscons, Keymap",     "The console keymap configuration menu.", NULL, keymapMenuSelect },
219       { " Syscons, Keyrate",    "The console key rate configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
220       { " Syscons, Saver",      "The console screen saver configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
221 #ifndef PC98
222       { " Syscons, Screenmap",  "The console screenmap configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
223       { " Syscons, Ttys",       "The console terminal type menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsTtys },
224 #endif
225 #endif /* WITH_SYSCONS */
226       { " Time Zone",           "Set the system's time zone.",          NULL, dmenuSystemCommand, NULL, "tzsetup" },
227       { " TTYs",                "Configure system ttys.",               NULL, configEtcTtys, NULL, "ttys" },
228       { " Upgrade",             "Upgrade an existing system.",          NULL, installUpgrade },
229       { " Usage",               "Quick start - How to use this menu system.",   NULL, dmenuDisplayFile, NULL, "usage" },
230       { " User Management",     "Add user and group information.",      NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
231       { NULL } },
232 };
233
234 /* The country menu */
235 #include "countries.h"
236
237 /* The initial installation menu */
238 DMenu MenuInitial = {
239     DMENU_NORMAL_TYPE,
240     "sysinstall Main Menu",                             /* title */
241     "Welcome to the FreeBSD installation and configuration tool.  Please\n" /* prompt */
242     "select one of the options below by using the arrow keys or typing the\n"
243     "first character of the option name you're interested in.  Invoke an\n"
244     "option with [SPACE] or [ENTER].  To exit, use [TAB] to move to Exit.", 
245     NULL,
246     NULL,
247     { { " Select " },
248       { "X Exit Install",       NULL, NULL, dmenuExit },
249       { " Usage",       "Quick start - How to use this menu system",    NULL, dmenuDisplayFile, NULL, "usage" },
250       { "Standard",     "Begin a standard installation (recommended)",  NULL, installStandard },
251       { "Express",      "Begin a quick installation (for experts)", NULL, installExpress },
252       { " Custom",      "Begin a custom installation (for experts)",    NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
253       { "Configure",    "Do post-install configuration of FreeBSD",     NULL, dmenuSubmenu, NULL, &MenuConfigure },
254       { "Doc",  "Installation instructions, README, etc.",      NULL, dmenuSubmenu, NULL, &MenuDocumentation },
255 #ifdef WITH_SYSCONS
256       { "Keymap",       "Select keyboard type",                         NULL, keymapMenuSelect },
257 #endif
258       { "Options",      "View/Set various installation options",        NULL, optionsEditor },
259       { "Fixit",        "Repair mode with CDROM/DVD/floppy or start shell",     NULL, dmenuSubmenu, NULL, &MenuFixit },
260       { "Upgrade",      "Upgrade an existing system",                   NULL, installUpgrade },
261       { "Load Config..","Load default install configuration",           NULL, dispatch_load_menu },
262       { "Index",        "Glossary of functions",                        NULL, dmenuSubmenu, NULL, &MenuIndex },
263       { NULL } },
264 };
265
266 /* The main documentation menu */
267 DMenu MenuDocumentation = {
268     DMENU_NORMAL_TYPE,
269     "FreeBSD Documentation Menu",
270     "If you are at all unsure about the configuration of your hardware\n"
271     "or are looking to build a system specifically for FreeBSD, read the\n"
272     "Hardware guide!  New users should also read the Install document for\n"
273     "a step-by-step tutorial on installing FreeBSD.  For general information,\n"
274     "consult the README file.",
275     "Confused?  Press F1 for help.",
276     "usage",
277     { { "X Exit",       "Exit this menu (returning to previous)",       NULL, dmenuExit },
278       { "1 README",     "A general description of FreeBSD.  Read this!", NULL, dmenuDisplayFile, NULL, "README" },
279       { "2 Errata",     "Late-breaking, post-release news.", NULL, dmenuDisplayFile, NULL, "ERRATA" },
280       { "3 Hardware",   "The FreeBSD survival guide for PC hardware.",  NULL, dmenuDisplayFile, NULL, "HARDWARE" },
281       { "4 Copyright",  "The FreeBSD Copyright notices.",               NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
282       { "5 Release"     ,"The release notes for this version of FreeBSD.", NULL, dmenuDisplayFile, NULL, "RELNOTES" },
283       { "6 Shortcuts",  "Creating shortcuts to sysinstall.",            NULL, dmenuDisplayFile, NULL, "shortcuts" },
284       { "7 HTML Docs",  "Go to the HTML documentation menu (post-install).", NULL, docBrowser },
285       { NULL } },
286 };
287
288 #ifdef WITH_MICE
289 DMenu MenuMouseType = {
290     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
291 #ifdef PC98
292     "Select a protocol type for your mouse",
293     "If your mouse is attached to the bus mouse port, you should always choose\n"
294     "\"Auto\", regardless of the model and the brand of the mouse.  All other\n"
295     "protocol types are for serial mice and should not be used with the bus\n"
296     "mouse.  If you have a serial mouse and are not sure about its protocol,\n"
297     "you should also try \"Auto\".  It may not work for the serial mouse if the\n"
298     "mouse does not support the PnP standard.  But, it won't hurt.  Many\n"
299     "2-button serial mice are compatible with \"Microsoft\" or \"MouseMan\".\n"
300     "3-button serial mice may be compatible with \"MouseSystems\" or \"MouseMan\".\n"
301     "If the serial mouse has a wheel, it may be compatible with \"IntelliMouse\".",
302     NULL,
303     NULL,
304     { { "1 Auto",       "Bus mouse or PnP serial mouse",        
305         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=auto" },
306 #else
307     "Select a protocol type for your mouse",
308     "If your mouse is attached to the PS/2 mouse port or the bus mouse port,\n"
309     "you should always choose \"Auto\", regardless of the model and the brand\n"
310     "of the mouse.  All other protocol types are for serial mice and should\n"
311     "not be used with the PS/2 port mouse or the bus mouse.  If you have\n"
312     "a serial mouse and are not sure about its protocol, you should also try\n"
313     "\"Auto\".  It may not work for the serial mouse if the mouse does not\n"
314     "support the PnP standard.  But, it won't hurt.  Many 2-button serial mice\n"
315     "are compatible with \"Microsoft\" or \"MouseMan\".  3-button serial mice\n"
316     "may be compatible with \"MouseSystems\" or \"MouseMan\".  If the serial\n"
317     "mouse has a wheel, it may be compatible with \"IntelliMouse\".",
318     NULL,
319     NULL,
320     { { "1 Auto",       "Bus mouse, PS/2 style mouse or PnP serial mouse",      
321         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=auto" },
322 #endif /* PC98 */
323       { "2 GlidePoint", "ALPS GlidePoint pad (serial)",
324         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=glidepoint" },
325       { "3 Hitachi","Hitachi tablet (serial)",
326         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmhittab" },
327       { "4 IntelliMouse",       "Microsoft IntelliMouse (serial)",
328         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=intellimouse" },
329       { "5 Logitech",   "Logitech protocol (old models) (serial)",
330         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=logitech" },
331       { "6 Microsoft",  "Microsoft protocol (serial)",
332         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=microsoft" },
333       { "7 MM Series","MM Series protocol (serial)",
334         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmseries" },
335       { "8 MouseMan",   "Logitech MouseMan/TrackMan models (serial)",
336         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mouseman" },
337       { "9 MouseSystems",       "MouseSystems protocol (serial)",
338         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mousesystems" },
339       { "A ThinkingMouse","Kensington ThinkingMouse (serial)",
340         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=thinkingmouse" },
341       { NULL } },
342 };
343
344 #ifdef PC98
345 DMenu MenuMousePort = {
346     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
347     "Select your mouse port from the following menu",
348     "The built-in pointing device of laptop/notebook computers is usually\n"
349     "a BusMouse style device.",
350     NULL,
351     NULL,
352     {
353       { "1 BusMouse",   "PC-98x1 bus mouse (/dev/mse0)", 
354         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/mse0" },
355       { "2 COM1",       "Serial mouse on COM1 (/dev/cuad0)",
356         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad0" },
357       { "3 COM2",       "Serial mouse on COM2 (/dev/cuad1)",
358         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad1" },
359       { NULL } },
360 };
361 #else
362 DMenu MenuMousePort = {
363     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
364     "Select your mouse port from the following menu",
365     "The built-in pointing device of laptop/notebook computers is usually\n"
366     "a PS/2 style device.",
367     NULL,
368     NULL,
369     { { "1 PS/2",       "PS/2 style mouse (/dev/psm0)", 
370         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/psm0" },
371       { "2 COM1",       "Serial mouse on COM1 (/dev/cuad0)",
372         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad0" },
373       { "3 COM2",       "Serial mouse on COM2 (/dev/cuad1)",
374         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad1" },
375       { "4 COM3",       "Serial mouse on COM3 (/dev/cuad2)",
376         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad2" },
377       { "5 COM4",       "Serial mouse on COM4 (/dev/cuad3)", 
378         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad3" },
379       { "6 BusMouse",   "Logitech, ATI or MS bus mouse (/dev/mse0)", 
380         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/mse0" },
381       { NULL } },
382 };
383 #endif /* PC98 */
384
385 DMenu MenuMouse = {
386     DMENU_NORMAL_TYPE,
387     "Please configure your mouse",
388     "You can cut and paste text in the text console by running the mouse\n"
389     "daemon.  Specify a port and a protocol type of your mouse and enable\n"
390     "the mouse daemon.  If you don't want this feature, select 6 to disable\n"
391     "the daemon.\n"
392     "Once you've enabled the mouse daemon, you can specify \"/dev/sysmouse\"\n"
393     "as your mouse device and \"SysMouse\" or \"MouseSystems\" as mouse\n"
394     "protocol when running the X configuration utility (see Configuration\n"
395     "menu).",
396     NULL,
397     NULL,
398     { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
399       { "2 Enable",     "Test and run the mouse daemon", NULL, mousedTest, NULL, NULL },
400       { "3 Type",       "Select mouse protocol type", NULL, dmenuSubmenu, NULL, &MenuMouseType },
401       { "4 Port",       "Select mouse port", NULL, dmenuSubmenu, NULL, &MenuMousePort },
402       { "5 Flags",      "Set additional flags", dmenuVarCheck, setMouseFlags,
403         NULL, VAR_MOUSED_FLAGS "=" },
404       { "6 Disable",    "Disable the mouse daemon", NULL, mousedDisable, NULL, NULL },
405       { NULL } },
406 };
407 #endif /* WITH_MICE */
408
409 DMenu MenuMediaCDROM = {
410     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
411     "Choose a CD/DVD type",
412     "FreeBSD can be installed directly from a CD/DVD containing a valid\n"
413     "FreeBSD distribution.  If you are seeing this menu it is because\n"
414     "more than one CD/DVD drive was found on your system.  Please select one\n"
415     "of the following CD/DVD drives as your installation drive.",
416     NULL,
417     NULL,
418     { { NULL } },
419 };
420
421 DMenu MenuMediaFloppy = {
422     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
423     "Choose a Floppy drive",
424     "You have more than one floppy drive.  Please choose which drive\n"
425     "you would like to use.",
426     NULL,
427     NULL,
428     { { NULL } },
429 };
430
431 DMenu MenuMediaDOS = {
432     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
433     "Choose a DOS partition",
434     "FreeBSD can be installed directly from a DOS partition\n"
435     "assuming, of course, that you have copied the relevant\n"
436     "distributions into your DOS partition before starting this\n"
437     "installation.  If this is not the case then you should reboot\n"
438     "DOS at this time and copy the distributions you wish to install\n"
439     "into a \"FREEBSD\" subdirectory on one of your DOS partitions.\n"
440     "Otherwise, please select the DOS partition containing the FreeBSD\n"
441     "distribution files.",
442     NULL,
443     NULL,
444     { { NULL } },
445 };
446
447 DMenu MenuMediaFTP = {
448     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
449     "Please select a FreeBSD FTP distribution site",
450     "Please select the site closest to you or \"other\" if you'd like to\n"
451     "specify a different choice.  Also note that not every site listed here\n"
452     "carries more than the base distribution kits. Only Primary sites are\n"
453     "guaranteed to carry the full range of possible distributions.",
454     "Select a site that's close!",
455     NULL,
456     { { "Main Site",    "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
457         VAR_FTP_PATH "=ftp://ftp.freebsd.org" },
458       { "URL", "Specify some other ftp site by URL", NULL, dmenuSetVariable, NULL,
459         VAR_FTP_PATH "=other" },
460       { "Snapshots Server Japan", "snapshots.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
461         VAR_FTP_PATH "=ftp://snapshots.jp.freebsd.org" },
462       { "Snapshots Server Sweden", "snapshots.se.freebsd.org", NULL, dmenuSetVariable, NULL,
463         VAR_FTP_PATH "=ftp://snapshots.se.freebsd.org" },
464
465       { "IPv6 Main Site", "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
466         VAR_FTP_PATH "=ftp://ftp.freebsd.org" },
467       { " IPv6 Ireland", "ftp3.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
468         VAR_FTP_PATH "=ftp://ftp3.ie.freebsd.org" },
469       { " IPv6 Israel", "ftp.il.freebsd.org", NULL, dmenuSetVariable, NULL,
470         VAR_FTP_PATH "=ftp://ftp.il.freebsd.org" },
471       { " IPv6 Japan", "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
472         VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
473       { " IPv6 USA", "ftp4.us.freebsd.org", NULL, dmenuSetVariable, NULL,
474         VAR_FTP_PATH "=ftp://ftp4.us.freebsd.org" },
475       { " IPv6 Turkey", "ftp2.tr.freebsd.org", NULL, dmenuSetVariable, NULL,
476         VAR_FTP_PATH "=ftp://ftp2.tr.freebsd.org" },
477
478       { "Primary",      "ftp1.freebsd.org", NULL, dmenuSetVariable, NULL,
479         VAR_FTP_PATH "=ftp://ftp1.freebsd.org" },
480       { " Primary #2",  "ftp2.freebsd.org", NULL, dmenuSetVariable, NULL,
481         VAR_FTP_PATH "=ftp://ftp2.freebsd.org" },
482       { " Primary #3",  "ftp3.freebsd.org", NULL, dmenuSetVariable, NULL,
483         VAR_FTP_PATH "=ftp://ftp3.freebsd.org" },
484       { " Primary #4",  "ftp4.freebsd.org", NULL, dmenuSetVariable, NULL,
485         VAR_FTP_PATH "=ftp://ftp4.freebsd.org" },
486       { " Primary #5",  "ftp5.freebsd.org", NULL, dmenuSetVariable, NULL,
487         VAR_FTP_PATH "=ftp://ftp5.freebsd.org" },
488       { " Primary #6",  "ftp6.freebsd.org", NULL, dmenuSetVariable, NULL,
489         VAR_FTP_PATH "=ftp://ftp6.freebsd.org" },
490       { " Primary #7",  "ftp7.freebsd.org", NULL, dmenuSetVariable, NULL,
491         VAR_FTP_PATH "=ftp://ftp7.freebsd.org" },
492       { " Primary #8",  "ftp8.freebsd.org", NULL, dmenuSetVariable, NULL,
493         VAR_FTP_PATH "=ftp://ftp8.freebsd.org" },
494       { " Primary #9",  "ftp9.freebsd.org", NULL, dmenuSetVariable, NULL,
495         VAR_FTP_PATH "=ftp://ftp9.freebsd.org" },
496       { " Primary #10", "ftp10.freebsd.org", NULL, dmenuSetVariable, NULL,
497         VAR_FTP_PATH "=ftp://ftp10.freebsd.org" },
498       { " Primary #11", "ftp11.freebsd.org", NULL, dmenuSetVariable, NULL,
499         VAR_FTP_PATH "=ftp://ftp11.freebsd.org" },
500       { " Primary #12", "ftp12.freebsd.org", NULL, dmenuSetVariable, NULL,
501         VAR_FTP_PATH "=ftp://ftp12.freebsd.org" },
502       { " Primary #13", "ftp13.freebsd.org", NULL, dmenuSetVariable, NULL,
503         VAR_FTP_PATH "=ftp://ftp13.freebsd.org" },
504       { " Primary #14", "ftp14.freebsd.org", NULL, dmenuSetVariable, NULL,
505         VAR_FTP_PATH "=ftp://ftp14.freebsd.org" },
506
507       { "Argentina",    "ftp.ar.freebsd.org", NULL, dmenuSetVariable, NULL,
508         VAR_FTP_PATH "=ftp://ftp.ar.freebsd.org" },
509
510       { "Australia",    "ftp.au.freebsd.org", NULL, dmenuSetVariable, NULL,
511         VAR_FTP_PATH "=ftp://ftp.au.freebsd.org" },
512       { " Australia #2","ftp2.au.freebsd.org", NULL, dmenuSetVariable, NULL,
513         VAR_FTP_PATH "=ftp://ftp2.au.freebsd.org" },
514       { " Australia #3","ftp3.au.freebsd.org", NULL, dmenuSetVariable, NULL,
515         VAR_FTP_PATH "=ftp://ftp3.au.freebsd.org" },
516
517       { "Austria","ftp.at.freebsd.org", NULL, dmenuSetVariable, NULL,
518         VAR_FTP_PATH "=ftp://ftp.at.freebsd.org" },
519       { " Austria #2","ftp2.at.freebsd.org", NULL, dmenuSetVariable, NULL,
520         VAR_FTP_PATH "=ftp://ftp2.at.freebsd.org" },
521
522       { "Brazil",       "ftp.br.freebsd.org", NULL, dmenuSetVariable, NULL,
523         VAR_FTP_PATH "=ftp://ftp.br.freebsd.org" },
524       { " Brazil #2",   "ftp2.br.freebsd.org", NULL, dmenuSetVariable, NULL,
525         VAR_FTP_PATH "=ftp://ftp2.br.freebsd.org" },
526       { " Brazil #3",   "ftp3.br.freebsd.org", NULL, dmenuSetVariable, NULL,
527         VAR_FTP_PATH "=ftp://ftp3.br.freebsd.org" },
528       { " Brazil #4",   "ftp4.br.freebsd.org", NULL, dmenuSetVariable, NULL,
529         VAR_FTP_PATH "=ftp://ftp4.br.freebsd.org" },
530       { " Brazil #5",   "ftp5.br.freebsd.org", NULL, dmenuSetVariable, NULL,
531         VAR_FTP_PATH "=ftp://ftp5.br.freebsd.org" },
532       { " Brazil #6",   "ftp6.br.freebsd.org", NULL, dmenuSetVariable, NULL,
533         VAR_FTP_PATH "=ftp://ftp6.br.freebsd.org" },
534       { " Brazil #7",   "ftp7.br.freebsd.org", NULL, dmenuSetVariable, NULL,
535         VAR_FTP_PATH "=ftp://ftp7.br.freebsd.org" },
536
537       { "Canada",       "ftp.ca.freebsd.org", NULL, dmenuSetVariable, NULL,
538         VAR_FTP_PATH "=ftp://ftp.ca.freebsd.org" },
539
540       { "China",        "ftp.cn.freebsd.org", NULL, dmenuSetVariable, NULL,
541         VAR_FTP_PATH "=ftp://ftp.cn.freebsd.org" },
542       { " China #2",    "ftp2.cn.freebsd.org", NULL, dmenuSetVariable, NULL,
543         VAR_FTP_PATH "=ftp://ftp2.cn.freebsd.org" },
544
545       { "Croatia",      "ftp.hr.freebsd.org", NULL, dmenuSetVariable, NULL,
546         VAR_FTP_PATH "=ftp://ftp.hr.freebsd.org" },
547
548       { "Czech Republic", "ftp.cz.freebsd.org", NULL, dmenuSetVariable, NULL,
549         VAR_FTP_PATH "=ftp://ftp.cz.freebsd.org" },
550
551       { "Denmark",      "ftp.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
552         VAR_FTP_PATH "=ftp://ftp.dk.freebsd.org" },
553       { " Denmark #2",  "ftp2.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
554         VAR_FTP_PATH "=ftp://ftp2.dk.freebsd.org" },
555
556       { "Estonia",      "ftp.ee.freebsd.org", NULL, dmenuSetVariable, NULL,
557         VAR_FTP_PATH "=ftp://ftp.ee.freebsd.org" },
558
559       { "Finland",      "ftp.fi.freebsd.org", NULL, dmenuSetVariable, NULL,
560         VAR_FTP_PATH "=ftp://ftp.fi.freebsd.org" },
561
562       { "France",       "ftp.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
563         VAR_FTP_PATH "=ftp://ftp.fr.freebsd.org" },
564       { " France #2",   "ftp2.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
565         VAR_FTP_PATH "=ftp://ftp2.fr.freebsd.org" },
566       { " France #3",   "ftp3.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
567         VAR_FTP_PATH "=ftp://ftp3.fr.freebsd.org" },
568       { " France #5",   "ftp5.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
569         VAR_FTP_PATH "=ftp://ftp5.fr.freebsd.org" },
570       { " France #6",   "ftp6.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
571         VAR_FTP_PATH "=ftp://ftp6.fr.freebsd.org" },
572       { " France #8",   "ftp8.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
573         VAR_FTP_PATH "=ftp://ftp8.fr.freebsd.org" },
574
575       { "Germany",      "ftp.de.freebsd.org", NULL, dmenuSetVariable, NULL,
576         VAR_FTP_PATH "=ftp://ftp.de.freebsd.org" },
577       { " Germany #2",  "ftp2.de.freebsd.org", NULL, dmenuSetVariable, NULL,
578         VAR_FTP_PATH "=ftp://ftp2.de.freebsd.org" },
579       { " Germany #3",  "ftp3.de.freebsd.org", NULL, dmenuSetVariable, NULL,
580         VAR_FTP_PATH "=ftp://ftp3.de.freebsd.org" },
581       { " Germany #4",  "ftp4.de.freebsd.org", NULL, dmenuSetVariable, NULL,
582         VAR_FTP_PATH "=ftp://ftp4.de.freebsd.org" },
583       { " Germany #5",  "ftp5.de.freebsd.org", NULL, dmenuSetVariable, NULL,
584         VAR_FTP_PATH "=ftp://ftp5.de.freebsd.org" },
585       { " Germany #6",  "ftp6.de.freebsd.org", NULL, dmenuSetVariable, NULL,
586         VAR_FTP_PATH "=ftp://ftp6.de.freebsd.org" },
587       { " Germany #7",  "ftp7.de.freebsd.org", NULL, dmenuSetVariable, NULL,
588         VAR_FTP_PATH "=ftp://ftp7.de.freebsd.org" },
589       { " Germany #8",  "ftp8.de.freebsd.org", NULL, dmenuSetVariable, NULL,
590         VAR_FTP_PATH "=ftp://ftp8.de.freebsd.org" },
591
592       { "Greece",       "ftp.gr.freebsd.org", NULL, dmenuSetVariable, NULL,
593         VAR_FTP_PATH "=ftp://ftp.gr.freebsd.org" },
594       { " Greece #2",   "ftp2.gr.freebsd.org", NULL, dmenuSetVariable, NULL,
595         VAR_FTP_PATH "=ftp://ftp2.gr.freebsd.org" },
596
597       { "Hungary",     "ftp.hu.freebsd.org", NULL, dmenuSetVariable, NULL,
598         VAR_FTP_PATH "=ftp://ftp.hu.freebsd.org" },
599
600       { "Iceland",      "ftp.is.freebsd.org", NULL, dmenuSetVariable, NULL,
601         VAR_FTP_PATH "=ftp://ftp.is.freebsd.org" },
602
603       { "Ireland",      "ftp.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
604         VAR_FTP_PATH "=ftp://ftp.ie.freebsd.org" },
605       { " Ireland #2",  "ftp2.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
606         VAR_FTP_PATH "=ftp://ftp2.ie.freebsd.org" },
607       { " Ireland #3",  "ftp3.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
608         VAR_FTP_PATH "=ftp://ftp3.ie.freebsd.org" },
609
610       { "Isreal",       "ftp.il.freebsd.org", NULL, dmenuSetVariable, NULL,
611         VAR_FTP_PATH "=ftp://ftp.il.freebsd.org" },
612
613       { "Italy",        "ftp.it.freebsd.org", NULL, dmenuSetVariable, NULL,
614         VAR_FTP_PATH "=ftp://ftp.it.freebsd.org" },
615
616       { "Japan",        "ftp.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
617         VAR_FTP_PATH "=ftp://ftp.jp.freebsd.org" },
618       { " Japan #2",    "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
619         VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
620       { " Japan #3",    "ftp3.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
621         VAR_FTP_PATH "=ftp://ftp3.jp.freebsd.org" },
622       { " Japan #4",    "ftp4.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
623         VAR_FTP_PATH "=ftp://ftp4.jp.freebsd.org" },
624       { " Japan #5",    "ftp5.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
625         VAR_FTP_PATH "=ftp://ftp5.jp.freebsd.org" },
626       { " Japan #6",    "ftp6.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
627         VAR_FTP_PATH "=ftp://ftp6.jp.freebsd.org" },
628       { " Japan #7",    "ftp7.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
629         VAR_FTP_PATH "=ftp://ftp7.jp.freebsd.org" },
630       { " Japan #8",    "ftp8.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
631         VAR_FTP_PATH "=ftp://ftp8.jp.freebsd.org" },
632       { " Japan #9",    "ftp9.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
633         VAR_FTP_PATH "=ftp://ftp9.jp.freebsd.org" },
634
635       { "Korea",        "ftp.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
636         VAR_FTP_PATH "=ftp://ftp.kr.freebsd.org" },
637       { " Korea #2",    "ftp2.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
638         VAR_FTP_PATH "=ftp://ftp2.kr.freebsd.org" },
639
640       { "Lithuania",    "ftp.lt.freebsd.org", NULL, dmenuSetVariable, NULL,
641         VAR_FTP_PATH "=ftp://ftp.lt.freebsd.org" },
642
643       { "Netherlands",  "ftp.nl.freebsd.org", NULL, dmenuSetVariable, NULL,
644         VAR_FTP_PATH "=ftp://ftp.nl.freebsd.org" },
645       { " Netherlands #2",      "ftp2.nl.freebsd.org", NULL, dmenuSetVariable, NULL,
646         VAR_FTP_PATH "=ftp://ftp2.nl.freebsd.org" },
647
648       { "Norway",       "ftp.no.freebsd.org", NULL, dmenuSetVariable, NULL,
649         VAR_FTP_PATH "=ftp://ftp.no.freebsd.org" },
650       { " Norway #3",   "ftp3.no.freebsd.org", NULL, dmenuSetVariable, NULL,
651         VAR_FTP_PATH "=ftp://ftp3.no.freebsd.org" },
652
653       { "Poland",       "ftp.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
654         VAR_FTP_PATH "=ftp://ftp.pl.freebsd.org" },
655       { " Poland #2",   "ftp2.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
656         VAR_FTP_PATH "=ftp://ftp2.pl.freebsd.org" },
657       { " Poland #5",   "ftp5.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
658         VAR_FTP_PATH "=ftp://ftp5.pl.freebsd.org" },
659
660       { "Portugal",     "ftp.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
661         VAR_FTP_PATH "=ftp://ftp.pt.freebsd.org" },
662       { " Portugal #2", "ftp2.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
663         VAR_FTP_PATH "=ftp://ftp2.pt.freebsd.org" },
664       { " Portugal #4", "ftp4.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
665         VAR_FTP_PATH "=ftp://ftp4.pt.freebsd.org" },
666
667       { "Romania",      "ftp.ro.freebsd.org", NULL, dmenuSetVariable, NULL,
668         VAR_FTP_PATH "=ftp://ftp.ro.freebsd.org" },
669
670       { "Russia",       "ftp.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
671         VAR_FTP_PATH "=ftp://ftp.ru.freebsd.org" },
672       { " Russia #2",   "ftp2.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
673         VAR_FTP_PATH "=ftp://ftp2.ru.freebsd.org" },
674       { " Russia #3",   "ftp3.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
675         VAR_FTP_PATH "=ftp://ftp3.ru.freebsd.org" },
676       { " Russia #4",   "ftp4.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
677         VAR_FTP_PATH "=ftp://ftp4.ru.freebsd.org" },
678
679       { "Singapore",    "ftp.sg.freebsd.org", NULL, dmenuSetVariable, NULL,
680         VAR_FTP_PATH "=ftp://ftp.sg.freebsd.org" },
681
682       { "Slovak Republic",      "ftp.sk.freebsd.org", NULL, dmenuSetVariable, NULL,
683         VAR_FTP_PATH "=ftp://ftp.sk.freebsd.org" },
684
685       { "Slovenia",     "ftp.si.freebsd.org", NULL, dmenuSetVariable, NULL,
686         VAR_FTP_PATH "=ftp://ftp.si.freebsd.org" },
687       { " Slovenia #2", "ftp2.si.freebsd.org", NULL, dmenuSetVariable, NULL,
688         VAR_FTP_PATH "=ftp://ftp2.si.freebsd.org" },
689
690       { "South Africa", "ftp.za.freebsd.org", NULL, dmenuSetVariable, NULL,
691         VAR_FTP_PATH "=ftp://ftp.za.freebsd.org" },
692       { " South Africa #2", "ftp2.za.freebsd.org", NULL, dmenuSetVariable, NULL,
693         VAR_FTP_PATH "=ftp://ftp2.za.freebsd.org" },
694       { " South Africa #3", "ftp3.za.freebsd.org", NULL, dmenuSetVariable, NULL,
695         VAR_FTP_PATH "=ftp://ftp3.za.freebsd.org" },
696       { " South Africa #4", "ftp4.za.freebsd.org", NULL, dmenuSetVariable, NULL,
697         VAR_FTP_PATH "=ftp://ftp4.za.freebsd.org" },
698
699       { "Spain",        "ftp.es.freebsd.org", NULL, dmenuSetVariable, NULL,
700         VAR_FTP_PATH "=ftp://ftp.es.freebsd.org" },
701       { " Spain #2",    "ftp2.es.freebsd.org", NULL, dmenuSetVariable, NULL,
702         VAR_FTP_PATH "=ftp://ftp2.es.freebsd.org" },
703       { " Spain #3",    "ftp3.es.freebsd.org", NULL, dmenuSetVariable, NULL,
704         VAR_FTP_PATH "=ftp://ftp3.es.freebsd.org" },
705
706       { "Sweden",       "ftp.se.freebsd.org", NULL, dmenuSetVariable, NULL,
707         VAR_FTP_PATH "=ftp://ftp.se.freebsd.org" },
708       { " Sweden #2",   "ftp2.se.freebsd.org", NULL, dmenuSetVariable, NULL,
709         VAR_FTP_PATH "=ftp://ftp2.se.freebsd.org" },
710       { " Sweden #3",   "ftp3.se.freebsd.org", NULL, dmenuSetVariable, NULL,
711         VAR_FTP_PATH "=ftp://ftp3.se.freebsd.org" },
712       { " Sweden #5",   "ftp5.se.freebsd.org", NULL, dmenuSetVariable, NULL,
713         VAR_FTP_PATH "=ftp://ftp5.se.freebsd.org" },
714
715       { "Switzerland",  "ftp.ch.freebsd.org", NULL, dmenuSetVariable, NULL,
716         VAR_FTP_PATH "=ftp://ftp.ch.freebsd.org" },
717       { " Switzerland #2",      "ftp2.ch.freebsd.org", NULL, dmenuSetVariable, NULL,
718         VAR_FTP_PATH "=ftp://ftp2.ch.freebsd.org" },
719
720       { "Taiwan",       "ftp.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
721         VAR_FTP_PATH "=ftp://ftp.tw.freebsd.org" },
722       { " Taiwan #2",   "ftp2.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
723         VAR_FTP_PATH "=ftp://ftp2.tw.freebsd.org" },
724       { " Taiwan #3",   "ftp3.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
725         VAR_FTP_PATH "=ftp://ftp3.tw.freebsd.org" },
726       { " Taiwan #4",   "ftp4.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
727         VAR_FTP_PATH "=ftp://ftp4.tw.freebsd.org" },
728       { " Taiwan #6",   "ftp6.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
729         VAR_FTP_PATH "=ftp://ftp6.tw.freebsd.org" },
730       { " Taiwan #11",   "ftp11.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
731         VAR_FTP_PATH "=ftp://ftp11.tw.freebsd.org" },
732
733       { "Turkey",       "ftp.tr.freebsd.org", NULL, dmenuSetVariable, NULL,
734         VAR_FTP_PATH "=ftp://ftp.tr.freebsd.org" },
735       { " Turkey #2",   "ftp2.tr.freebsd.org", NULL, dmenuSetVariable, NULL,
736         VAR_FTP_PATH "=ftp://ftp.tr.freebsd.org" },
737
738       { "UK",           "ftp.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
739         VAR_FTP_PATH "=ftp://ftp.uk.freebsd.org" },
740       { " UK #2",       "ftp2.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
741         VAR_FTP_PATH "=ftp://ftp2.uk.freebsd.org" },
742       { " UK #3",       "ftp3.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
743         VAR_FTP_PATH "=ftp://ftp3.uk.freebsd.org" },
744       { " UK #4",       "ftp4.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
745         VAR_FTP_PATH "=ftp://ftp4.uk.freebsd.org" },
746       { " UK #5",       "ftp5.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
747         VAR_FTP_PATH "=ftp://ftp5.uk.freebsd.org" },
748       { " UK #6",       "ftp6.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
749         VAR_FTP_PATH "=ftp://ftp6.uk.freebsd.org" },
750
751       { "Ukraine",      "ftp.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
752         VAR_FTP_PATH "=ftp://ftp.ua.freebsd.org" },
753       { " Ukraine #2",  "ftp2.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
754         VAR_FTP_PATH "=ftp://ftp2.ua.freebsd.org" },
755       { " Ukraine #5",  "ftp5.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
756         VAR_FTP_PATH "=ftp://ftp5.ua.freebsd.org" },
757       { " Ukraine #6",  "ftp6.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
758         VAR_FTP_PATH "=ftp://ftp6.ua.freebsd.org" },
759       { " Ukraine #7",  "ftp7.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
760         VAR_FTP_PATH "=ftp://ftp7.ua.freebsd.org" },
761       { " Ukraine #8",  "ftp8.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
762         VAR_FTP_PATH "=ftp://ftp8.ua.freebsd.org" },
763
764       { "USA #1",       "ftp1.us.freebsd.org", NULL, dmenuSetVariable, NULL,
765         VAR_FTP_PATH "=ftp://ftp1.us.freebsd.org" },
766       { " USA #2",      "ftp2.us.freebsd.org", NULL, dmenuSetVariable, NULL,
767         VAR_FTP_PATH "=ftp://ftp2.us.freebsd.org" },
768       { " USA #3",      "ftp3.us.freebsd.org", NULL, dmenuSetVariable, NULL,
769         VAR_FTP_PATH "=ftp://ftp3.us.freebsd.org" },
770       { " USA #4",      "ftp4.us.freebsd.org", NULL, dmenuSetVariable, NULL,
771         VAR_FTP_PATH "=ftp://ftp4.us.freebsd.org" },
772       { " USA #5",      "ftp5.us.freebsd.org", NULL, dmenuSetVariable, NULL,
773         VAR_FTP_PATH "=ftp://ftp5.us.freebsd.org" },
774       { " USA #6",      "ftp6.us.freebsd.org", NULL, dmenuSetVariable, NULL,
775         VAR_FTP_PATH "=ftp://ftp6.us.freebsd.org" },
776       { " USA #7",      "ftp7.us.freebsd.org", NULL, dmenuSetVariable, NULL,
777         VAR_FTP_PATH "=ftp://ftp7.us.freebsd.org" },
778       { " USA #8",      "ftp8.us.freebsd.org", NULL, dmenuSetVariable, NULL,
779         VAR_FTP_PATH "=ftp://ftp8.us.freebsd.org" },
780       { " USA #9",      "ftp9.us.freebsd.org", NULL, dmenuSetVariable, NULL,
781         VAR_FTP_PATH "=ftp://ftp9.us.freebsd.org" },
782       { " USA #10",     "ftp10.us.freebsd.org", NULL, dmenuSetVariable, NULL,
783         VAR_FTP_PATH "=ftp://ftp10.us.freebsd.org" },
784       { " USA #11",     "ftp11.us.freebsd.org", NULL, dmenuSetVariable, NULL,
785         VAR_FTP_PATH "=ftp://ftp11.us.freebsd.org" },
786       { " USA #12",     "ftp12.us.freebsd.org", NULL, dmenuSetVariable, NULL,
787         VAR_FTP_PATH "=ftp://ftp12.us.freebsd.org" },
788       { " USA #13",     "ftp13.us.freebsd.org", NULL, dmenuSetVariable, NULL,
789         VAR_FTP_PATH "=ftp://ftp13.us.freebsd.org" },
790       { " USA #14",     "ftp14.us.freebsd.org", NULL, dmenuSetVariable, NULL,
791         VAR_FTP_PATH "=ftp://ftp14.us.freebsd.org" },
792       { " USA #15",     "ftp15.us.freebsd.org", NULL, dmenuSetVariable, NULL,
793         VAR_FTP_PATH "=ftp://ftp15.us.freebsd.org" },
794
795       { NULL } }
796 };
797
798 DMenu MenuNetworkDevice = {
799     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
800     "Network interface information required",
801     "If you are using PPP over a serial device, as opposed to a direct\n"
802     "ethernet connection, then you may first need to dial your Internet\n"
803     "Service Provider using the ppp utility we provide for that purpose.\n"
804     "If you're using SLIP over a serial device then the expectation is\n"
805     "that you have a HARDWIRED connection.\n\n"
806     "You can also install over a parallel port using a special \"laplink\"\n"
807     "cable to another machine running FreeBSD.",
808     "Press F1 to read network configuration manual",
809     "network_device",
810     { { NULL } },
811 };
812
813 /* Prototype KLD load menu */
814 DMenu MenuKLD = {
815     DMENU_NORMAL_TYPE,
816     "KLD Menu",
817     "Load a KLD from a floppy\n",
818     NULL,
819     NULL,
820     { { NULL } },
821 };
822
823 /* Prototype config file load menu */
824 DMenu MenuConfig = {
825     DMENU_NORMAL_TYPE,
826     "Config Menu",
827     "Please select the device to load your configuration file from.\n"
828     "Note that a USB key will show up as daNs1.",
829     NULL,
830     NULL,
831     { { NULL } },
832 };
833
834 /* The media selection menu */
835 DMenu MenuMedia = {
836     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
837     "Choose Installation Media",
838     "FreeBSD can be installed from a variety of different installation\n"
839     "media, ranging from floppies to an Internet FTP server.  If you're\n"
840     "installing FreeBSD from a supported CD/DVD drive then this is generally\n"
841     "the best media to use if you have no overriding reason for using other\n"
842     "media.",
843     "Press F1 for more information on the various media types",
844     "media",
845     { { "1 CD/DVD",             "Install from a FreeBSD CD/DVD",        NULL, mediaSetCDROM },
846       { "2 FTP",                "Install from an FTP server",           NULL, mediaSetFTPActive },
847       { "3 FTP Passive",        "Install from an FTP server through a firewall", NULL, mediaSetFTPPassive },
848       { "4 HTTP",               "Install from an FTP server through a http proxy", NULL, mediaSetHTTP },
849       { "5 DOS",                "Install from a DOS partition",         NULL, mediaSetDOS },
850       { "6 NFS",                "Install over NFS",                     NULL, mediaSetNFS },
851       { "7 File System",        "Install from an existing filesystem",  NULL, mediaSetUFS },
852       { "8 Floppy",             "Install from a floppy disk set",       NULL, mediaSetFloppy },
853       { "X Options",            "Go to the Options screen",             NULL, optionsEditor },
854       { NULL } },
855 };
856
857 /* The distributions menu */
858 DMenu MenuDistributions = {
859     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
860     "Choose Distributions",
861     "As a convenience, we provide several \"canned\" distribution sets.\n"
862     "These select what we consider to be the most reasonable defaults for the\n"
863     "type of system in question.  If you would prefer to pick and choose the\n"
864     "list of distributions yourself, simply select \"Custom\".  You can also\n"
865     "pick a canned distribution set and then fine-tune it with the Custom item.\n\n"
866     "Choose an item by pressing [SPACE] or [ENTER].  When finished, choose the\n"
867     "Exit item or move to the OK button with [TAB].",
868     "Press F1 for more information on these options.",
869     "distributions",
870     { { "X Exit", "Exit this menu (returning to previous)",
871         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
872       { "All",                  "All system sources and binaries",
873         checkDistEverything,    distSetEverything, NULL, NULL, ' ', ' ', ' ' },
874       { "Reset",                "Reset selected distribution list to nothing",
875         NULL,                   distReset, NULL, NULL, ' ', ' ', ' ' },
876       { "4 Developer",          "Full sources, binaries and doc but no games", 
877         checkDistDeveloper,     distSetDeveloper },
878       { "5 Kern-Developer",     "Full binaries and doc, kernel sources only",
879         checkDistKernDeveloper, distSetKernDeveloper },
880       { "6 User",               "Average user - binaries and doc only",
881         checkDistUser,          distSetUser },
882       { "A Minimal",            "The smallest configuration possible",
883         checkDistMinimum,       distSetMinimum },
884       { "B Custom",             "Specify your own distribution set",
885         NULL,                   dmenuSubmenu, NULL, &MenuSubDistributions, '>', '>', '>' },
886       { NULL } },
887 };
888
889 DMenu MenuSubDistributions = {
890     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
891     "Select the distributions you wish to install.",
892     "Please check off the distributions you wish to install.  At the\n"
893     "very minimum, this should be \"base\".",
894     NULL,
895     NULL,
896     { { "X Exit", "Exit this menu (returning to previous)",
897         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
898       { "All",          "All system sources and binaries",
899         NULL, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
900       { "Reset",        "Reset all of the below",
901         NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
902       { " base",        "Binary base distribution (required)",
903         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_BASE },
904       { " kernels",     "Binary kernel distributions (required)",
905         kernelFlagCheck,distSetKernel },
906       { " dict",        "Spelling checker dictionary files",
907         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DICT },
908       { " doc",         "Miscellaneous FreeBSD online docs",
909         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DOC },
910       { " games",       "Games (non-commercial)",
911         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_GAMES },
912       { " info",        "GNU info files",
913         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_INFO },
914 #ifdef __amd64__
915       { " lib32",       "32-bit runtime compatibility libraries",
916         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LIB32 },
917 #endif
918       { " man",         "System manual pages - recommended",
919         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_MANPAGES },
920       { " catman",      "Preformatted system manual pages",
921         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_CATPAGES },
922       { " proflibs",    "Profiled versions of the libraries",
923         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PROFLIBS },
924       { " src",         "Sources for everything",
925         srcFlagCheck,   distSetSrc },
926       { " ports",       "The FreeBSD Ports collection",
927         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PORTS },
928       { " local",       "Local additions collection",
929         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LOCAL},
930       { NULL } },
931 };
932
933 DMenu MenuKernelDistributions = {
934     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
935     "Select the operating system kernels you wish to install.",
936     "Please check off those kernels you wish to install.\n",
937     NULL,
938     NULL,
939     { { "X Exit", "Exit this menu (returning to previous)",
940         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
941       { "All",          "Select all of the below",
942         NULL,           setKernel, NULL, NULL, ' ', ' ', ' ' },
943       { "Reset",        "Reset all of the below",
944         NULL,           clearKernel, NULL, NULL, ' ', ' ', ' ' },
945       { " GENERIC",     "GENERIC kernel configuration",
946         dmenuFlagCheck, dmenuSetFlag, NULL, &KernelDists, '[', 'X', ']', DIST_KERNEL_GENERIC },
947 #ifdef WITH_SMP
948       { " SMP",         "GENERIC symmetric multiprocessor kernel configuration",
949         dmenuFlagCheck, dmenuSetFlag,   NULL, &KernelDists, '[', 'X', ']', DIST_KERNEL_SMP },
950 #endif
951       { NULL } },
952 };
953
954 DMenu MenuSrcDistributions = {
955     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
956     "Select the sub-components of src you wish to install.",
957     "Please check off those portions of the FreeBSD source tree\n"
958     "you wish to install.",
959     NULL,
960     NULL,
961     { { "X Exit", "Exit this menu (returning to previous)",
962         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
963       { "All",          "Select all of the below",
964         NULL,           setSrc, NULL, NULL, ' ', ' ', ' ' },
965       { "Reset",        "Reset all of the below",
966         NULL,           clearSrc, NULL, NULL, ' ', ' ', ' ' },
967       { " base",        "top-level files in /usr/src",
968         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BASE },
969       { " cddl",        "/usr/src/cddl (software from Sun)",
970         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CDDL },
971       { " contrib",     "/usr/src/contrib (contributed software)",
972         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CONTRIB },
973       { " crypto",      "/usr/src/crypto (contrib encryption sources)",
974         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SCRYPTO },
975       { " gnu",         "/usr/src/gnu (software from the GNU Project)",
976         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GNU },
977       { " etc",         "/usr/src/etc (miscellaneous system files)",
978         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_ETC },
979       { " games",       "/usr/src/games (the obvious!)",
980         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GAMES },
981       { " include",     "/usr/src/include (header files)",
982         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_INCLUDE },
983       { " krb5",        "/usr/src/kerberos5 (sources for Kerberos5)",
984         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SKERBEROS5 },
985       { " lib",         "/usr/src/lib (system libraries)",
986         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIB },
987       { " libexec",     "/usr/src/libexec (system programs)",
988         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIBEXEC },
989       { " release",     "/usr/src/release (release-generation tools)",
990         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_RELEASE },
991       { " rescue",      "/usr/src/rescue (static rescue tools)",
992         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_RESCUE },
993       { " bin",         "/usr/src/bin (system binaries)",
994         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BIN },
995       { " sbin",        "/usr/src/sbin (system binaries)",
996         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SBIN },
997       { " secure",      "/usr/src/secure (BSD encryption sources)",
998         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SSECURE },
999       { " share",       "/usr/src/share (documents and shared files)",
1000         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SHARE },
1001       { " sys",         "/usr/src/sys (FreeBSD kernel)",
1002         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SYS },
1003       { " tools",       "/usr/src/tools (miscellaneous tools)",
1004         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_TOOLS },
1005       { " ubin",        "/usr/src/usr.bin (user binaries)",
1006         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_UBIN },
1007       { " usbin",       "/usr/src/usr.sbin (aux system binaries)",
1008         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_USBIN },
1009       { NULL } },
1010 };
1011
1012 DMenu MenuDiskDevices = {
1013     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1014     "Select Drive(s)",
1015     "Please select the drive, or drives, on which you wish to perform\n"
1016     "this operation.  If you are attempting to install a boot partition\n"
1017     "on a drive other than the first one or have multiple operating\n"
1018     "systems on your machine, you will have the option to install a boot\n"
1019     "manager later.  To select a drive, use the arrow keys to move to it\n"
1020     "and press [SPACE] or [ENTER].  To de-select it, press it again.\n\n"
1021     "Use [TAB] to get to the buttons and leave this menu.",
1022     "Press F1 for important information regarding disk geometry!",
1023     "drives",
1024     { { NULL } },
1025 };
1026
1027 DMenu MenuHTMLDoc = {
1028     DMENU_NORMAL_TYPE,
1029     "Select HTML Documentation pointer",
1030     "Please select the body of documentation you're interested in, the main\n"
1031     "ones right now being the FAQ and the Handbook.  You can also choose \"other\"\n"
1032     "to enter an arbitrary URL for browsing.",
1033     "Press F1 for more help on what you see here.",
1034     "html",
1035     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
1036       { "2 Handbook",   "The FreeBSD Handbook.",                                NULL, docShowDocument },
1037       { "3 FAQ",        "The Frequently Asked Questions guide.",                NULL, docShowDocument },
1038       { "4 Home",       "The Home Pages for the FreeBSD Project (requires net)", NULL, docShowDocument },
1039       { "5 Other",      "Enter a URL.",                                         NULL, docShowDocument },
1040       { NULL } },
1041 };
1042
1043 /* The main installation menu */
1044 DMenu MenuInstallCustom = {
1045     DMENU_NORMAL_TYPE,
1046     "Choose Custom Installation Options",
1047     "This is the custom installation menu. You may use this menu to specify\n"
1048     "details on the type of distribution you wish to have, where you wish\n"
1049     "to install it from and how you wish to allocate disk storage to FreeBSD.",
1050     NULL,
1051     NULL,
1052     { { "X Exit",               "Exit this menu (returning to previous)", NULL, dmenuExit },
1053       { "2 Options",            "View/Set various installation options", NULL, optionsEditor },
1054 #ifndef WITH_SLICES
1055       { "3 Label",              "Label disk partitions",                NULL, diskLabelEditor },
1056       { "4 Distributions",      "Select distribution(s) to extract",    NULL, dmenuSubmenu, NULL, &MenuDistributions },
1057       { "5 Media",              "Choose the installation media type",   NULL, dmenuSubmenu, NULL, &MenuMedia },
1058       { "6 Commit",             "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1059 #else
1060       { "3 Partition",          "Allocate disk space for FreeBSD",      NULL, diskPartitionEditor },
1061       { "4 Label",              "Label allocated disk partitions",      NULL, diskLabelEditor },
1062       { "5 Distributions",      "Select distribution(s) to extract",    NULL, dmenuSubmenu, NULL, &MenuDistributions },
1063       { "6 Media",              "Choose the installation media type",   NULL, dmenuSubmenu, NULL, &MenuMedia },
1064       { "7 Commit",             "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1065 #endif
1066       { NULL } },
1067 };
1068
1069 #if defined(__i386__) || defined(__amd64__)
1070 #ifdef PC98
1071 /* IPL type menu */
1072 DMenu MenuIPLType = {
1073     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1074     "overwrite me",             /* will be disk specific label */
1075     "If you want a FreeBSD Boot Manager, select \"BootMgr\".  If you would\n"
1076     "prefer your Boot Manager to remain untouched then select \"None\".\n\n",
1077     "Press F1 to read about drive setup",
1078     "drives",
1079     { { "BootMgr",      "Install the FreeBSD Boot Manager",
1080         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr },
1081       { "None",         "Leave the IPL untouched",
1082         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
1083       { NULL } },
1084 };
1085 #else
1086 /* MBR type menu */
1087 DMenu MenuMBRType = {
1088     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1089     "overwrite me",             /* will be disk specific label */
1090     "FreeBSD comes with a boot manager that allows you to easily\n"
1091     "select between FreeBSD and any other operating systems on your machine\n"
1092     "at boot time.  If you have more than one drive and want to boot\n"
1093     "from the second one, the boot manager will also make it possible\n"
1094     "to do so (limitations in the PC BIOS usually prevent this otherwise).\n"
1095     "If you will only have FreeBSD on the machine the boot manager is\n"
1096     "not needed and it slows down the boot while offering you the choice\n"
1097     "of which operating system to boot.  If you do not want a boot\n"
1098     "manager, or wish to replace an existing one, select \"standard\".\n"
1099     "If you would prefer your Master Boot Record remain untouched then\n"
1100     "select \"None\".\n\n"
1101     "  NOTE:  PC-DOS users will almost certainly require \"None\"!",
1102     "Press F1 to read about drive setup",
1103     "drives",
1104     { { "Standard",     "Install a standard MBR (no boot manager)",
1105         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
1106       { "BootMgr",      "Install the FreeBSD Boot Manager",
1107         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 0 },
1108       { "None",         "Leave the Master Boot Record untouched",
1109         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 2 },
1110       { NULL } },
1111 };
1112 #endif /* PC98 */
1113 #endif /* __i386__ */
1114
1115 /* Final configuration menu */
1116 DMenu MenuConfigure = {
1117     DMENU_NORMAL_TYPE,
1118     "FreeBSD Configuration Menu",       /* title */
1119     "If you've already installed FreeBSD, you may use this menu to customize\n"
1120     "it somewhat to suit your particular configuration.  Most importantly,\n"
1121     "you can use the Packages utility to load extra \"3rd party\"\n"
1122     "software not provided in the base distributions.",
1123     "Press F1 for more information on these options",
1124     "configure",
1125     { { "X Exit",               "Exit this menu (returning to previous)",
1126         NULL,   dmenuExit },
1127       { " Distributions", "Install additional distribution sets",
1128         NULL, distExtractAll },
1129       { " Packages",    "Install pre-packaged software for FreeBSD",
1130         NULL, configPackages },
1131       { " Root Password", "Set the system manager's password",
1132         NULL,   dmenuSystemCommand, NULL, "passwd root" },
1133 #ifdef WITH_SLICES
1134       { " Fdisk",       "The disk Slice (PC-style partition) Editor",
1135         NULL, diskPartitionEditor },
1136 #endif
1137       { " Label",       "The disk Label editor",
1138         NULL, diskLabelEditor },
1139       { " User Management",     "Add user and group information",
1140         NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
1141 #ifdef WITH_SYSCONS
1142       { " Console",     "Customize system console behavior",
1143         NULL,   dmenuSubmenu, NULL, &MenuSyscons },
1144 #endif
1145       { " Time Zone",   "Set which time zone you're in",
1146         NULL,   dmenuSystemCommand, NULL, "tzsetup" },
1147       { " Media",       "Change the installation media type",
1148         NULL,   dmenuSubmenu, NULL, &MenuMedia },
1149 #ifdef WITH_MICE
1150       { " Mouse",       "Configure your mouse",
1151         NULL,   dmenuSubmenu, NULL, &MenuMouse },
1152 #endif
1153       { " Networking",  "Configure additional network services",
1154         NULL,   dmenuSubmenu, NULL, &MenuNetworking },
1155       { " Security",    "Configure system security options",
1156         NULL,   dmenuSubmenu, NULL, &MenuSecurity },
1157       { " Startup",     "Configure system startup options",
1158         NULL,   dmenuSubmenu, NULL, &MenuStartup },
1159       { " TTYs",        "Configure system ttys.",
1160         NULL,   configEtcTtys, NULL, "ttys" },
1161       { " Options",     "View/Set various installation options",
1162         NULL, optionsEditor },
1163       { " HTML Docs",   "Go to the HTML documentation menu (post-install)",
1164         NULL, docBrowser },
1165       { " Load KLD",    "Load a KLD from a floppy",
1166         NULL, kldBrowser },
1167       { NULL } },
1168 };
1169
1170 DMenu MenuStartup = {
1171     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1172     "Startup Services Menu",
1173     "This menu allows you to configure various aspects of your system's\n"
1174     "startup configuration.  Use [SPACE] or [ENTER] to select items, and\n"
1175     "[TAB] to move to the buttons.  Select Exit to leave this menu.",
1176     NULL,
1177     NULL,
1178     { { "X Exit",       "Exit this menu (returning to previous)",
1179         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1180 #ifdef __i386__
1181       { " APM",         "Auto-power management services (typically laptops)",
1182         dmenuVarCheck,  dmenuToggleVariable, NULL, "apm_enable=YES" },
1183 #endif
1184       { " ",            " -- ", NULL,   NULL, NULL, NULL, ' ', ' ', ' ' },
1185       { " Startup dirs",        "Set the list of dirs to look for startup scripts",
1186         dmenuVarCheck, dmenuISetVariable, NULL, "local_startup" },
1187       { " named",       "Run a local name server on this host",
1188         dmenuVarCheck, dmenuToggleVariable, NULL, "named_enable=YES" },
1189       { " named flags", "Set default flags to named (if enabled)",
1190         dmenuVarCheck, dmenuISetVariable, NULL, "named_flags" },
1191       { " NIS client",  "This host wishes to be an NIS client.",
1192         dmenuVarCheck, configRpcBind, NULL, "nis_client_enable=YES" },
1193       { " NIS domainname",      "Set NIS domainname (if enabled)",
1194         dmenuVarCheck, dmenuISetVariable, NULL, "nisdomainname" },
1195       { " NIS server",  "This host wishes to be an NIS server.",
1196         dmenuVarCheck, configRpcBind, NULL, "nis_server_enable=YES" },
1197       { " ",            " -- ", NULL,   NULL, NULL, NULL, ' ', ' ', ' ' },
1198       { " Accounting",  "This host wishes to run process accounting.",
1199         dmenuVarCheck, dmenuToggleVariable, NULL, "accounting_enable=YES" },
1200       { " lpd",         "This host has a printer and wants to run lpd.",
1201         dmenuVarCheck, dmenuToggleVariable, NULL, "lpd_enable=YES" },
1202 #ifdef __i386__
1203       { " SCO",         "This host wants to be able to run IBCS2 binaries.",
1204         dmenuVarCheck, dmenuToggleVariable, NULL, "ibcs2_enable=YES" },
1205       { " SVR4",        "This host wants to be able to run SVR4 binaries.",
1206         dmenuVarCheck, dmenuToggleVariable, NULL, "svr4_enable=YES" },
1207 #endif
1208       { " quotas",      "This host wishes to check quotas on startup.",
1209         dmenuVarCheck, dmenuToggleVariable, NULL, "check_quotas=YES" },
1210       { NULL } },
1211 };
1212
1213 DMenu MenuNetworking = {
1214     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1215     "Network Services Menu",
1216     "You may have already configured one network device (and the other\n"
1217     "various hostname/gateway/name server parameters) in the process\n"
1218     "of installing FreeBSD.  This menu allows you to configure other\n"
1219     "aspects of your system's network configuration.",
1220     NULL,
1221     NULL,
1222     { { "X Exit",       "Exit this menu (returning to previous)",
1223         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1224       { " Interfaces",  "Configure additional network interfaces",
1225         NULL, tcpMenuSelect },
1226       { " AMD",         "This machine wants to run the auto-mounter service",
1227         dmenuVarCheck,  configRpcBind, NULL, "amd_enable=YES" },
1228       { " AMD Flags",   "Set flags to AMD service (if enabled)",
1229         dmenuVarCheck,  dmenuISetVariable, NULL, "amd_flags" },
1230       { " Anon FTP",    "This machine wishes to allow anonymous FTP.",
1231         dmenuVarCheck,  configAnonFTP, NULL, "anon_ftp" },
1232       { " Gateway",     "This machine will route packets between interfaces",
1233         dmenuVarCheck,  dmenuToggleVariable, NULL, "gateway_enable=YES" },
1234       { " inetd",       "This machine wants to run the inet daemon",
1235         dmenuVarCheck,  configInetd, NULL, "inetd_enable=YES" },
1236       { " Mail",        "This machine wants to run a Mail Transfer Agent",
1237         NULL,           dmenuSubmenu, NULL, &MenuMTA },
1238       { " NFS client",  "This machine will be an NFS client",
1239         dmenuVarCheck,  dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
1240       { " NFS server",  "This machine will be an NFS server",
1241         dmenuVarCheck,  configNFSServer, NULL, "nfs_server_enable=YES" },
1242       { " Ntpdate",     "Select a clock-synchronization server",
1243         dmenuVarCheck,  dmenuSubmenu, NULL, &MenuNTP, '[', 'X', ']',
1244         (uintptr_t)"ntpdate_enable=YES" },
1245       { " PCNFSD",      "Run authentication server for clients with PC-NFS.",
1246         dmenuVarCheck,  configPCNFSD, NULL, "pcnfsd" },
1247       { " rpcbind",     "RPC port mapping daemon (formerly portmapper)",
1248         dmenuVarCheck, dmenuToggleVariable, NULL, "rpcbind_enable=YES" },
1249       { " rpc.statd",   "NFS status monitoring daemon",
1250         dmenuVarCheck, configRpcBind, NULL, "rpc_statd_enable=YES" },
1251       { " rpc.lockd",   "NFS file locking daemon",
1252         dmenuVarCheck, configRpcBind, NULL, "rpc_lockd_enable=YES" },
1253       { " Routed",      "Select routing daemon (default: routed)",
1254         dmenuVarCheck,  configRouter, NULL, "router_enable=YES" },
1255       { " Rwhod",       "This machine wants to run the rwho daemon",
1256         dmenuVarCheck,  dmenuToggleVariable, NULL, "rwhod_enable=YES" },
1257       { " sshd",        "This machine wants to run the SSH daemon",
1258         dmenuVarCheck,  dmenuToggleVariable, NULL, "sshd_enable=YES" },
1259       { " TCP Extensions", "Allow RFC1323 and RFC1644 TCP extensions?",
1260         dmenuVarCheck,  dmenuToggleVariable, NULL, "tcp_extensions=YES" },
1261       { NULL } },
1262 };
1263
1264 DMenu MenuMTA = {
1265     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1266     "Mail Transfer Agent Selection",
1267     "You can choose which Mail Transfer Agent (MTA) you wish to install and run.\n"
1268     "Selecting Sendmail local disables sendmail's network socket for\n"
1269     "incoming mail, but still enables sendmail for local and outbound mail.\n"
1270     "The Postfix option will install the Postfix MTA from the ports\n"
1271     "collection.  The Exim option will install the Exim MTA from the ports\n"
1272     "collection.  To return to the previous menu, select Exit.",
1273     NULL,
1274     NULL,
1275     {
1276       { "Sendmail",           "Use sendmail",
1277         dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=YES" },
1278       { "Sendmail local",    "Use sendmail, but do not listen on the network",
1279         dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=NO" },
1280       { "Postfix",            "Use the Postfix MTA",
1281       NULL, configMTAPostfix, NULL, NULL },
1282       { "Exim",               "Use the Exim MTA",
1283       NULL, configMTAExim, NULL, NULL },
1284       { "None",               "Do not install an MTA",
1285         dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=NONE" },
1286       { "X Exit",             "Exit this menu (returning to previous)",
1287         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1288       { NULL } },
1289 };
1290
1291 DMenu MenuNTP = {
1292     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1293     "NTPDATE Server Selection",
1294     "There are a number of time synchronization servers available\n"
1295     "for public use around the Internet.  Please select one reasonably\n"
1296     "close to you to have your system time synchronized accordingly.",
1297     "These are the primary open-access NTP servers",
1298     NULL,
1299     { { "None",                 "No NTP server",
1300         dmenuVarsCheck, dmenuSetVariables, NULL, 
1301         "ntpdate_enable=NO,ntpdate_flags=none" },
1302       { "Other",                "Select a site not on this list",
1303         dmenuVarsCheck, configNTP, NULL, NULL },
1304       { "Worldwide",            "pool.ntp.org",
1305         dmenuVarsCheck, dmenuSetVariables, NULL, 
1306         "ntpdate_enable=YES,ntpdate_flags=pool.ntp.org" },
1307       { "Asia",         "asia.pool.ntp.org",
1308         dmenuVarsCheck, dmenuSetVariables, NULL, 
1309         "ntpdate_enable=YES,ntpdate_flags=asia.pool.ntp.org" },
1310       { "Europe",               "europe.pool.ntp.org",
1311         dmenuVarsCheck, dmenuSetVariables, NULL, 
1312         "ntpdate_enable=YES,ntpdate_flags=europe.pool.ntp.org" },
1313       { "Oceania",              "oceania.pool.ntp.org",
1314         dmenuVarsCheck, dmenuSetVariables, NULL, 
1315         "ntpdate_enable=YES,ntpdate_flags=oceania.pool.ntp.org" },
1316       { "North America",        "north-america.pool.ntp.org",
1317         dmenuVarsCheck, dmenuSetVariables, NULL, 
1318         "ntpdate_enable=YES,ntpdate_flags=north-america.pool.ntp.org" },
1319       { "Argentina",            "tick.nap.com.ar",
1320         dmenuVarsCheck, dmenuSetVariables, NULL,
1321         "ntpdate_enable=YES,ntpdate_flags=tick.nap.com.ar" },
1322       { "Argentina #2",         "time.sinectis.com.ar",
1323         dmenuVarsCheck, dmenuSetVariables, NULL,
1324         "ntpdate_enable=YES,ntpdate_flags=time.sinectis.com.ar" },
1325       { "Argentina #3",         "tock.nap.com.ar",
1326         dmenuVarsCheck, dmenuSetVariables, NULL,
1327         "ntpdate_enable=YES,ntpdate_flags=tock.nap.com.ar" },
1328       { "Australia",            "au.pool.ntp.org",
1329         dmenuVarsCheck, dmenuSetVariables, NULL, 
1330         "ntpdate_enable=YES,ntpdate_flags=au.pool.ntp.org" },
1331       { "Australia #2",         "augean.eleceng.adelaide.edu.au",
1332         dmenuVarsCheck, dmenuSetVariables, NULL, 
1333         "ntpdate_enable=YES,ntpdate_flags=augean.eleceng.adelaide.edu.au" },
1334       { "Australia #3",         "ntp.adelaide.edu.au",
1335         dmenuVarsCheck, dmenuSetVariables, NULL, 
1336         "ntpdate_enable=YES,ntpdate_flags=ntp.adelaide.edu.au" },
1337       { "Australia #4",         "ntp.saard.net",
1338         dmenuVarsCheck, dmenuSetVariables, NULL, 
1339         "ntpdate_enable=YES,ntpdate_flags=ntp.saard.net" },
1340       { "Australia #5",         "time.deakin.edu.au",
1341         dmenuVarsCheck, dmenuSetVariables, NULL, 
1342         "ntpdate_enable=YES,ntpdate_flags=time.deakin.edu.au" },
1343       { "Belgium",              "ntp1.belbone.be",
1344         dmenuVarsCheck, dmenuSetVariables, NULL,
1345         "ntpdate_enable=YES,ntpdate_flags=ntp1.belbone.be" },
1346       { "Belgium #2",           "ntp2.belbone.be",
1347         dmenuVarsCheck, dmenuSetVariables, NULL,
1348         "ntpdate_enable=YES,ntpdate_flags=ntp2.belbone.be" },
1349       { "Brazil",               "a.ntp.br",
1350         dmenuVarsCheck, dmenuSetVariables, NULL,
1351         "ntpdate_enable=YES,ntpdate_flags=a.ntp.br" },
1352       { "Brazil #2",            "b.ntp.br",
1353         dmenuVarsCheck, dmenuSetVariables, NULL,
1354         "ntpdate_enable=YES,ntpdate_flags=b.ntp.br" },
1355       { "Brazil #3",            "c.ntp.br",
1356         dmenuVarsCheck, dmenuSetVariables, NULL,
1357         "ntpdate_enable=YES,ntpdate_flags=c.ntp.br" },
1358       { "Brazil #4",            "ntp.cais.rnp.br",
1359         dmenuVarsCheck, dmenuSetVariables, NULL,
1360         "ntpdate_enable=YES,ntpdate_flags=ntp.cais.rnp.br" },
1361       { "Brazil #5",            "ntp1.pucpr.br",
1362         dmenuVarsCheck, dmenuSetVariables, NULL,
1363         "ntpdate_enable=YES,ntpdate_flags=ntp1.pucpr.br" },
1364       { "Canada",               "ca.pool.ntp.org",
1365         dmenuVarsCheck, dmenuSetVariables, NULL, 
1366         "ntpdate_enable=YES,ntpdate_flags=ca.pool.ntp.org" },
1367       { "Canada #2",            "ntp.cpsc.ucalgary.ca",
1368         dmenuVarsCheck, dmenuSetVariables, NULL, 
1369         "ntpdate_enable=YES,ntpdate_flags=ntp.cpsc.ucalgary.ca" },
1370       { "Canada #3",            "ntp1.cmc.ec.gc.ca",
1371         dmenuVarsCheck, dmenuSetVariables, NULL, 
1372         "ntpdate_enable=YES,ntpdate_flags=ntp1.cmc.ec.gc.ca" },
1373       { "Canada #4",            "ntp2.cmc.ec.gc.ca",
1374         dmenuVarsCheck, dmenuSetVariables, NULL, 
1375         "ntpdate_enable=YES,ntpdate_flags=ntp2.cmc.ec.gc.ca" },
1376       { "Canada #5",            "tick.utoronto.ca",
1377         dmenuVarsCheck, dmenuSetVariables, NULL, 
1378         "ntpdate_enable=YES,ntpdate_flags=tick.utoronto.ca" },
1379       { "Canada #6",            "time.chu.nrc.ca",
1380         dmenuVarsCheck, dmenuSetVariables, NULL, 
1381         "ntpdate_enable=YES,ntpdate_flags=time.chu.nrc.ca" },
1382       { "Canada #7",            "time.nrc.ca",
1383         dmenuVarsCheck, dmenuSetVariables, NULL, 
1384         "ntpdate_enable=YES,ntpdate_flags=time.nrc.ca" },
1385       { "Canada #8",            "timelord.uregina.ca",
1386         dmenuVarsCheck, dmenuSetVariables, NULL, 
1387         "ntpdate_enable=YES,ntpdate_flags=timelord.uregina.ca" },
1388       { "Canada #9",            "tock.utoronto.ca",
1389         dmenuVarsCheck, dmenuSetVariables, NULL, 
1390         "ntpdate_enable=YES,ntpdate_flags=tock.utoronto.ca" },
1391       { "Czech",                "ntp.karpo.cz",
1392         dmenuVarsCheck, dmenuSetVariables, NULL,
1393         "ntpdate_enable=YES,ntpdate_flags=ntp.karpo.cz" },
1394       { "Czech #2",             "ntp.cgi.cz",
1395         dmenuVarsCheck, dmenuSetVariables, NULL,
1396         "ntpdate_enable=YES,ntpdate_flags=ntp.cgi.cz" },
1397       { "Denmark",              "clock.netcetera.dk",
1398         dmenuVarsCheck, dmenuSetVariables, NULL,
1399         "ntpdate_enable=YES,ntpdate_flags=clock.netcetera.dk" },
1400       { "Denmark",              "clock2.netcetera.dk",
1401         dmenuVarsCheck, dmenuSetVariables, NULL,
1402         "ntpdate_enable=YES,ntpdate_flags=clock2.netcetera.dk" },
1403       { "Spain",                "slug.ctv.es",
1404         dmenuVarsCheck, dmenuSetVariables, NULL,
1405         "ntpdate_enable=YES,ntpdate_flags=slug.ctv.es" },
1406       { "Finland",              "tick.keso.fi",
1407         dmenuVarsCheck, dmenuSetVariables, NULL,
1408         "ntpdate_enable=YES,ntpdate_flags=tick.keso.fi" },
1409       { "Finland #2",           "tock.keso.fi",
1410         dmenuVarsCheck, dmenuSetVariables, NULL,
1411         "ntpdate_enable=YES,ntpdate_flags=tock.keso.fi" },
1412       { "France",               "ntp.obspm.fr",
1413         dmenuVarsCheck, dmenuSetVariables, NULL, 
1414         "ntpdate_enable=YES,ntpdate_flags=ntp.obspm.fr" },
1415       { "France #2",            "ntp.univ-lyon1.fr",
1416         dmenuVarsCheck, dmenuSetVariables, NULL,
1417         "ntpdate_enable=YES,ntpdate_flags=ntp.univ-lyon1.fr" },
1418       { "France #3",            "ntp.via.ecp.fr",
1419         dmenuVarsCheck, dmenuSetVariables, NULL,
1420         "ntpdate_enable=YES,ntpdate_flags=ntp.via.ecp.fr" },
1421       { "Croatia",              "zg1.ntp.carnet.hr",
1422         dmenuVarsCheck, dmenuSetVariables, NULL,
1423         "ntpdate_enable=YES,ntpdate_flags=zg1.ntp.carnet.hr" },
1424       { "Croatia #2",           "zg2.ntp.carnet.hr",
1425         dmenuVarsCheck, dmenuSetVariables, NULL,
1426         "ntpdate_enable=YES,ntpdate_flags=zg2.ntp.carnet.hr" },
1427       { "Croatia #3",           "st.ntp.carnet.hr",
1428         dmenuVarsCheck, dmenuSetVariables, NULL,
1429         "ntpdate_enable=YES,ntpdate_flags=st.ntp.carnet.hr" },
1430       { "Croatia #4",           "ri.ntp.carnet.hr",
1431         dmenuVarsCheck, dmenuSetVariables, NULL,
1432         "ntpdate_enable=YES,ntpdate_flags=ri.ntp.carnet.hr" },
1433       { "Croatia #5",           "os.ntp.carnet.hr",
1434         dmenuVarsCheck, dmenuSetVariables, NULL,
1435         "ntpdate_enable=YES,ntpdate_flags=os.ntp.carnet.hr" },
1436       { "Hungary",              "time.kfki.hu",
1437         dmenuVarsCheck, dmenuSetVariables, NULL,
1438         "ntpdate_enable=YES,ntpdate_flags=time.kfki.hu" },
1439       { "Indonesia",            "ntp.kim.lipi.go.id",
1440         dmenuVarsCheck, dmenuSetVariables, NULL,
1441         "ntpdate_enable=YES,ntpdate_flags=ntp.kim.lipi.go.id" },
1442       { "Ireland",              "ntp.maths.tcd.ie",
1443         dmenuVarsCheck, dmenuSetVariables, NULL,
1444         "ntpdate_enable=YES,ntpdate_flags=ntp.maths.tcd.ie" },
1445       { "Italy",                "it.pool.ntp.org",
1446         dmenuVarsCheck, dmenuSetVariables, NULL,
1447         "ntpdate_enable=YES,ntpdate_flags=it.pool.ntp.org" },
1448       { "Japan",                "ntp.jst.mfeed.ad.jp",
1449         dmenuVarsCheck, dmenuSetVariables, NULL,
1450         "ntpdate_enable=YES,ntpdate_flags=ntp.jst.mfeed.ad.jp" },
1451       { "Japan IPv6",           "ntp1.v6.mfeed.ad.jp",
1452         dmenuVarsCheck, dmenuSetVariables, NULL,
1453         "ntpdate_enable=YES,ntpdate_flags=ntp1.v6.mfeed.ad.jp" },
1454       { "Korea",                "time.nuri.net",
1455         dmenuVarsCheck, dmenuSetVariables, NULL, 
1456         "ntpdate_enable=YES,ntpdate_flags=time.nuri.net" },
1457       { "Mexico",               "mx.pool.ntp.org",
1458         dmenuVarsCheck, dmenuSetVariables, NULL,
1459         "ntpdate_enable=YES,ntpdate_flags=mx.pool.ntp.org" },
1460       { "Netherlands",          "ntp0.nl.net",
1461         dmenuVarsCheck, dmenuSetVariables, NULL,
1462         "ntpdate_enable=YES,ntpdate_flags=ntp0.nl.net" },
1463       { "Netherlands #2",       "ntp1.nl.net",
1464         dmenuVarsCheck, dmenuSetVariables, NULL,
1465         "ntpdate_enable=YES,ntpdate_flags=ntp1.nl.net" },
1466       { "Netherlands #3",       "ntp2.nl.net",
1467         dmenuVarsCheck, dmenuSetVariables, NULL,
1468         "ntpdate_enable=YES,ntpdate_flags=ntp2.nl.net" },
1469       { "Norway",               "fartein.ifi.uio.no",
1470         dmenuVarsCheck, dmenuSetVariables, NULL, 
1471         "ntpdate_enable=YES,ntpdate_flags=fartein.ifi.uio.no" },
1472       { "Norway #2",            "time.alcanet.no",
1473         dmenuVarsCheck, dmenuSetVariables, NULL, 
1474         "ntpdate_enable=YES,ntpdate_flags=time.alcanet.no" },
1475       { "New Zealand",          "ntp.massey.ac.nz",
1476         dmenuVarsCheck, dmenuSetVariables, NULL,
1477         "ntpdate_enable=YES,ntpdate_flags=ntp.massey.ac.nz" },
1478       { "New Zealand #2",       "ntp.public.otago.ac.nz",
1479         dmenuVarsCheck, dmenuSetVariables, NULL,
1480         "ntpdate_enable=YES,ntpdate_flags=ntp.public.otago.ac.nz" },
1481       { "New Zealand #3",       "tk1.ihug.co.nz",
1482         dmenuVarsCheck, dmenuSetVariables, NULL,
1483         "ntpdate_enable=YES,ntpdate_flags=tk1.ihug.co.nz" },
1484       { "New Zealand #4",       "ntp.waikato.ac.nz",
1485         dmenuVarsCheck, dmenuSetVariables, NULL,
1486         "ntpdate_enable=YES,ntpdate_flags=ntp.waikato.ac.nz" },
1487       { "Poland",               "info.cyf-kr.edu.pl",
1488         dmenuVarsCheck, dmenuSetVariables, NULL,
1489         "ntpdate_enable=YES,ntpdate_flags=info.cyf-kr.edu.pl" },
1490       { "Romania",              "ticks.roedu.net",
1491         dmenuVarsCheck, dmenuSetVariables, NULL,
1492         "ntpdate_enable=YES,ntpdate_flags=ticks.roedu.net" },
1493       { "Russia",               "ru.pool.ntp.org",
1494         dmenuVarsCheck, dmenuSetVariables, NULL,
1495         "ntpdate_enable=YES,ntpdate_flags=ru.pool.ntp.org" },
1496       { "Russia #2",            "ntp.psn.ru",
1497         dmenuVarsCheck, dmenuSetVariables, NULL,
1498         "ntpdate_enable=YES,ntpdate_flags=ntp.psn.ru" },
1499       { "Sweden",               "se.pool.ntp.org",
1500         dmenuVarsCheck, dmenuSetVariables, NULL, 
1501         "ntpdate_enable=YES,ntpdate_flags=se.pool.ntp.org" },
1502       { "Sweden #2",            "ntp.lth.se",
1503         dmenuVarsCheck, dmenuSetVariables, NULL, 
1504         "ntpdate_enable=YES,ntpdate_flags=ntp.lth.se" },
1505       { "Sweden #3",            "ntp1.sp.se",
1506         dmenuVarsCheck, dmenuSetVariables, NULL, 
1507         "ntpdate_enable=YES,ntpdate_flags=ntp1.sp.se" },
1508       { "Sweden #4",            "ntp2.sp.se",
1509         dmenuVarsCheck, dmenuSetVariables, NULL, 
1510         "ntpdate_enable=YES,ntpdate_flags=ntp2.sp.se" },
1511       { "Sweden #5",            "ntp.kth.se",
1512         dmenuVarsCheck, dmenuSetVariables, NULL, 
1513         "ntpdate_enable=YES,ntpdate_flags=ntp.kth.se" },
1514       { "Singapore",            "sg.pool.ntp.org",
1515         dmenuVarsCheck, dmenuSetVariables, NULL,
1516         "ntpdate_enable=YES,ntpdate_flags=sg.pool.ntp.org" },
1517       { "Slovenia",             "si.pool.ntp.org",
1518         dmenuVarsCheck, dmenuSetVariables, NULL,
1519         "ntpdate_enable=YES,ntpdate_flags=si.pool.ntp.org" },
1520       { "Slovenia #2",          "sizif.mf.uni-lj.si",
1521         dmenuVarsCheck, dmenuSetVariables, NULL,
1522         "ntpdate_enable=YES,ntpdate_flags=sizif.mf.uni-lj.si" },
1523       { "Slovenia #3",          "ntp1.arnes.si",
1524         dmenuVarsCheck, dmenuSetVariables, NULL,
1525         "ntpdate_enable=YES,ntpdate_flags=ntp1.arnes.si" },
1526       { "Slovenia #4",          "ntp2.arnes.si",
1527         dmenuVarsCheck, dmenuSetVariables, NULL,
1528         "ntpdate_enable=YES,ntpdate_flags=ntp2.arnes.si" },
1529       { "Slovenia #5",          "time.ijs.si",
1530         dmenuVarsCheck, dmenuSetVariables, NULL,
1531         "ntpdate_enable=YES,ntpdate_flags=time.ijs.si" },
1532       { "Scotland",             "ntp.cs.strath.ac.uk",
1533         dmenuVarsCheck, dmenuSetVariables, NULL,
1534         "ntpdate_enable=YES,ntpdate_flags=ntp.cs.strath.ac.uk" },
1535       { "Taiwan",              "time.stdtime.gov.tw",
1536         dmenuVarsCheck, dmenuSetVariables, NULL,
1537         "ntpdate_enable=YES,ntpdate_flags=time.stdtime.gov.tw" },
1538       { "Taiwan #2",           "clock.stdtime.gov.tw",
1539         dmenuVarsCheck, dmenuSetVariables, NULL,
1540         "ntpdate_enable=YES,ntpdate_flags=clock.stdtime.gov.tw" },
1541       { "Taiwan #3",           "tick.stdtime.gov.tw",
1542         dmenuVarsCheck, dmenuSetVariables, NULL,
1543         "ntpdate_enable=YES,ntpdate_flags=tick.stdtime.gov.tw" },
1544       { "Taiwan #4",           "tock.stdtime.gov.tw",
1545         dmenuVarsCheck, dmenuSetVariables, NULL,
1546         "ntpdate_enable=YES,ntpdate_flags=tock.stdtime.gov.tw" },
1547       { "Taiwan #5",           "watch.stdtime.gov.tw",
1548         dmenuVarsCheck, dmenuSetVariables, NULL,
1549         "ntpdate_enable=YES,ntpdate_flags=watch.stdtime.gov.tw" },
1550       { "United Kingdom",       "uk.pool.ntp.org",
1551         dmenuVarsCheck, dmenuSetVariables, NULL,
1552         "ntpdate_enable=YES,ntpdate_flags=uk.pool.ntp.org" },
1553       { "United Kingdom #2",    "ntp.exnet.com",
1554         dmenuVarsCheck, dmenuSetVariables, NULL,
1555         "ntpdate_enable=YES,ntpdate_flags=ntp.exnet.com" },
1556       { "United Kingdom #3",    "ntp0.uk.uu.net",
1557         dmenuVarsCheck, dmenuSetVariables, NULL,
1558         "ntpdate_enable=YES,ntpdate_flags=ntp0.uk.uu.net" },
1559       { "United Kingdom #4",    "ntp1.uk.uu.net",
1560         dmenuVarsCheck, dmenuSetVariables, NULL,
1561         "ntpdate_enable=YES,ntpdate_flags=ntp1.uk.uu.net" },
1562       { "United Kingdom #5",    "ntp2.uk.uu.net",
1563         dmenuVarsCheck, dmenuSetVariables, NULL,
1564         "ntpdate_enable=YES,ntpdate_flags=ntp2.uk.uu.net" },
1565       { "United Kingdom #6",    "ntp2a.mcc.ac.uk",
1566         dmenuVarsCheck, dmenuSetVariables, NULL,
1567         "ntpdate_enable=YES,ntpdate_flags=ntp2a.mcc.ac.uk" },
1568       { "United Kingdom #7",    "ntp2b.mcc.ac.uk",
1569         dmenuVarsCheck, dmenuSetVariables, NULL,
1570         "ntpdate_enable=YES,ntpdate_flags=ntp2b.mcc.ac.uk" },
1571       { "United Kingdom #8",    "ntp2c.mcc.ac.uk",
1572         dmenuVarsCheck, dmenuSetVariables, NULL,
1573         "ntpdate_enable=YES,ntpdate_flags=ntp2c.mcc.ac.uk" },
1574       { "United Kingdom #9",    "ntp2d.mcc.ac.uk",
1575         dmenuVarsCheck, dmenuSetVariables, NULL,
1576         "ntpdate_enable=YES,ntpdate_flags=ntp2d.mcc.ac.uk" },
1577       { "U.S.", "us.pool.ntp.org",
1578         dmenuVarsCheck, dmenuSetVariables, NULL, 
1579         "ntpdate_enable=YES,ntpdate_flags=us.pool.ntp.org" },
1580       { "U.S. AR",      "sushi.lyon.edu",
1581         dmenuVarsCheck, dmenuSetVariables, NULL, 
1582         "ntpdate_enable=YES,ntpdate_flags=sushi.compsci.lyon.edu" },
1583       { "U.S. AZ",      "ntp.drydog.com",
1584         dmenuVarsCheck, dmenuSetVariables, NULL, 
1585         "ntpdate_enable=YES,ntpdate_flags=ntp.drydog.com" },
1586       { "U.S. CA",      "ntp.ucsd.edu",
1587         dmenuVarsCheck, dmenuSetVariables, NULL, 
1588         "ntpdate_enable=YES,ntpdate_flags=ntp.ucsd.edu" },
1589       { "U.S. CA #2",   "ntp1.mainecoon.com",
1590         dmenuVarsCheck, dmenuSetVariables, NULL, 
1591         "ntpdate_enable=YES,ntpdate_flags=ntp1.mainecoon.com" },
1592       { "U.S. CA #3",   "ntp2.mainecoon.com",
1593         dmenuVarsCheck, dmenuSetVariables, NULL, 
1594         "ntpdate_enable=YES,ntpdate_flags=ntp2.mainecoon.com" },
1595       { "U.S. CA #4",   "reloj.kjsl.com",
1596         dmenuVarsCheck, dmenuSetVariables, NULL, 
1597         "ntpdate_enable=YES,ntpdate_flags=reloj.kjsl.com" },
1598       { "U.S. CA #5",   "time.five-ten-sg.com",
1599         dmenuVarsCheck, dmenuSetVariables, NULL, 
1600         "ntpdate_enable=YES,ntpdate_flags=time.five-ten-sg.com" },
1601       { "U.S. DE",      "louie.udel.edu",
1602         dmenuVarsCheck, dmenuSetVariables, NULL, 
1603         "ntpdate_enable=YES,ntpdate_flags=louie.udel.edu" },
1604       { "U.S. GA",              "ntp.shorty.com",
1605         dmenuVarsCheck, dmenuSetVariables, NULL, 
1606         "ntpdate_enable=YES,ntpdate_flags=ntp.shorty.com" },
1607       { "U.S. GA #2",           "rolex.usg.edu",
1608         dmenuVarsCheck, dmenuSetVariables, NULL, 
1609         "ntpdate_enable=YES,ntpdate_flags=rolex.usg.edu" },
1610       { "U.S. GA #3",           "timex.usg.edu",
1611         dmenuVarsCheck, dmenuSetVariables, NULL, 
1612         "ntpdate_enable=YES,ntpdate_flags=timex.usg.edu" },
1613       { "U.S. IL",      "ntp-0.cso.uiuc.edu",
1614         dmenuVarsCheck, dmenuSetVariables, NULL,
1615         "ntpdate_enable=YES,ntpdate_flags=ntp-0.cso.uiuc.edu" },
1616       { "U.S. IL #2",   "ntp-1.cso.uiuc.edu",
1617         dmenuVarsCheck, dmenuSetVariables, NULL,
1618         "ntpdate_enable=YES,ntpdate_flags=ntp-1.cso.uiuc.edu" },
1619       { "U.S. IL #3",   "ntp-1.mcs.anl.gov",
1620         dmenuVarsCheck, dmenuSetVariables, NULL,
1621         "ntpdate_enable=YES,ntpdate_flags=ntp-1.mcs.anl.gov" },
1622       { "U.S. IL #4",   "ntp-2.cso.uiuc.edu",
1623         dmenuVarsCheck, dmenuSetVariables, NULL,
1624         "ntpdate_enable=YES,ntpdate_flags=ntp-2.cso.uiuc.edu" },
1625       { "U.S. IL #5",   "ntp-2.mcs.anl.gov",
1626         dmenuVarsCheck, dmenuSetVariables, NULL,
1627         "ntpdate_enable=YES,ntpdate_flags=ntp-2.mcs.anl.gov" },
1628       { "U.S. IN",      "gilbreth.ecn.purdue.edu",
1629         dmenuVarsCheck, dmenuSetVariables, NULL,
1630         "ntpdate_enable=YES,ntpdate_flags=gilbreth.ecn.purdue.edu" },
1631       { "U.S. IN #2",   "harbor.ecn.purdue.edu",
1632         dmenuVarsCheck, dmenuSetVariables, NULL,
1633         "ntpdate_enable=YES,ntpdate_flags=harbor.ecn.purdue.edu" },
1634       { "U.S. IN #3",   "molecule.ecn.purdue.edu",
1635         dmenuVarsCheck, dmenuSetVariables, NULL,
1636         "ntpdate_enable=YES,ntpdate_flags=molecule.ecn.purdue.edu" },
1637       { "U.S. KS",      "ntp1.kansas.net",
1638         dmenuVarsCheck, dmenuSetVariables, NULL,
1639         "ntpdate_enable=YES,ntpdate_flags=ntp1.kansas.net" },
1640       { "U.S. KS #2",   "ntp2.kansas.net",
1641         dmenuVarsCheck, dmenuSetVariables, NULL,
1642         "ntpdate_enable=YES,ntpdate_flags=ntp2.kansas.net" },
1643       { "U.S. MA",      "ntp.ourconcord.net",
1644         dmenuVarsCheck, dmenuSetVariables, NULL,
1645         "ntpdate_enable=YES,ntpdate_flags=ntp.ourconcord.net" },
1646       { "U.S. MA #2",   "timeserver.cs.umb.edu",
1647         dmenuVarsCheck, dmenuSetVariables, NULL,
1648         "ntpdate_enable=YES,ntpdate_flags=timeserver.cs.umb.edu" },
1649       { "U.S. MN",      "ns.nts.umn.edu",
1650         dmenuVarsCheck, dmenuSetVariables, NULL,
1651         "ntpdate_enable=YES,ntpdate_flags=ns.nts.umn.edu" },
1652       { "U.S. MN #2",   "nss.nts.umn.edu",
1653         dmenuVarsCheck, dmenuSetVariables, NULL,
1654         "ntpdate_enable=YES,ntpdate_flags=nss.nts.umn.edu" },
1655       { "U.S. MO",      "time-ext.missouri.edu",
1656         dmenuVarsCheck, dmenuSetVariables, NULL,
1657         "ntpdate_enable=YES,ntpdate_flags=time-ext.missouri.edu" },
1658       { "U.S. MT",      "chronos1.umt.edu",
1659         dmenuVarsCheck, dmenuSetVariables, NULL,
1660         "ntpdate_enable=YES,ntpdate_flags=chronos1.umt.edu" },
1661       { "U.S. MT #2",   "chronos2.umt.edu",
1662         dmenuVarsCheck, dmenuSetVariables, NULL,
1663         "ntpdate_enable=YES,ntpdate_flags=chronos2.umt.edu" },
1664       { "U.S. MT #3",   "chronos3.umt.edu",
1665         dmenuVarsCheck, dmenuSetVariables, NULL,
1666         "ntpdate_enable=YES,ntpdate_flags=chronos3.umt.edu" },
1667       { "U.S. NC",      "clock1.unc.edu",
1668         dmenuVarsCheck, dmenuSetVariables, NULL,
1669         "ntpdate_enable=YES,ntpdate_flags=clock1.unc.edu" },
1670       { "U.S. NV",      "cuckoo.nevada.edu",
1671         dmenuVarsCheck, dmenuSetVariables, NULL,
1672         "ntpdate_enable=YES,ntpdate_flags=cuckoo.nevada.edu" },
1673       { "U.S. NV #2",   "tick.cs.unlv.edu",
1674         dmenuVarsCheck, dmenuSetVariables, NULL,
1675         "ntpdate_enable=YES,ntpdate_flags=tick.cs.unlv.edu" },
1676       { "U.S. NV #3",   "tock.cs.unlv.edu",
1677         dmenuVarsCheck, dmenuSetVariables, NULL,
1678         "ntpdate_enable=YES,ntpdate_flags=tock.cs.unlv.edu" },
1679       { "U.S. NY",      "ntp0.cornell.edu",
1680         dmenuVarsCheck, dmenuSetVariables, NULL,
1681         "ntpdate_enable=YES,ntpdate_flags=ntp0.cornell.edu" },
1682       { "U.S. NY #2",   "sundial.columbia.edu",
1683         dmenuVarsCheck, dmenuSetVariables, NULL,
1684         "ntpdate_enable=YES,ntpdate_flags=sundial.columbia.edu" },
1685       { "U.S. NY #3",   "timex.cs.columbia.edu",
1686         dmenuVarsCheck, dmenuSetVariables, NULL,
1687         "ntpdate_enable=YES,ntpdate_flags=timex.cs.columbia.edu" },
1688       { "U.S. PA",      "clock-1.cs.cmu.edu",
1689         dmenuVarsCheck, dmenuSetVariables, NULL,
1690         "ntpdate_enable=YES,ntpdate_flags=clock-1.cs.cmu.edu" },
1691       { "U.S. PA #2",   "clock-2.cs.cmu.edu",
1692         dmenuVarsCheck, dmenuSetVariables, NULL,
1693         "ntpdate_enable=YES,ntpdate_flags=clock-2.cs.cmu.edu" },
1694       { "U.S. PA #3",   "clock.psu.edu",
1695         dmenuVarsCheck, dmenuSetVariables, NULL,
1696         "ntpdate_enable=YES,ntpdate_flags=clock.psu.edu" },
1697       { "U.S. PA #4",   "fuzz.psc.edu",
1698         dmenuVarsCheck, dmenuSetVariables, NULL,
1699         "ntpdate_enable=YES,ntpdate_flags=fuzz.psc.edu" },
1700       { "U.S. PA #5",   "ntp-1.ece.cmu.edu",
1701         dmenuVarsCheck, dmenuSetVariables, NULL,
1702         "ntpdate_enable=YES,ntpdate_flags=ntp-1.ece.cmu.edu" },
1703       { "U.S. PA #6",   "ntp-2.ece.cmu.edu",
1704         dmenuVarsCheck, dmenuSetVariables, NULL,
1705         "ntpdate_enable=YES,ntpdate_flags=ntp-2.ece.cmu.edu" },
1706       { "U.S. TX",      "ntp.fnbhs.com",
1707         dmenuVarsCheck, dmenuSetVariables, NULL,
1708         "ntpdate_enable=YES,ntpdate_flags=ntp.fnbhs.com" },
1709       { "U.S. TX #2",   "ntp.tmc.edu",
1710         dmenuVarsCheck, dmenuSetVariables, NULL,
1711         "ntpdate_enable=YES,ntpdate_flags=ntp.tmc.edu" },
1712       { "U.S. TX #3",   "ntp5.tamu.edu",
1713         dmenuVarsCheck, dmenuSetVariables, NULL,
1714         "ntpdate_enable=YES,ntpdate_flags=ntp5.tamu.edu" },
1715       { "U.S. TX #4",   "tick.greyware.com",
1716         dmenuVarsCheck, dmenuSetVariables, NULL,
1717         "ntpdate_enable=YES,ntpdate_flags=tick.greyware.com" },
1718       { "U.S. TX #5",   "tock.greyware.com",
1719         dmenuVarsCheck, dmenuSetVariables, NULL,
1720         "ntpdate_enable=YES,ntpdate_flags=tock.greyware.com" },
1721       { "U.S. VA",      "ntp-1.vt.edu",
1722         dmenuVarsCheck, dmenuSetVariables, NULL,
1723         "ntpdate_enable=YES,ntpdate_flags=ntp-1.vt.edu" },
1724       { "U.S. VA #2",   "ntp-2.vt.edu",
1725         dmenuVarsCheck, dmenuSetVariables, NULL,
1726         "ntpdate_enable=YES,ntpdate_flags=ntp-2.vt.edu" },
1727       { "U.S. VA #3",   "ntp.cmr.gov",
1728         dmenuVarsCheck, dmenuSetVariables, NULL,
1729         "ntpdate_enable=YES,ntpdate_flags=ntp.cmr.gov" },
1730       { "U.S. VT",      "ntp0.state.vt.us",
1731         dmenuVarsCheck, dmenuSetVariables, NULL,
1732         "ntpdate_enable=YES,ntpdate_flags=ntp0.state.vt.us" },
1733       { "U.S. VT #2",   "ntp1.state.vt.us",
1734         dmenuVarsCheck, dmenuSetVariables, NULL,
1735         "ntpdate_enable=YES,ntpdate_flags=ntp1.state.vt.us" },
1736       { "U.S. VT #3",   "ntp2.state.vt.us",
1737         dmenuVarsCheck, dmenuSetVariables, NULL,
1738         "ntpdate_enable=YES,ntpdate_flags=ntp2.state.vt.us" },
1739       { "U.S. WA",      "ntp.tcp-udp.net",
1740         dmenuVarsCheck, dmenuSetVariables, NULL,
1741         "ntpdate_enable=YES,ntpdate_flags=ntp.tcp-udp.net" },
1742       { "U.S. WI",      "ntp1.cs.wisc.edu",
1743         dmenuVarsCheck, dmenuSetVariables, NULL,
1744         "ntpdate_enable=YES,ntpdate_flags=ntp1.cs.wisc.edu" },
1745       { "U.S. WI #2",   "ntp3.cs.wisc.edu",
1746         dmenuVarsCheck, dmenuSetVariables, NULL,
1747         "ntpdate_enable=YES,ntpdate_flags=ntp3.cs.wisc.edu" },
1748       { "South Africa", "ntp.cs.unp.ac.za",
1749         dmenuVarsCheck, dmenuSetVariables, NULL,
1750         "ntpdate_enable=YES,ntpdate_flags=ntp.cs.unp.ac.za" },
1751       { NULL } },
1752 };
1753
1754 #ifdef WITH_SYSCONS
1755 DMenu MenuSyscons = {
1756     DMENU_NORMAL_TYPE,
1757     "System Console Configuration",
1758     "The default system console driver for FreeBSD (syscons) has a\n"
1759     "number of configuration options which may be set according to\n"
1760     "your preference.\n\n"
1761     "When you are done setting configuration options, select Cancel.",
1762     "Configure your system console settings",
1763     NULL,
1764     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
1765 #ifdef PC98
1766       { "2 Keymap",     "Choose an alternate keyboard map",     NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
1767       { "3 Repeat",     "Set the rate at which keys repeat",    NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
1768       { "4 Saver",      "Configure the screen saver",           NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
1769 #else
1770       { "2 Font",       "Choose an alternate screen font",      NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
1771       { "3 Keymap",     "Choose an alternate keyboard map",     NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
1772       { "4 Repeat",     "Set the rate at which keys repeat",    NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
1773       { "5 Saver",      "Configure the screen saver",           NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
1774       { "6 Screenmap",  "Choose an alternate screenmap",        NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
1775       { "7 Ttys",       "Choose console terminal type",         NULL, dmenuSubmenu, NULL, &MenuSysconsTtys },
1776 #endif
1777       { NULL } },
1778 };
1779
1780 #ifdef PC98
1781 DMenu MenuSysconsKeymap = {
1782     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1783     "System Console Keymap",
1784     "The default system console driver for FreeBSD (syscons) defaults\n"
1785     "to a standard \"PC-98x1\" keyboard map.  Users may wish to choose\n"
1786     "one of the other keymaps below.\n"
1787     "Note that sysinstall itself only uses the part of the keyboard map\n"
1788     "which is required to generate the ANSI character subset, but your\n"
1789     "choice of keymap will also be saved for later (fuller) use.",
1790     "Choose a keyboard map",
1791     NULL,
1792     { { "Japanese PC-98x1",             "Japanese PC-98x1 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98" },
1793       { " Japanese PC-98x1 (ISO)",      "Japanese PC-98x1 (ISO) keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98.iso" },
1794       { NULL } },
1795 };
1796 #else
1797 DMenu MenuSysconsKeymap = {
1798     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1799     "System Console Keymap",
1800     "The default system console driver for FreeBSD (syscons) defaults\n"
1801     "to a standard \"American\" keyboard map.  Users in other countries\n"
1802     "(or with different keyboard preferences) may wish to choose one of\n"
1803     "the other keymaps below.\n"
1804     "Note that sysinstall itself only uses the part of the keyboard map\n"
1805     "which is required to generate the ANSI character subset, but your\n"
1806     "choice of keymap will also be saved for later (fuller) use.",
1807     "Choose a keyboard map",
1808     NULL,
1809     { { "Belgian",      "Belgian ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=be.iso" },
1810       { " Brazil CP850",        "Brazil CP850 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.cp850" },
1811       { " Brazil ISO (accent)", "Brazil ISO keymap (accent keys)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso.acc" },
1812       { " Brazil ISO",  "Brazil ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso" },
1813       { " Bulgarian BDS",       "Bulgarian BDS keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=bg.bds.ctrlcaps" },
1814       { " Bulgarian Phonetic",  "Bulgarian Phonetic keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=bg.phonetic.ctrlcaps" },
1815       { "Central European ISO", "Central European ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ce.iso2" },
1816       { " Croatian ISO",        "Croatian ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hr.iso" },
1817       { " Czech ISO (accent)",  "Czech ISO keymap (accent keys)",       dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=cs.latin2.qwertz" },
1818       { "Danish CP865", "Danish Code Page 865 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.cp865" },
1819       { " Danish ISO",  "Danish ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.iso" },
1820       { "Estonian ISO", "Estonian ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso" },
1821       { " Estonian ISO 15", "Estonian ISO 8859-15 keymap",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso15" },
1822       { " Estonian CP850", "Estonian Code Page 850 keymap",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.cp850" },
1823       { "Finnish CP850","Finnish Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.cp850" },
1824       { " Finnish ISO",  "Finnish ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.iso" },
1825       { " French ISO (accent)", "French ISO keymap (accent keys)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso.acc" },
1826       { " French ISO",  "French ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso" },
1827       { " French ISO/Macbook",  "French ISO keymap on macbook", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.macbook.acc" },
1828       { "German CP850", "German Code Page 850 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.cp850"        },
1829       { " German ISO",  "German ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.iso" },
1830       { " Greek 101",   "Greek ISO keymap (101 keys)",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=gr.us101.acc" },
1831       { " Greek 104",   "Greek ISO keymap (104 keys)",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=el.iso07" },
1832       { " Greek ELOT",  "Greek ISO keymap (ELOT 1000)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=gr.elot.acc" },
1833       { "Hungarian 101", "Hungarian ISO keymap (101 key)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.101keys" },
1834       { " Hungarian 102", "Hungarian ISO keymap (102 key)",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.102keys" },
1835       { "Icelandic (accent)", "Icelandic ISO keymap (accent keys)",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso.acc" },
1836       { " Icelandic",   "Icelandic ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso" },
1837       { " Italian",     "Italian ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=it.iso" },
1838       { "Japanese 106", "Japanese 106 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.106" },
1839       { "Latin American (accent)",      "Latin American ISO keymap (accent keys)",      dmenuVarCheck,  dmenuSetKmapVariable,   NULL,   "keymap=latinamerican.iso.acc" },
1840       { " Latin American",      "Latin American ISO keymap",    dmenuVarCheck,  dmenuSetKmapVariable,   NULL,   "keymap=latinamerican" },
1841       { "Norway ISO",   "Norwegian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=norwegian.iso" },
1842       { "Polish ISO",   "Polish ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pl_PL.ISO8859-2" },
1843       { " Portuguese (accent)", "Portuguese ISO keymap (accent keys)",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso.acc" },
1844       { " Portuguese",  "Portuguese ISO keymap",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso" },
1845       { "Russia KOI8-R", "Russian KOI8-R keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ru.koi8-r" },
1846       { "Slovak", "Slovak ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=sk.iso2" },
1847       { "Slovenian", "Slovenian ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=si.iso" },
1848       { " Spanish (accent)", "Spanish ISO keymap (accent keys)",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso.acc" },
1849       { " Spanish",     "Spanish ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso" },
1850       { " Swedish CP850", "Swedish Code Page 850 keymap", dmenuVarCheck,        dmenuSetKmapVariable, NULL, "keymap=swedish.cp850" },
1851       { " Swedish ISO", "Swedish ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swedish.iso" },
1852       { " Swiss French ISO (accent)", "Swiss French ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso.acc" },
1853       { " Swiss French ISO", "Swiss French ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso" },
1854       { " Swiss French CP850", "Swiss French Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.cp850" },
1855       { " Swiss German ISO (accent)", "Swiss German ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso.acc" },
1856       { " Swiss German ISO", "Swiss German ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso" },
1857       { " Swiss German CP850", "Swiss German Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.cp850" },
1858       { "UK CP850",     "UK Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.cp850" },
1859       { " UK ISO",      "UK ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.iso" },
1860       { " Ukrainian KOI8-U",    "Ukrainian KOI8-U keymap",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u" },
1861       { " Ukrainian KOI8-U+KOI8-R",     "Ukrainian KOI8-U+KOI8-R keymap (alter)",       dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u.shift.alt" },
1862       { " USA CapsLock->Ctrl",  "US standard (Caps as L-Control)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.pc-ctrl" },
1863       { " USA Dvorak",  "US Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorak" },
1864       { " USA Dvorak (left)",   "US left handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakl" },
1865       { " USA Dvorak (right)",  "US right handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakr" },
1866       { " USA Emacs",   "US standard optimized for EMACS",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.emacs" },
1867       { " USA ISO",     "US ISO keymap",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.iso" },
1868       { " USA UNIX",    "US traditional UNIX-workstation",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.unix" },
1869       { NULL } },
1870 };
1871 #endif /* PC98 */
1872
1873 DMenu MenuSysconsKeyrate = {
1874     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1875     "System Console Keyboard Repeat Rate",
1876     "This menu allows you to set the speed at which keys repeat\n"
1877     "when held down.",
1878     "Choose a keyboard repeat rate",
1879     NULL,
1880     { { "Slow", "Slow keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=slow" },
1881       { "Normal", "\"Normal\" keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=normal" },
1882       { "Fast", "Fast keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=fast" },
1883       { "Default", "Use default keyboard repeat rate",  dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=NO" },
1884       { NULL } },
1885 };
1886
1887 DMenu MenuSysconsSaver = {
1888     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1889     "System Console Screen Saver",
1890     "By default, the console driver will not attempt to do anything\n"
1891     "special with your screen when it's idle.  If you expect to leave your\n"
1892     "monitor switched on and idle for long periods of time then you should\n"
1893     "probably enable one of these screen savers to prevent burn-in.",
1894     "Choose a nifty-looking screen saver",
1895     NULL,
1896     { { "1 Blank",      "Simply blank the screen",
1897         dmenuVarCheck, configSaver, NULL, "saver=blank" },
1898       { "2 Daemon",     "\"BSD Daemon\" animated screen saver (text)",
1899         dmenuVarCheck, configSaver, NULL, "saver=daemon" },
1900       { "3 Fade",       "Fade out effect screen saver",
1901         dmenuVarCheck, configSaver, NULL, "saver=fade" },
1902       { "4 Fire",       "Flames effect screen saver",
1903         dmenuVarCheck, configSaver, NULL, "saver=fire" },
1904       { "5 Green",      "\"Green\" power saving mode (if supported by monitor)",
1905         dmenuVarCheck, configSaver, NULL, "saver=green" },
1906       { "6 Logo",       "\"BSD Daemon\" animated screen saver (graphics)",
1907         dmenuVarCheck, configSaver, NULL, "saver=logo" },
1908       { "7 Rain",       "Rain drops screen saver",
1909         dmenuVarCheck, configSaver, NULL, "saver=rain" },
1910       { "8 Snake",      "Draw a FreeBSD \"snake\" on your screen",
1911         dmenuVarCheck, configSaver, NULL, "saver=snake" },
1912       { "9 Star",       "A \"twinkling stars\" effect",
1913         dmenuVarCheck, configSaver, NULL, "saver=star" },
1914       { "Warp", "A \"stars warping\" effect",
1915         dmenuVarCheck, configSaver, NULL, "saver=warp" },
1916       { "Dragon", "Dragon screensaver (graphics)",
1917         dmenuVarCheck, configSaver, NULL, "saver=dragon" },
1918       { "Timeout",      "Set the screen saver timeout interval",
1919         NULL, configSaverTimeout, NULL, NULL, ' ', ' ', ' ' },
1920       { NULL } },
1921 };
1922
1923 #ifndef PC98
1924 DMenu MenuSysconsScrnmap = {
1925     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1926     "System Console Screenmap",
1927     "Unless you load a specific font, most PC hardware defaults to\n"
1928     "displaying characters in the IBM 437 character set.  However,\n"
1929     "in the Unix world, this character set is very rarely used.  Most\n"
1930     "Western European countries, for example, prefer ISO 8859-1.\n"
1931     "American users won't notice the difference since the bottom half\n"
1932     "of all these character sets is ANSI anyway.\n"
1933     "If your hardware is capable of downloading a new display font,\n"
1934     "you should probably choose that option.  However, for hardware\n"
1935     "where this is not possible (e.g. monochrome adapters), a screen\n"
1936     "map will give you the best approximation that your hardware can\n"
1937     "display at all.",
1938     "Choose a screen map",
1939     NULL,
1940     { { "1 None",                 "No screenmap, don't touch font", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=NO" },
1941       { "2 ISO 8859-1 to IBM437", "W-Europe ISO 8859-1 to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=iso-8859-1_to_cp437" },
1942       { "3 ISO 8859-7 to IBM437", "Greek ISO 8859-7 to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=iso-8859-7_to_cp437" },
1943       { "4 US-ASCII to IBM437",   "US-ASCII to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=us-ascii_to_cp437" },
1944       { "5 KOI8-R to IBM866",     "Russian KOI8-R to IBM 866 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-r2cp866" },
1945       { "6 KOI8-U to IBM866u",    "Ukrainian KOI8-U to IBM 866u screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-u2cp866u" },
1946       { NULL } },
1947 };
1948
1949 DMenu MenuSysconsTtys = {
1950     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1951     "System Console Terminal Type",
1952     "For various console encodings, a corresponding terminal type\n"
1953     "must be chosen in /etc/ttys.\n\n"
1954     "WARNING: For compatibility reasons, only entries starting with\n"
1955     "ttyv and terminal types starting with cons[0-9] can be changed\n"
1956     "via this menu.\n",
1957     "Choose a terminal type",
1958     NULL,
1959     { { "1 None",               "Don't touch anything",  dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=NO" },
1960       { "2 IBM437 (VGA default)", "cons25", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25" },
1961       { "3 ISO 8859-1",         "cons25l1", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l1" },
1962       { "4 ISO 8859-2",         "cons25l2", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l2" },
1963       { "5 ISO 8859-7",         "cons25l7", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l7" },
1964       { "6 KOI8-R",             "cons25r", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25r" },
1965       { "7 KOI8-U",             "cons25u", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25u" },
1966       { "8 US-ASCII",           "cons25w", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25w" },
1967       { NULL } },
1968 };
1969
1970 DMenu MenuSysconsFont = {
1971     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1972     "System Console Font",
1973     "Most PC hardware defaults to displaying characters in the\n"
1974     "IBM 437 character set.  However, in the Unix world, this\n"
1975     "character set is very rarely used.  Most Western European\n"
1976     "countries, for example, prefer ISO 8859-1.\n"
1977     "American users won't notice the difference since the bottom half\n"
1978     "of all these charactersets is ANSI anyway.  However, they might\n"
1979     "want to load a font anyway to use the 30- or 50-line displays.\n"
1980     "If your hardware is capable of downloading a new display font,\n"
1981     "you can select the appropriate font below.",
1982     "Choose a font",
1983     NULL,
1984     { { "1 None", "Use hardware default font", dmenuVarCheck, dmenuSetVariables, NULL,
1985         "font8x8=NO,font8x14=NO,font8x16=NO" },
1986       { "2 IBM 437", "English and others, VGA default", dmenuVarCheck,  dmenuSetVariables, NULL,
1987         "font8x8=cp437-8x8,font8x14=cp437-8x14,font8x16=cp437-8x16" },
1988       { "3 IBM 850", "Western Europe, IBM encoding",    dmenuVarCheck,  dmenuSetVariables, NULL,
1989         "font8x8=cp850-8x8,font8x14=cp850-8x14,font8x16=cp850-8x16" },
1990       { "4 IBM 865", "Norwegian, IBM encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
1991         "font8x8=cp865-8x8,font8x14=cp865-8x14,font8x16=cp865-8x16" },
1992       { "5 IBM 866", "Russian, IBM encoding (use with KOI8-R screenmap)",   dmenuVarCheck,  dmenuSetVariables, NULL,
1993         "font8x8=cp866-8x8,font8x14=cp866-8x14,font8x16=cp866b-8x16,mousechar_start=3" },
1994       { "6 IBM 866u", "Ukrainian, IBM encoding (use with KOI8-U screenmap)",   dmenuVarCheck,  dmenuSetVariables, NULL,
1995         "font8x8=cp866u-8x8,font8x14=cp866u-8x14,font8x16=cp866u-8x16,mousechar_start=3" },
1996       { "7 IBM 1251", "Cyrillic, MS Windows encoding",  dmenuVarCheck, dmenuSetVariables, NULL,
1997         "font8x8=cp1251-8x8,font8x14=cp1251-8x14,font8x16=cp1251-8x16,mousechar_start=3" },
1998       { "8 ISO 8859-1", "Western Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
1999         "font8x8=iso-8x8,font8x14=iso-8x14,font8x16=iso-8x16" },
2000       { "9 ISO 8859-2", "Eastern Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2001         "font8x8=iso02-8x8,font8x14=iso02-8x14,font8x16=iso02-8x16" },
2002       { "a ISO 8859-4", "Baltic, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2003         "font8x8=iso04-8x8,font8x14=iso04-8x14,font8x16=iso04-8x16" },
2004       { "b ISO 8859-7", "Greek, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2005         "font8x8=iso07-8x8,font8x14=iso07-8x14,font8x16=iso07-8x16" },
2006       { "c ISO 8859-8", "Hebrew, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2007         "font8x8=iso08-8x8,font8x14=iso08-8x14,font8x16=iso08-8x16" },
2008       { "d ISO 8859-15", "Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2009         "font8x8=iso15-8x8,font8x14=iso15-8x14,font8x16=iso15-8x16" },
2010       { "e SWISS", "English, better resolution", dmenuVarCheck, dmenuSetVariables, NULL,
2011         "font8x8=swiss-8x8,font8x14=NO,font8x16=swiss-8x16" },
2012       { NULL } },
2013 };
2014 #endif /* PC98 */
2015 #endif /* WITH_SYSCONS */
2016
2017 DMenu MenuUsermgmt = {
2018     DMENU_NORMAL_TYPE,
2019     "User and group management",
2020     "The submenus here allow to manipulate user groups and\n"
2021     "login accounts.\n",
2022     "Configure your user groups and users",
2023     NULL,
2024     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
2025       { "User",         "Add a new user to the system.",        NULL, userAddUser },
2026       { "Group",        "Add a new user group to the system.",  NULL, userAddGroup },
2027       { NULL } },
2028 };
2029
2030 DMenu MenuSecurity = {
2031     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
2032     "System Security Options Menu",
2033     "This menu allows you to configure aspects of the operating system security\n"
2034     "policy.  Please read the system documentation carefully before modifying\n"
2035     "these settings, as they may cause service disruption if used improperly.\n"
2036     "\n"
2037     "Most settings will take affect only following a system reboot.",
2038     "Configure system security options",
2039     NULL,
2040     { { "X Exit",      "Exit this menu (returning to previous)",
2041         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
2042       { " Securelevel", "Configure securelevels for the system",
2043         NULL, configSecurelevel },
2044 #if 0
2045       { " LOMAC",         "Use Low Watermark Mandatory Access Control at boot",
2046         dmenuVarCheck,  dmenuToggleVariable, NULL, "lomac_enable=YES" },
2047 #endif
2048       { " NFS port",    "Require that the NFS clients use reserved ports",
2049         dmenuVarCheck,  dmenuToggleVariable, NULL, "nfs_reserved_port_only=YES" },
2050       { NULL } },
2051 };
2052
2053 DMenu MenuSecurelevel = {
2054     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2055     "Securelevel Configuration Menu",
2056     "This menu allows you to select the securelevel your system runs with.\n"
2057     "When operating at a securelevel, certain root privileges are disabled,\n"
2058     "which may increase resistance to exploits and protect system integrity.\n"
2059     "In secure mode system flags may not be overriden by the root user,\n"
2060     "access to direct kernel memory is limited, and kernel modules may not\n"
2061     "be changed.  In highly secure mode, mounted file systems may not be\n"
2062     "modified on-disk, tampering with the system clock is prohibited.  In\n"
2063     "network secure mode configuration changes to firewalling are prohibited.\n",
2064     "Select a securelevel to operate at - F1 for help",
2065     "securelevel",
2066     { { "X Exit",      "Exit this menu (returning to previous)",
2067         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
2068       { "Disabled", "Disable securelevels", NULL, configSecurelevelDisabled, },
2069       { "Secure", "Secure mode", NULL, configSecurelevelSecure },
2070       { "Highly Secure", "Highly secure mode", NULL, configSecurelevelHighlySecure }, 
2071       { "Network Secure", "Network secure mode", NULL, configSecurelevelNetworkSecure },
2072       { NULL } }
2073 };
2074
2075 DMenu MenuFixit = {
2076     DMENU_NORMAL_TYPE,
2077     "Please choose a fixit option",
2078     "There are three ways of going into \"fixit\" mode:\n"
2079     "- you can use the live filesystem CDROM/DVD, in which case there will be\n"
2080     "  full access to the complete set of FreeBSD commands and utilities,\n"
2081     "- you can use the more limited (but perhaps customized) fixit floppy,\n"
2082     "- or you can start an Emergency Holographic Shell now, which is\n"
2083     "  limited to the subset of commands that is already available right now.",
2084     "Press F1 for more detailed repair instructions",
2085     "fixit",
2086 { { "X Exit",           "Exit this menu (returning to previous)",       NULL, dmenuExit },
2087   { "2 CDROM/DVD",      "Use the \"live\" filesystem CDROM/DVD",        NULL, installFixitCDROM },
2088   { "3 Floppy",         "Use a floppy generated from the fixit image",  NULL, installFixitFloppy },
2089   { "4 Shell",          "Start an Emergency Holographic Shell",         NULL, installFixitHoloShell },
2090   { NULL } },
2091 };