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