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