]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/sysinstall/menus.c
This commit was generated by cvs2svn to compensate for changes in r178481,
[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       { "Hungary",     "ftp.hu.freebsd.org", NULL, dmenuSetVariable, NULL,
629         VAR_FTP_PATH "=ftp://ftp.hu.freebsd.org" },
630
631       { "Iceland",      "ftp.is.freebsd.org", NULL, dmenuSetVariable, NULL,
632         VAR_FTP_PATH "=ftp://ftp.is.freebsd.org" },
633
634       { "Ireland",      "ftp.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
635         VAR_FTP_PATH "=ftp://ftp.ie.freebsd.org" },
636       { " Ireland #2",  "ftp2.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
637         VAR_FTP_PATH "=ftp://ftp2.ie.freebsd.org" },
638       { " Ireland #3",  "ftp3.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
639         VAR_FTP_PATH "=ftp://ftp3.ie.freebsd.org" },
640
641       { "Isreal",       "ftp.il.freebsd.org", NULL, dmenuSetVariable, NULL,
642         VAR_FTP_PATH "=ftp://ftp.il.freebsd.org" },
643
644       { "Italy",        "ftp.it.freebsd.org", NULL, dmenuSetVariable, NULL,
645         VAR_FTP_PATH "=ftp://ftp.it.freebsd.org" },
646
647       { "Japan",        "ftp.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
648         VAR_FTP_PATH "=ftp://ftp.jp.freebsd.org" },
649       { " Japan #2",    "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
650         VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
651       { " Japan #3",    "ftp3.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
652         VAR_FTP_PATH "=ftp://ftp3.jp.freebsd.org" },
653       { " Japan #4",    "ftp4.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
654         VAR_FTP_PATH "=ftp://ftp4.jp.freebsd.org" },
655       { " Japan #5",    "ftp5.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
656         VAR_FTP_PATH "=ftp://ftp5.jp.freebsd.org" },
657       { " Japan #6",    "ftp6.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
658         VAR_FTP_PATH "=ftp://ftp6.jp.freebsd.org" },
659       { " Japan #7",    "ftp7.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
660         VAR_FTP_PATH "=ftp://ftp7.jp.freebsd.org" },
661       { " Japan #8",    "ftp8.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
662         VAR_FTP_PATH "=ftp://ftp8.jp.freebsd.org" },
663       { " Japan #9",    "ftp9.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
664         VAR_FTP_PATH "=ftp://ftp9.jp.freebsd.org" },
665
666       { "Korea",        "ftp.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
667         VAR_FTP_PATH "=ftp://ftp.kr.freebsd.org" },
668       { " Korea #2",    "ftp2.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
669         VAR_FTP_PATH "=ftp://ftp2.kr.freebsd.org" },
670
671       { "Lithuania",    "ftp.lt.freebsd.org", NULL, dmenuSetVariable, NULL,
672         VAR_FTP_PATH "=ftp://ftp.lt.freebsd.org" },
673
674       { "Netherlands",  "ftp.nl.freebsd.org", NULL, dmenuSetVariable, NULL,
675         VAR_FTP_PATH "=ftp://ftp.nl.freebsd.org" },
676       { " Netherlands #2",      "ftp2.nl.freebsd.org", NULL, dmenuSetVariable, NULL,
677         VAR_FTP_PATH "=ftp://ftp2.nl.freebsd.org" },
678
679       { "Norway",       "ftp.no.freebsd.org", NULL, dmenuSetVariable, NULL,
680         VAR_FTP_PATH "=ftp://ftp.no.freebsd.org" },
681       { " Norway #3",   "ftp3.no.freebsd.org", NULL, dmenuSetVariable, NULL,
682         VAR_FTP_PATH "=ftp://ftp3.no.freebsd.org" },
683
684       { "Poland",       "ftp.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
685         VAR_FTP_PATH "=ftp://ftp.pl.freebsd.org" },
686       { " Poland #2",   "ftp2.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
687         VAR_FTP_PATH "=ftp://ftp2.pl.freebsd.org" },
688       { " Poland #5",   "ftp5.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
689         VAR_FTP_PATH "=ftp://ftp5.pl.freebsd.org" },
690
691       { "Portugal",     "ftp.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
692         VAR_FTP_PATH "=ftp://ftp.pt.freebsd.org" },
693       { " Portugal #2", "ftp2.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
694         VAR_FTP_PATH "=ftp://ftp2.pt.freebsd.org" },
695       { " Portugal #4", "ftp4.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
696         VAR_FTP_PATH "=ftp://ftp4.pt.freebsd.org" },
697
698       { "Romania",      "ftp.ro.freebsd.org", NULL, dmenuSetVariable, NULL,
699         VAR_FTP_PATH "=ftp://ftp.ro.freebsd.org" },
700
701       { "Russia",       "ftp.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
702         VAR_FTP_PATH "=ftp://ftp.ru.freebsd.org" },
703       { " Russia #2",   "ftp2.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
704         VAR_FTP_PATH "=ftp://ftp2.ru.freebsd.org" },
705       { " Russia #3",   "ftp3.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
706         VAR_FTP_PATH "=ftp://ftp3.ru.freebsd.org" },
707       { " Russia #4",   "ftp4.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
708         VAR_FTP_PATH "=ftp://ftp4.ru.freebsd.org" },
709
710       { "Singapore",    "ftp.sg.freebsd.org", NULL, dmenuSetVariable, NULL,
711         VAR_FTP_PATH "=ftp://ftp.sg.freebsd.org" },
712
713       { "Slovak Republic",      "ftp.sk.freebsd.org", NULL, dmenuSetVariable, NULL,
714         VAR_FTP_PATH "=ftp://ftp.sk.freebsd.org" },
715
716       { "Slovenia",     "ftp.si.freebsd.org", NULL, dmenuSetVariable, NULL,
717         VAR_FTP_PATH "=ftp://ftp.si.freebsd.org" },
718       { " Slovenia #2", "ftp2.si.freebsd.org", NULL, dmenuSetVariable, NULL,
719         VAR_FTP_PATH "=ftp://ftp2.si.freebsd.org" },
720
721       { "South Africa", "ftp.za.freebsd.org", NULL, dmenuSetVariable, NULL,
722         VAR_FTP_PATH "=ftp://ftp.za.freebsd.org" },
723       { " South Africa #2", "ftp2.za.freebsd.org", NULL, dmenuSetVariable, NULL,
724         VAR_FTP_PATH "=ftp://ftp2.za.freebsd.org" },
725       { " South Africa #3", "ftp3.za.freebsd.org", NULL, dmenuSetVariable, NULL,
726         VAR_FTP_PATH "=ftp://ftp3.za.freebsd.org" },
727       { " South Africa #4", "ftp4.za.freebsd.org", NULL, dmenuSetVariable, NULL,
728         VAR_FTP_PATH "=ftp://ftp4.za.freebsd.org" },
729
730       { "Spain",        "ftp.es.freebsd.org", NULL, dmenuSetVariable, NULL,
731         VAR_FTP_PATH "=ftp://ftp.es.freebsd.org" },
732       { " Spain #2",    "ftp2.es.freebsd.org", NULL, dmenuSetVariable, NULL,
733         VAR_FTP_PATH "=ftp://ftp2.es.freebsd.org" },
734       { " Spain #3",    "ftp3.es.freebsd.org", NULL, dmenuSetVariable, NULL,
735         VAR_FTP_PATH "=ftp://ftp3.es.freebsd.org" },
736
737       { "Sweden",       "ftp.se.freebsd.org", NULL, dmenuSetVariable, NULL,
738         VAR_FTP_PATH "=ftp://ftp.se.freebsd.org" },
739       { " Sweden #2",   "ftp2.se.freebsd.org", NULL, dmenuSetVariable, NULL,
740         VAR_FTP_PATH "=ftp://ftp2.se.freebsd.org" },
741       { " Sweden #3",   "ftp3.se.freebsd.org", NULL, dmenuSetVariable, NULL,
742         VAR_FTP_PATH "=ftp://ftp3.se.freebsd.org" },
743       { " Sweden #5",   "ftp5.se.freebsd.org", NULL, dmenuSetVariable, NULL,
744         VAR_FTP_PATH "=ftp://ftp5.se.freebsd.org" },
745
746       { "Switzerland",  "ftp.ch.freebsd.org", NULL, dmenuSetVariable, NULL,
747         VAR_FTP_PATH "=ftp://ftp.ch.freebsd.org" },
748       { " Switzerland #2",      "ftp2.ch.freebsd.org", NULL, dmenuSetVariable, NULL,
749         VAR_FTP_PATH "=ftp://ftp2.ch.freebsd.org" },
750
751       { "Taiwan",       "ftp.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
752         VAR_FTP_PATH "=ftp://ftp.tw.freebsd.org" },
753       { " Taiwan #2",   "ftp2.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
754         VAR_FTP_PATH "=ftp://ftp2.tw.freebsd.org" },
755       { " Taiwan #3",   "ftp3.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
756         VAR_FTP_PATH "=ftp://ftp3.tw.freebsd.org" },
757       { " Taiwan #4",   "ftp4.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
758         VAR_FTP_PATH "=ftp://ftp4.tw.freebsd.org" },
759       { " Taiwan #6",   "ftp6.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
760         VAR_FTP_PATH "=ftp://ftp6.tw.freebsd.org" },
761       { " Taiwan #11",   "ftp11.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
762         VAR_FTP_PATH "=ftp://ftp11.tw.freebsd.org" },
763
764       { "Turkey",       "ftp.tr.freebsd.org", NULL, dmenuSetVariable, NULL,
765         VAR_FTP_PATH "=ftp://ftp.tr.freebsd.org" },
766       { " Turkey #2",   "ftp2.tr.freebsd.org", NULL, dmenuSetVariable, NULL,
767         VAR_FTP_PATH "=ftp://ftp.tr.freebsd.org" },
768
769       { "UK",           "ftp.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
770         VAR_FTP_PATH "=ftp://ftp.uk.freebsd.org" },
771       { " UK #2",       "ftp2.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
772         VAR_FTP_PATH "=ftp://ftp2.uk.freebsd.org" },
773       { " UK #3",       "ftp3.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
774         VAR_FTP_PATH "=ftp://ftp3.uk.freebsd.org" },
775       { " UK #4",       "ftp4.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
776         VAR_FTP_PATH "=ftp://ftp4.uk.freebsd.org" },
777       { " UK #5",       "ftp5.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
778         VAR_FTP_PATH "=ftp://ftp5.uk.freebsd.org" },
779       { " UK #6",       "ftp6.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
780         VAR_FTP_PATH "=ftp://ftp6.uk.freebsd.org" },
781
782       { "Ukraine",      "ftp.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
783         VAR_FTP_PATH "=ftp://ftp.ua.freebsd.org" },
784       { " Ukraine #2",  "ftp2.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
785         VAR_FTP_PATH "=ftp://ftp2.ua.freebsd.org" },
786       { " Ukraine #5",  "ftp5.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
787         VAR_FTP_PATH "=ftp://ftp5.ua.freebsd.org" },
788       { " Ukraine #6",  "ftp6.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
789         VAR_FTP_PATH "=ftp://ftp6.ua.freebsd.org" },
790       { " Ukraine #7",  "ftp7.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
791         VAR_FTP_PATH "=ftp://ftp7.ua.freebsd.org" },
792       { " Ukraine #8",  "ftp8.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
793         VAR_FTP_PATH "=ftp://ftp8.ua.freebsd.org" },
794
795       { "USA #1",       "ftp1.us.freebsd.org", NULL, dmenuSetVariable, NULL,
796         VAR_FTP_PATH "=ftp://ftp1.us.freebsd.org" },
797       { " USA #2",      "ftp2.us.freebsd.org", NULL, dmenuSetVariable, NULL,
798         VAR_FTP_PATH "=ftp://ftp2.us.freebsd.org" },
799       { " USA #3",      "ftp3.us.freebsd.org", NULL, dmenuSetVariable, NULL,
800         VAR_FTP_PATH "=ftp://ftp3.us.freebsd.org" },
801       { " USA #4",      "ftp4.us.freebsd.org", NULL, dmenuSetVariable, NULL,
802         VAR_FTP_PATH "=ftp://ftp4.us.freebsd.org" },
803       { " USA #5",      "ftp5.us.freebsd.org", NULL, dmenuSetVariable, NULL,
804         VAR_FTP_PATH "=ftp://ftp5.us.freebsd.org" },
805       { " USA #6",      "ftp6.us.freebsd.org", NULL, dmenuSetVariable, NULL,
806         VAR_FTP_PATH "=ftp://ftp6.us.freebsd.org" },
807       { " USA #7",      "ftp7.us.freebsd.org", NULL, dmenuSetVariable, NULL,
808         VAR_FTP_PATH "=ftp://ftp7.us.freebsd.org" },
809       { " USA #8",      "ftp8.us.freebsd.org", NULL, dmenuSetVariable, NULL,
810         VAR_FTP_PATH "=ftp://ftp8.us.freebsd.org" },
811       { " USA #9",      "ftp9.us.freebsd.org", NULL, dmenuSetVariable, NULL,
812         VAR_FTP_PATH "=ftp://ftp9.us.freebsd.org" },
813       { " USA #10",     "ftp10.us.freebsd.org", NULL, dmenuSetVariable, NULL,
814         VAR_FTP_PATH "=ftp://ftp10.us.freebsd.org" },
815       { " USA #11",     "ftp11.us.freebsd.org", NULL, dmenuSetVariable, NULL,
816         VAR_FTP_PATH "=ftp://ftp11.us.freebsd.org" },
817       { " USA #12",     "ftp12.us.freebsd.org", NULL, dmenuSetVariable, NULL,
818         VAR_FTP_PATH "=ftp://ftp12.us.freebsd.org" },
819       { " USA #13",     "ftp13.us.freebsd.org", NULL, dmenuSetVariable, NULL,
820         VAR_FTP_PATH "=ftp://ftp13.us.freebsd.org" },
821       { " USA #14",     "ftp14.us.freebsd.org", NULL, dmenuSetVariable, NULL,
822         VAR_FTP_PATH "=ftp://ftp14.us.freebsd.org" },
823       { " USA #15",     "ftp15.us.freebsd.org", NULL, dmenuSetVariable, NULL,
824         VAR_FTP_PATH "=ftp://ftp15.us.freebsd.org" },
825
826       { NULL } }
827 };
828
829 DMenu MenuMediaTape = {
830     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
831     "Choose a tape drive type",
832     "FreeBSD can be installed from tape drive, though this installation\n"
833     "method requires a certain amount of temporary storage in addition\n"
834     "to the space required by the distribution itself (tape drives make\n"
835     "poor random-access devices, so we extract _everything_ on the tape\n"
836     "in one pass).  If you have sufficient space for this, then you should\n"
837     "select one of the following tape devices detected on your system.",
838     NULL,
839     NULL,
840     { { NULL } },
841 };
842
843 DMenu MenuNetworkDevice = {
844     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
845     "Network interface information required",
846     "If you are using PPP over a serial device, as opposed to a direct\n"
847     "ethernet connection, then you may first need to dial your Internet\n"
848     "Service Provider using the ppp utility we provide for that purpose.\n"
849     "If you're using SLIP over a serial device then the expectation is\n"
850     "that you have a HARDWIRED connection.\n\n"
851     "You can also install over a parallel port using a special \"laplink\"\n"
852     "cable to another machine running FreeBSD.",
853     "Press F1 to read network configuration manual",
854     "network_device",
855     { { NULL } },
856 };
857
858 /* Prototype KLD load menu */
859 DMenu MenuKLD = {
860     DMENU_NORMAL_TYPE,
861     "KLD Menu",
862     "Load a KLD from a floppy\n",
863     NULL,
864     NULL,
865     { { NULL } },
866 };
867
868 /* The media selection menu */
869 DMenu MenuMedia = {
870     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
871     "Choose Installation Media",
872     "FreeBSD can be installed from a variety of different installation\n"
873     "media, ranging from floppies to an Internet FTP server.  If you're\n"
874     "installing FreeBSD from a supported CD/DVD drive then this is generally\n"
875     "the best media to use if you have no overriding reason for using other\n"
876     "media.",
877     "Press F1 for more information on the various media types",
878     "media",
879     { { "1 CD/DVD",             "Install from a FreeBSD CD/DVD",        NULL, mediaSetCDROM },
880       { "2 FTP",                "Install from an FTP server",           NULL, mediaSetFTPActive },
881       { "3 FTP Passive",        "Install from an FTP server through a firewall", NULL, mediaSetFTPPassive },
882       { "4 HTTP",               "Install from an FTP server through a http proxy", NULL, mediaSetHTTP },
883       { "5 DOS",                "Install from a DOS partition",         NULL, mediaSetDOS },
884       { "6 NFS",                "Install over NFS",                     NULL, mediaSetNFS },
885       { "7 File System",        "Install from an existing filesystem",  NULL, mediaSetUFS },
886       { "8 Floppy",             "Install from a floppy disk set",       NULL, mediaSetFloppy },
887       { "9 Tape",               "Install from SCSI or QIC tape",        NULL, mediaSetTape },
888       { "X Options",            "Go to the Options screen",             NULL, optionsEditor },
889       { NULL } },
890 };
891
892 /* The distributions menu */
893 DMenu MenuDistributions = {
894     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
895     "Choose Distributions",
896     "As a convenience, we provide several \"canned\" distribution sets.\n"
897     "These select what we consider to be the most reasonable defaults for the\n"
898     "type of system in question.  If you would prefer to pick and choose the\n"
899     "list of distributions yourself, simply select \"Custom\".  You can also\n"
900     "pick a canned distribution set and then fine-tune it with the Custom item.\n\n"
901     "Choose an item by pressing [SPACE] or [ENTER].  When finished, choose the\n"
902     "Exit item or move to the OK button with [TAB].",
903     "Press F1 for more information on these options.",
904     "distributions",
905     { { "X Exit", "Exit this menu (returning to previous)",
906         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
907       { "All",                  "All system sources, binaries and X Window System",
908         checkDistEverything,    distSetEverything, NULL, NULL, ' ', ' ', ' ' },
909       { "Reset",                "Reset selected distribution list to nothing",
910         NULL,                   distReset, NULL, NULL, ' ', ' ', ' ' },
911       { "4 Developer",          "Full sources, binaries and doc but no games", 
912         checkDistDeveloper,     distSetDeveloper },
913       { "5 X-Developer",        "Same as above + X Window System",
914         checkDistXDeveloper,    distSetXDeveloper },
915       { "6 Kern-Developer",     "Full binaries and doc, kernel sources only",
916         checkDistKernDeveloper, distSetKernDeveloper },
917       { "7 X-Kern-Developer",   "Same as above + X Window System",
918         checkDistXKernDeveloper, distSetXKernDeveloper },
919       { "8 User",               "Average user - binaries and doc only",
920         checkDistUser,          distSetUser },
921       { "9 X-User",             "Same as above + X Window System",
922         checkDistXUser,         distSetXUser },
923       { "A Minimal",            "The smallest configuration possible",
924         checkDistMinimum,       distSetMinimum },
925       { "B Custom",             "Specify your own distribution set",
926         NULL,                   dmenuSubmenu, NULL, &MenuSubDistributions, '>', '>', '>' },
927       { NULL } },
928 };
929
930 DMenu MenuSubDistributions = {
931     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
932     "Select the distributions you wish to install.",
933     "Please check off the distributions you wish to install.  At the\n"
934     "very minimum, this should be \"base\".",
935     NULL,
936     NULL,
937     { { "X Exit", "Exit this menu (returning to previous)",
938         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
939       { "All",          "All system sources, binaries and X Window System",
940         NULL, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
941       { "Reset",        "Reset all of the below",
942         NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
943       { " base",        "Binary base distribution (required)",
944         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_BASE },
945       { " kernels",     "Binary kernel distributions (required)",
946         kernelFlagCheck,distSetKernel },
947       { " dict",        "Spelling checker dictionary files",
948         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DICT },
949       { " doc",         "Miscellaneous FreeBSD online docs",
950         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DOC },
951       { " games",       "Games (non-commercial)",
952         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_GAMES },
953       { " info",        "GNU info files",
954         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_INFO },
955 #ifdef __amd64__
956       { " lib32",       "32-bit runtime compatibility libraries",
957         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LIB32 },
958 #endif
959       { " man",         "System manual pages - recommended",
960         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_MANPAGES },
961       { " catman",      "Preformatted system manual pages",
962         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_CATPAGES },
963       { " proflibs",    "Profiled versions of the libraries",
964         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PROFLIBS },
965       { " src",         "Sources for everything",
966         srcFlagCheck,   distSetSrc },
967       { " ports",       "The FreeBSD Ports collection",
968         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PORTS },
969       { " local",       "Local additions collection",
970         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LOCAL},
971       { " X.Org",       "The X.Org distribution",
972         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_XORG },
973       { NULL } },
974 };
975
976 DMenu MenuKernelDistributions = {
977     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
978     "Select the operating system kernels you wish to install.",
979     "Please check off those kernels you wish to install.\n",
980     NULL,
981     NULL,
982     { { "X Exit", "Exit this menu (returning to previous)",
983         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
984       { "All",          "Select all of the below",
985         NULL,           setKernel, NULL, NULL, ' ', ' ', ' ' },
986       { "Reset",        "Reset all of the below",
987         NULL,           clearKernel, NULL, NULL, ' ', ' ', ' ' },
988       { " GENERIC",     "GENERIC kernel configuration",
989         dmenuFlagCheck, dmenuSetFlag, NULL, &KernelDists, '[', 'X', ']', DIST_KERNEL_GENERIC },
990 #ifdef WITH_SMP
991       { " SMP",         "GENERIC symmetric multiprocessor kernel configuration",
992         dmenuFlagCheck, dmenuSetFlag,   NULL, &KernelDists, '[', 'X', ']', DIST_KERNEL_SMP },
993 #endif
994       { NULL } },
995 };
996
997 DMenu MenuSrcDistributions = {
998     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
999     "Select the sub-components of src you wish to install.",
1000     "Please check off those portions of the FreeBSD source tree\n"
1001     "you wish to install.",
1002     NULL,
1003     NULL,
1004     { { "X Exit", "Exit this menu (returning to previous)",
1005         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1006       { "All",          "Select all of the below",
1007         NULL,           setSrc, NULL, NULL, ' ', ' ', ' ' },
1008       { "Reset",        "Reset all of the below",
1009         NULL,           clearSrc, NULL, NULL, ' ', ' ', ' ' },
1010       { " base",        "top-level files in /usr/src",
1011         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BASE },
1012       { " cddl",        "/usr/src/cddl (software from Sun)",
1013         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CDDL },
1014       { " compat",      "/usr/src/compat (compatibility software)",
1015         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_COMPAT },
1016       { " contrib",     "/usr/src/contrib (contributed software)",
1017         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CONTRIB },
1018       { " crypto",      "/usr/src/crypto (contrib encryption sources)",
1019         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SCRYPTO },
1020       { " gnu",         "/usr/src/gnu (software from the GNU Project)",
1021         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GNU },
1022       { " etc",         "/usr/src/etc (miscellaneous system files)",
1023         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_ETC },
1024       { " games",       "/usr/src/games (the obvious!)",
1025         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GAMES },
1026       { " include",     "/usr/src/include (header files)",
1027         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_INCLUDE },
1028       { " krb5",        "/usr/src/kerberos5 (sources for Kerberos5)",
1029         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SKERBEROS5 },
1030       { " lib",         "/usr/src/lib (system libraries)",
1031         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIB },
1032       { " libexec",     "/usr/src/libexec (system programs)",
1033         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIBEXEC },
1034       { " release",     "/usr/src/release (release-generation tools)",
1035         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_RELEASE },
1036       { " rescue",      "/usr/src/rescue (static rescue tools)",
1037         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_RESCUE },
1038       { " bin",         "/usr/src/bin (system binaries)",
1039         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BIN },
1040       { " sbin",        "/usr/src/sbin (system binaries)",
1041         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SBIN },
1042       { " secure",      "/usr/src/secure (BSD encryption sources)",
1043         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SSECURE },
1044       { " share",       "/usr/src/share (documents and shared files)",
1045         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SHARE },
1046       { " sys",         "/usr/src/sys (FreeBSD kernel)",
1047         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SYS },
1048       { " tools",       "/usr/src/tools (miscellaneous tools)",
1049         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_TOOLS },
1050       { " ubin",        "/usr/src/usr.bin (user binaries)",
1051         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_UBIN },
1052       { " usbin",       "/usr/src/usr.sbin (aux system binaries)",
1053         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_USBIN },
1054       { NULL } },
1055 };
1056
1057 DMenu MenuDiskDevices = {
1058     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1059     "Select Drive(s)",
1060     "Please select the drive, or drives, on which you wish to perform\n"
1061     "this operation.  If you are attempting to install a boot partition\n"
1062     "on a drive other than the first one or have multiple operating\n"
1063     "systems on your machine, you will have the option to install a boot\n"
1064     "manager later.  To select a drive, use the arrow keys to move to it\n"
1065     "and press [SPACE] or [ENTER].  To de-select it, press it again.\n\n"
1066     "Use [TAB] to get to the buttons and leave this menu.",
1067     "Press F1 for important information regarding disk geometry!",
1068     "drives",
1069     { { NULL } },
1070 };
1071
1072 DMenu MenuHTMLDoc = {
1073     DMENU_NORMAL_TYPE,
1074     "Select HTML Documentation pointer",
1075     "Please select the body of documentation you're interested in, the main\n"
1076     "ones right now being the FAQ and the Handbook.  You can also choose \"other\"\n"
1077     "to enter an arbitrary URL for browsing.",
1078     "Press F1 for more help on what you see here.",
1079     "html",
1080     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
1081       { "2 Handbook",   "The FreeBSD Handbook.",                                NULL, docShowDocument },
1082       { "3 FAQ",        "The Frequently Asked Questions guide.",                NULL, docShowDocument },
1083       { "4 Home",       "The Home Pages for the FreeBSD Project (requires net)", NULL, docShowDocument },
1084       { "5 Other",      "Enter a URL.",                                         NULL, docShowDocument },
1085       { NULL } },
1086 };
1087
1088 /* The main installation menu */
1089 DMenu MenuInstallCustom = {
1090     DMENU_NORMAL_TYPE,
1091     "Choose Custom Installation Options",
1092     "This is the custom installation menu. You may use this menu to specify\n"
1093     "details on the type of distribution you wish to have, where you wish\n"
1094     "to install it from and how you wish to allocate disk storage to FreeBSD.",
1095     NULL,
1096     NULL,
1097     { { "X Exit",               "Exit this menu (returning to previous)", NULL, dmenuExit },
1098       { "2 Options",            "View/Set various installation options", NULL, optionsEditor },
1099 #ifndef WITH_SLICES
1100       { "3 Label",              "Label disk partitions",                NULL, diskLabelEditor },
1101       { "4 Distributions",      "Select distribution(s) to extract",    NULL, dmenuSubmenu, NULL, &MenuDistributions },
1102       { "5 Media",              "Choose the installation media type",   NULL, dmenuSubmenu, NULL, &MenuMedia },
1103       { "6 Commit",             "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1104 #else
1105       { "3 Partition",          "Allocate disk space for FreeBSD",      NULL, diskPartitionEditor },
1106       { "4 Label",              "Label allocated disk partitions",      NULL, diskLabelEditor },
1107       { "5 Distributions",      "Select distribution(s) to extract",    NULL, dmenuSubmenu, NULL, &MenuDistributions },
1108       { "6 Media",              "Choose the installation media type",   NULL, dmenuSubmenu, NULL, &MenuMedia },
1109       { "7 Commit",             "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1110 #endif
1111       { NULL } },
1112 };
1113
1114 #if defined(__i386__) || defined(__amd64__)
1115 #ifdef PC98
1116 /* IPL type menu */
1117 DMenu MenuIPLType = {
1118     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1119     "overwrite me",             /* will be disk specific label */
1120     "If you want a FreeBSD Boot Manager, select \"BootMgr\".  If you would\n"
1121     "prefer your Boot Manager to remain untouched then select \"None\".\n\n",
1122     "Press F1 to read about drive setup",
1123     "drives",
1124     { { "BootMgr",      "Install the FreeBSD Boot Manager",
1125         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr },
1126       { "None",         "Leave the IPL untouched",
1127         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
1128       { NULL } },
1129 };
1130 #else
1131 /* MBR type menu */
1132 DMenu MenuMBRType = {
1133     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1134     "overwrite me",             /* will be disk specific label */
1135     "FreeBSD comes with a boot selector that allows you to easily\n"
1136     "select between FreeBSD and any other operating systems on your machine\n"
1137     "at boot time.  If you have more than one drive and want to boot\n"
1138     "from the second one, the boot selector will also make it possible\n"
1139     "to do so (limitations in the PC BIOS usually prevent this otherwise).\n"
1140     "If you do not want a boot selector, or wish to replace an existing\n"
1141     "one, select \"standard\".  If you would prefer your Master Boot\n"
1142     "Record to remain untouched then select \"None\".\n\n"
1143     "  NOTE:  PC-DOS users will almost certainly require \"None\"!",
1144     "Press F1 to read about drive setup",
1145     "drives",
1146     { { "BootMgr",      "Install the FreeBSD Boot Manager",
1147         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr },
1148       { "Standard",     "Install a standard MBR (no boot manager)",
1149         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
1150       { "None",         "Leave the Master Boot Record untouched",
1151         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 2 },
1152       { NULL } },
1153 };
1154 #endif /* PC98 */
1155 #endif /* __i386__ */
1156
1157 /* Final configuration menu */
1158 DMenu MenuConfigure = {
1159     DMENU_NORMAL_TYPE,
1160     "FreeBSD Configuration Menu",       /* title */
1161     "If you've already installed FreeBSD, you may use this menu to customize\n"
1162     "it somewhat to suit your particular configuration.  Most importantly,\n"
1163     "you can use the Packages utility to load extra \"3rd party\"\n"
1164     "software not provided in the base distributions.",
1165     "Press F1 for more information on these options",
1166     "configure",
1167     { { "X Exit",               "Exit this menu (returning to previous)",
1168         NULL,   dmenuExit },
1169       { " Distributions", "Install additional distribution sets",
1170         NULL, distExtractAll },
1171       { " Packages",    "Install pre-packaged software for FreeBSD",
1172         NULL, configPackages },
1173       { " Root Password", "Set the system manager's password",
1174         NULL,   dmenuSystemCommand, NULL, "passwd root" },
1175 #ifdef WITH_SLICES
1176       { " Fdisk",       "The disk Slice (PC-style partition) Editor",
1177         NULL, diskPartitionEditor },
1178 #endif
1179       { " Label",       "The disk Label editor",
1180         NULL, diskLabelEditor },
1181       { " User Management",     "Add user and group information",
1182         NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
1183 #ifdef WITH_SYSCONS
1184       { " Console",     "Customize system console behavior",
1185         NULL,   dmenuSubmenu, NULL, &MenuSyscons },
1186 #endif
1187       { " Time Zone",   "Set which time zone you're in",
1188         NULL,   dmenuSystemCommand, NULL, "tzsetup" },
1189       { " Media",       "Change the installation media type",
1190         NULL,   dmenuSubmenu, NULL, &MenuMedia },
1191 #ifdef WITH_MICE
1192       { " Mouse",       "Configure your mouse",
1193         NULL,   dmenuSubmenu, NULL, &MenuMouse },
1194 #endif
1195       { " Networking",  "Configure additional network services",
1196         NULL,   dmenuSubmenu, NULL, &MenuNetworking },
1197       { " Security",    "Configure system security options",
1198         NULL,   dmenuSubmenu, NULL, &MenuSecurity },
1199       { " Startup",     "Configure system startup options",
1200         NULL,   dmenuSubmenu, NULL, &MenuStartup },
1201       { " TTYs",        "Configure system ttys.",
1202         NULL,   configEtcTtys, NULL, "ttys" },
1203       { " Options",     "View/Set various installation options",
1204         NULL, optionsEditor },
1205       { " HTML Docs",   "Go to the HTML documentation menu (post-install)",
1206         NULL, docBrowser },
1207       { " Load KLD",    "Load a KLD from a floppy",
1208         NULL, kldBrowser },
1209       { NULL } },
1210 };
1211
1212 DMenu MenuStartup = {
1213     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1214     "Startup Services Menu",
1215     "This menu allows you to configure various aspects of your system's\n"
1216     "startup configuration.  Use [SPACE] or [ENTER] to select items, and\n"
1217     "[TAB] to move to the buttons.  Select Exit to leave this menu.",
1218     NULL,
1219     NULL,
1220     { { "X Exit",       "Exit this menu (returning to previous)",
1221         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1222 #ifdef __i386__
1223       { " APM",         "Auto-power management services (typically laptops)",
1224         dmenuVarCheck,  dmenuToggleVariable, NULL, "apm_enable=YES" },
1225 #endif
1226 #ifdef PCCARD_ARCH
1227       { " pccard",      "Enable PCCARD (AKA PCMCIA) services (also laptops)",
1228         dmenuVarCheck, dmenuToggleVariable, NULL, "pccard_enable=YES" },
1229       { " pccard mem",  "Set PCCARD memory address (if enabled)",
1230         dmenuVarCheck, dmenuISetVariable, NULL, "pccard_mem" },
1231       { " pccard ifconfig",     "List of PCCARD ethernet devices to configure",
1232         dmenuVarCheck, dmenuISetVariable, NULL, "pccard_ifconfig" },
1233 #endif
1234       { " ",            " -- ", NULL,   NULL, NULL, NULL, ' ', ' ', ' ' },
1235       { " Startup dirs",        "Set the list of dirs to look for startup scripts",
1236         dmenuVarCheck, dmenuISetVariable, NULL, "local_startup" },
1237       { " named",       "Run a local name server on this host",
1238         dmenuVarCheck, dmenuToggleVariable, NULL, "named_enable=YES" },
1239       { " named flags", "Set default flags to named (if enabled)",
1240         dmenuVarCheck, dmenuISetVariable, NULL, "named_flags" },
1241       { " NIS client",  "This host wishes to be an NIS client.",
1242         dmenuVarCheck, configRpcBind, NULL, "nis_client_enable=YES" },
1243       { " NIS domainname",      "Set NIS domainname (if enabled)",
1244         dmenuVarCheck, dmenuISetVariable, NULL, "nisdomainname" },
1245       { " NIS server",  "This host wishes to be an NIS server.",
1246         dmenuVarCheck, configRpcBind, NULL, "nis_server_enable=YES" },
1247       { " ",            " -- ", NULL,   NULL, NULL, NULL, ' ', ' ', ' ' },
1248       { " Accounting",  "This host wishes to run process accounting.",
1249         dmenuVarCheck, dmenuToggleVariable, NULL, "accounting_enable=YES" },
1250       { " lpd",         "This host has a printer and wants to run lpd.",
1251         dmenuVarCheck, dmenuToggleVariable, NULL, "lpd_enable=YES" },
1252 #ifdef WITH_LINUX
1253       { " Linux",       "This host wants to be able to run Linux binaries.",
1254         dmenuVarCheck, configLinux, NULL, VAR_LINUX_ENABLE "=YES" },
1255 #endif
1256 #ifdef __i386__
1257       { " SCO",         "This host wants to be able to run IBCS2 binaries.",
1258         dmenuVarCheck, dmenuToggleVariable, NULL, "ibcs2_enable=YES" },
1259       { " SVR4",        "This host wants to be able to run SVR4 binaries.",
1260         dmenuVarCheck, dmenuToggleVariable, NULL, "svr4_enable=YES" },
1261 #endif
1262 #ifdef __alpha__
1263       { " OSF/1",       "This host wants to be able to run DEC OSF/1 binaries.",
1264         dmenuVarCheck, configOSF1, NULL, VAR_OSF1_ENABLE "=YES" },
1265 #endif
1266       { " quotas",      "This host wishes to check quotas on startup.",
1267         dmenuVarCheck, dmenuToggleVariable, NULL, "check_quotas=YES" },
1268       { NULL } },
1269 };
1270
1271 DMenu MenuNetworking = {
1272     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1273     "Network Services Menu",
1274     "You may have already configured one network device (and the other\n"
1275     "various hostname/gateway/name server parameters) in the process\n"
1276     "of installing FreeBSD.  This menu allows you to configure other\n"
1277     "aspects of your system's network configuration.",
1278     NULL,
1279     NULL,
1280     { { "X Exit",       "Exit this menu (returning to previous)",
1281         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1282       { " Interfaces",  "Configure additional network interfaces",
1283         NULL, tcpMenuSelect },
1284       { " AMD",         "This machine wants to run the auto-mounter service",
1285         dmenuVarCheck,  configRpcBind, NULL, "amd_enable=YES" },
1286       { " AMD Flags",   "Set flags to AMD service (if enabled)",
1287         dmenuVarCheck,  dmenuISetVariable, NULL, "amd_flags" },
1288       { " Anon FTP",    "This machine wishes to allow anonymous FTP.",
1289         dmenuVarCheck,  configAnonFTP, NULL, "anon_ftp" },
1290       { " Gateway",     "This machine will route packets between interfaces",
1291         dmenuVarCheck,  dmenuToggleVariable, NULL, "gateway_enable=YES" },
1292       { " inetd",       "This machine wants to run the inet daemon",
1293         dmenuVarCheck,  configInetd, NULL, "inetd_enable=YES" },
1294       { " Mail",        "This machine wants to run a Mail Transfer Agent",
1295         NULL,           dmenuSubmenu, NULL, &MenuMTA },
1296       { " NFS client",  "This machine will be an NFS client",
1297         dmenuVarCheck,  dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
1298       { " NFS server",  "This machine will be an NFS server",
1299         dmenuVarCheck,  configNFSServer, NULL, "nfs_server_enable=YES" },
1300       { " Ntpdate",     "Select a clock-synchronization server",
1301         dmenuVarCheck,  dmenuSubmenu, NULL, &MenuNTP, '[', 'X', ']',
1302         (uintptr_t)"ntpdate_enable=YES" },
1303       { " PCNFSD",      "Run authentication server for clients with PC-NFS.",
1304         dmenuVarCheck,  configPCNFSD, NULL, "pcnfsd" },
1305       { " rpcbind",     "RPC port mapping daemon (formerly portmapper)",
1306         dmenuVarCheck, dmenuToggleVariable, NULL, "rpcbind_enable=YES" },
1307       { " rpc.statd",   "NFS status monitoring daemon",
1308         dmenuVarCheck, configRpcBind, NULL, "rpc_statd_enable=YES" },
1309       { " rpc.lockd",   "NFS file locking daemon",
1310         dmenuVarCheck, configRpcBind, NULL, "rpc_lockd_enable=YES" },
1311       { " Routed",      "Select routing daemon (default: routed)",
1312         dmenuVarCheck,  configRouter, NULL, "router_enable=YES" },
1313       { " Rwhod",       "This machine wants to run the rwho daemon",
1314         dmenuVarCheck,  dmenuToggleVariable, NULL, "rwhod_enable=YES" },
1315       { " sshd",        "This machine wants to run the SSH daemon",
1316         dmenuVarCheck,  dmenuToggleVariable, NULL, "sshd_enable=YES" },
1317       { " TCP Extensions", "Allow RFC1323 and RFC1644 TCP extensions?",
1318         dmenuVarCheck,  dmenuToggleVariable, NULL, "tcp_extensions=YES" },
1319       { NULL } },
1320 };
1321
1322 DMenu MenuMTA = {
1323     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1324     "Mail Transfer Agent Selection",
1325     "You can choose which Mail Transfer Agent (MTA) you wish to install and run.\n"
1326     "Selecting Sendmail local disables sendmail's network socket for\n"
1327     "incoming mail, but still enables sendmail for local and outbound mail.\n"
1328     "The Postfix option will install the Postfix MTA from the ports\n"
1329     "collection.  The Exim option will install the Exim MTA from the ports\n"
1330     "collection.  To return to the previous menu, select Exit.",
1331     NULL,
1332     NULL,
1333     {
1334       { "Sendmail",           "Use sendmail",
1335         dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=YES" },
1336       { "Sendmail local",    "Use sendmail, but do not listen on the network",
1337         dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=NO" },
1338       { "Postfix",            "Use the Postfix MTA",
1339       NULL, configMTAPostfix, NULL, NULL },
1340       { "Exim",               "Use the Exim MTA",
1341       NULL, configMTAExim, NULL, NULL },
1342       { "None",               "Do not install an MTA",
1343         dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=NONE" },
1344       { "X Exit",             "Exit this menu (returning to previous)",
1345         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1346       { NULL } },
1347 };
1348
1349 DMenu MenuNTP = {
1350     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1351     "NTPDATE Server Selection",
1352     "There are a number of time synchronization servers available\n"
1353     "for public use around the Internet.  Please select one reasonably\n"
1354     "close to you to have your system time synchronized accordingly.",
1355     "These are the primary open-access NTP servers",
1356     NULL,
1357     { { "None",                 "No NTP server",
1358         dmenuVarsCheck, dmenuSetVariables, NULL, 
1359         "ntpdate_enable=NO,ntpdate_flags=none" },
1360       { "Other",                "Select a site not on this list",
1361         dmenuVarsCheck, configNTP, NULL, NULL },
1362       { "Worldwide",            "pool.ntp.org",
1363         dmenuVarsCheck, dmenuSetVariables, NULL, 
1364         "ntpdate_enable=YES,ntpdate_flags=pool.ntp.org" },
1365       { "Asia",         "asia.pool.ntp.org",
1366         dmenuVarsCheck, dmenuSetVariables, NULL, 
1367         "ntpdate_enable=YES,ntpdate_flags=asia.pool.ntp.org" },
1368       { "Europe",               "europe.pool.ntp.org",
1369         dmenuVarsCheck, dmenuSetVariables, NULL, 
1370         "ntpdate_enable=YES,ntpdate_flags=europe.pool.ntp.org" },
1371       { "Oceania",              "oceania.pool.ntp.org",
1372         dmenuVarsCheck, dmenuSetVariables, NULL, 
1373         "ntpdate_enable=YES,ntpdate_flags=oceania.pool.ntp.org" },
1374       { "North America",        "north-america.pool.ntp.org",
1375         dmenuVarsCheck, dmenuSetVariables, NULL, 
1376         "ntpdate_enable=YES,ntpdate_flags=north-america.pool.ntp.org" },
1377       { "Argentina",            "tick.nap.com.ar",
1378         dmenuVarsCheck, dmenuSetVariables, NULL,
1379         "ntpdate_enable=YES,ntpdate_flags=tick.nap.com.ar" },
1380       { "Argentina #2",         "time.sinectis.com.ar",
1381         dmenuVarsCheck, dmenuSetVariables, NULL,
1382         "ntpdate_enable=YES,ntpdate_flags=time.sinectis.com.ar" },
1383       { "Argentina #3",         "tock.nap.com.ar",
1384         dmenuVarsCheck, dmenuSetVariables, NULL,
1385         "ntpdate_enable=YES,ntpdate_flags=tock.nap.com.ar" },
1386       { "Australia",            "au.pool.ntp.org",
1387         dmenuVarsCheck, dmenuSetVariables, NULL, 
1388         "ntpdate_enable=YES,ntpdate_flags=au.pool.ntp.org" },
1389       { "Australia #2",         "augean.eleceng.adelaide.edu.au",
1390         dmenuVarsCheck, dmenuSetVariables, NULL, 
1391         "ntpdate_enable=YES,ntpdate_flags=augean.eleceng.adelaide.edu.au" },
1392       { "Australia #3",         "ntp.adelaide.edu.au",
1393         dmenuVarsCheck, dmenuSetVariables, NULL, 
1394         "ntpdate_enable=YES,ntpdate_flags=ntp.adelaide.edu.au" },
1395       { "Australia #4",         "ntp.saard.net",
1396         dmenuVarsCheck, dmenuSetVariables, NULL, 
1397         "ntpdate_enable=YES,ntpdate_flags=ntp.saard.net" },
1398       { "Australia #5",         "time.deakin.edu.au",
1399         dmenuVarsCheck, dmenuSetVariables, NULL, 
1400         "ntpdate_enable=YES,ntpdate_flags=time.deakin.edu.au" },
1401       { "Belgium",              "ntp1.belbone.be",
1402         dmenuVarsCheck, dmenuSetVariables, NULL,
1403         "ntpdate_enable=YES,ntpdate_flags=ntp1.belbone.be" },
1404       { "Belgium #2",           "ntp2.belbone.be",
1405         dmenuVarsCheck, dmenuSetVariables, NULL,
1406         "ntpdate_enable=YES,ntpdate_flags=ntp2.belbone.be" },
1407       { "Brazil",               "a.ntp.br",
1408         dmenuVarsCheck, dmenuSetVariables, NULL,
1409         "ntpdate_enable=YES,ntpdate_flags=a.ntp.br" },
1410       { "Brazil #2",            "b.ntp.br",
1411         dmenuVarsCheck, dmenuSetVariables, NULL,
1412         "ntpdate_enable=YES,ntpdate_flags=b.ntp.br" },
1413       { "Brazil #3",            "c.ntp.br",
1414         dmenuVarsCheck, dmenuSetVariables, NULL,
1415         "ntpdate_enable=YES,ntpdate_flags=c.ntp.br" },
1416       { "Brazil #4",            "ntp.cais.rnp.br",
1417         dmenuVarsCheck, dmenuSetVariables, NULL,
1418         "ntpdate_enable=YES,ntpdate_flags=ntp.cais.rnp.br" },
1419       { "Brazil #5",            "ntp1.pucpr.br",
1420         dmenuVarsCheck, dmenuSetVariables, NULL,
1421         "ntpdate_enable=YES,ntpdate_flags=ntp1.pucpr.br" },
1422       { "Canada",               "ca.pool.ntp.org",
1423         dmenuVarsCheck, dmenuSetVariables, NULL, 
1424         "ntpdate_enable=YES,ntpdate_flags=ca.pool.ntp.org" },
1425       { "Canada #2",            "ntp.cpsc.ucalgary.ca",
1426         dmenuVarsCheck, dmenuSetVariables, NULL, 
1427         "ntpdate_enable=YES,ntpdate_flags=ntp.cpsc.ucalgary.ca" },
1428       { "Canada #3",            "ntp1.cmc.ec.gc.ca",
1429         dmenuVarsCheck, dmenuSetVariables, NULL, 
1430         "ntpdate_enable=YES,ntpdate_flags=ntp1.cmc.ec.gc.ca" },
1431       { "Canada #4",            "ntp2.cmc.ec.gc.ca",
1432         dmenuVarsCheck, dmenuSetVariables, NULL, 
1433         "ntpdate_enable=YES,ntpdate_flags=ntp2.cmc.ec.gc.ca" },
1434       { "Canada #5",            "tick.utoronto.ca",
1435         dmenuVarsCheck, dmenuSetVariables, NULL, 
1436         "ntpdate_enable=YES,ntpdate_flags=tick.utoronto.ca" },
1437       { "Canada #6",            "time.chu.nrc.ca",
1438         dmenuVarsCheck, dmenuSetVariables, NULL, 
1439         "ntpdate_enable=YES,ntpdate_flags=time.chu.nrc.ca" },
1440       { "Canada #7",            "time.nrc.ca",
1441         dmenuVarsCheck, dmenuSetVariables, NULL, 
1442         "ntpdate_enable=YES,ntpdate_flags=time.nrc.ca" },
1443       { "Canada #8",            "timelord.uregina.ca",
1444         dmenuVarsCheck, dmenuSetVariables, NULL, 
1445         "ntpdate_enable=YES,ntpdate_flags=timelord.uregina.ca" },
1446       { "Canada #9",            "tock.utoronto.ca",
1447         dmenuVarsCheck, dmenuSetVariables, NULL, 
1448         "ntpdate_enable=YES,ntpdate_flags=tock.utoronto.ca" },
1449       { "Czech",                "ntp.karpo.cz",
1450         dmenuVarsCheck, dmenuSetVariables, NULL,
1451         "ntpdate_enable=YES,ntpdate_flags=ntp.karpo.cz" },
1452       { "Czech #2",             "ntp.cgi.cz",
1453         dmenuVarsCheck, dmenuSetVariables, NULL,
1454         "ntpdate_enable=YES,ntpdate_flags=ntp.cgi.cz" },
1455       { "Denmark",              "clock.netcetera.dk",
1456         dmenuVarsCheck, dmenuSetVariables, NULL,
1457         "ntpdate_enable=YES,ntpdate_flags=clock.netcetera.dk" },
1458       { "Denmark",              "clock2.netcetera.dk",
1459         dmenuVarsCheck, dmenuSetVariables, NULL,
1460         "ntpdate_enable=YES,ntpdate_flags=clock2.netcetera.dk" },
1461       { "Spain",                "slug.ctv.es",
1462         dmenuVarsCheck, dmenuSetVariables, NULL,
1463         "ntpdate_enable=YES,ntpdate_flags=slug.ctv.es" },
1464       { "Finland",              "tick.keso.fi",
1465         dmenuVarsCheck, dmenuSetVariables, NULL,
1466         "ntpdate_enable=YES,ntpdate_flags=tick.keso.fi" },
1467       { "Finland #2",           "tock.keso.fi",
1468         dmenuVarsCheck, dmenuSetVariables, NULL,
1469         "ntpdate_enable=YES,ntpdate_flags=tock.keso.fi" },
1470       { "France",               "ntp.obspm.fr",
1471         dmenuVarsCheck, dmenuSetVariables, NULL, 
1472         "ntpdate_enable=YES,ntpdate_flags=ntp.obspm.fr" },
1473       { "France #2",            "ntp.univ-lyon1.fr",
1474         dmenuVarsCheck, dmenuSetVariables, NULL,
1475         "ntpdate_enable=YES,ntpdate_flags=ntp.univ-lyon1.fr" },
1476       { "France #3",            "ntp.via.ecp.fr",
1477         dmenuVarsCheck, dmenuSetVariables, NULL,
1478         "ntpdate_enable=YES,ntpdate_flags=ntp.via.ecp.fr" },
1479       { "Croatia",              "zg1.ntp.carnet.hr",
1480         dmenuVarsCheck, dmenuSetVariables, NULL,
1481         "ntpdate_enable=YES,ntpdate_flags=zg1.ntp.carnet.hr" },
1482       { "Croatia #2",           "zg2.ntp.carnet.hr",
1483         dmenuVarsCheck, dmenuSetVariables, NULL,
1484         "ntpdate_enable=YES,ntpdate_flags=zg2.ntp.carnet.hr" },
1485       { "Croatia #3",           "st.ntp.carnet.hr",
1486         dmenuVarsCheck, dmenuSetVariables, NULL,
1487         "ntpdate_enable=YES,ntpdate_flags=st.ntp.carnet.hr" },
1488       { "Croatia #4",           "ri.ntp.carnet.hr",
1489         dmenuVarsCheck, dmenuSetVariables, NULL,
1490         "ntpdate_enable=YES,ntpdate_flags=ri.ntp.carnet.hr" },
1491       { "Croatia #5",           "os.ntp.carnet.hr",
1492         dmenuVarsCheck, dmenuSetVariables, NULL,
1493         "ntpdate_enable=YES,ntpdate_flags=os.ntp.carnet.hr" },
1494       { "Hungary",              "time.kfki.hu",
1495         dmenuVarsCheck, dmenuSetVariables, NULL,
1496         "ntpdate_enable=YES,ntpdate_flags=time.kfki.hu" },
1497       { "Indonesia",            "ntp.kim.lipi.go.id",
1498         dmenuVarsCheck, dmenuSetVariables, NULL,
1499         "ntpdate_enable=YES,ntpdate_flags=ntp.kim.lipi.go.id" },
1500       { "Ireland",              "ntp.maths.tcd.ie",
1501         dmenuVarsCheck, dmenuSetVariables, NULL,
1502         "ntpdate_enable=YES,ntpdate_flags=ntp.maths.tcd.ie" },
1503       { "Italy",                "it.pool.ntp.org",
1504         dmenuVarsCheck, dmenuSetVariables, NULL,
1505         "ntpdate_enable=YES,ntpdate_flags=it.pool.ntp.org" },
1506       { "Japan",                "ntp.jst.mfeed.ad.jp",
1507         dmenuVarsCheck, dmenuSetVariables, NULL,
1508         "ntpdate_enable=YES,ntpdate_flags=ntp.jst.mfeed.ad.jp" },
1509       { "Japan IPv6",           "ntp1.v6.mfeed.ad.jp",
1510         dmenuVarsCheck, dmenuSetVariables, NULL,
1511         "ntpdate_enable=YES,ntpdate_flags=ntp1.v6.mfeed.ad.jp" },
1512       { "Korea",                "time.nuri.net",
1513         dmenuVarsCheck, dmenuSetVariables, NULL, 
1514         "ntpdate_enable=YES,ntpdate_flags=time.nuri.net" },
1515       { "Mexico",               "mx.pool.ntp.org",
1516         dmenuVarsCheck, dmenuSetVariables, NULL,
1517         "ntpdate_enable=YES,ntpdate_flags=mx.pool.ntp.org" },
1518       { "Netherlands",          "ntp0.nl.net",
1519         dmenuVarsCheck, dmenuSetVariables, NULL,
1520         "ntpdate_enable=YES,ntpdate_flags=ntp0.nl.net" },
1521       { "Netherlands #2",       "ntp1.nl.net",
1522         dmenuVarsCheck, dmenuSetVariables, NULL,
1523         "ntpdate_enable=YES,ntpdate_flags=ntp1.nl.net" },
1524       { "Netherlands #3",       "ntp2.nl.net",
1525         dmenuVarsCheck, dmenuSetVariables, NULL,
1526         "ntpdate_enable=YES,ntpdate_flags=ntp2.nl.net" },
1527       { "Norway",               "fartein.ifi.uio.no",
1528         dmenuVarsCheck, dmenuSetVariables, NULL, 
1529         "ntpdate_enable=YES,ntpdate_flags=fartein.ifi.uio.no" },
1530       { "Norway #2",            "time.alcanet.no",
1531         dmenuVarsCheck, dmenuSetVariables, NULL, 
1532         "ntpdate_enable=YES,ntpdate_flags=time.alcanet.no" },
1533       { "New Zealand",          "ntp.massey.ac.nz",
1534         dmenuVarsCheck, dmenuSetVariables, NULL,
1535         "ntpdate_enable=YES,ntpdate_flags=ntp.massey.ac.nz" },
1536       { "New Zealand #2",       "ntp.public.otago.ac.nz",
1537         dmenuVarsCheck, dmenuSetVariables, NULL,
1538         "ntpdate_enable=YES,ntpdate_flags=ntp.public.otago.ac.nz" },
1539       { "New Zealand #3",       "tk1.ihug.co.nz",
1540         dmenuVarsCheck, dmenuSetVariables, NULL,
1541         "ntpdate_enable=YES,ntpdate_flags=tk1.ihug.co.nz" },
1542       { "New Zealand #4",       "ntp.waikato.ac.nz",
1543         dmenuVarsCheck, dmenuSetVariables, NULL,
1544         "ntpdate_enable=YES,ntpdate_flags=ntp.waikato.ac.nz" },
1545       { "Poland",               "info.cyf-kr.edu.pl",
1546         dmenuVarsCheck, dmenuSetVariables, NULL,
1547         "ntpdate_enable=YES,ntpdate_flags=info.cyf-kr.edu.pl" },
1548       { "Romania",              "ticks.roedu.net",
1549         dmenuVarsCheck, dmenuSetVariables, NULL,
1550         "ntpdate_enable=YES,ntpdate_flags=ticks.roedu.net" },
1551       { "Russia",               "ru.pool.ntp.org",
1552         dmenuVarsCheck, dmenuSetVariables, NULL,
1553         "ntpdate_enable=YES,ntpdate_flags=ru.pool.ntp.org" },
1554       { "Russia #2",            "ntp.psn.ru",
1555         dmenuVarsCheck, dmenuSetVariables, NULL,
1556         "ntpdate_enable=YES,ntpdate_flags=ntp.psn.ru" },
1557       { "Sweden",               "se.pool.ntp.org",
1558         dmenuVarsCheck, dmenuSetVariables, NULL, 
1559         "ntpdate_enable=YES,ntpdate_flags=se.pool.ntp.org" },
1560       { "Sweden #2",            "ntp.lth.se",
1561         dmenuVarsCheck, dmenuSetVariables, NULL, 
1562         "ntpdate_enable=YES,ntpdate_flags=ntp.lth.se" },
1563       { "Sweden #3",            "ntp1.sp.se",
1564         dmenuVarsCheck, dmenuSetVariables, NULL, 
1565         "ntpdate_enable=YES,ntpdate_flags=ntp1.sp.se" },
1566       { "Sweden #4",            "ntp2.sp.se",
1567         dmenuVarsCheck, dmenuSetVariables, NULL, 
1568         "ntpdate_enable=YES,ntpdate_flags=ntp2.sp.se" },
1569       { "Sweden #5",            "ntp.kth.se",
1570         dmenuVarsCheck, dmenuSetVariables, NULL, 
1571         "ntpdate_enable=YES,ntpdate_flags=ntp.kth.se" },
1572       { "Singapore",            "sg.pool.ntp.org",
1573         dmenuVarsCheck, dmenuSetVariables, NULL,
1574         "ntpdate_enable=YES,ntpdate_flags=sg.pool.ntp.org" },
1575       { "Slovenia",             "si.pool.ntp.org",
1576         dmenuVarsCheck, dmenuSetVariables, NULL,
1577         "ntpdate_enable=YES,ntpdate_flags=si.pool.ntp.org" },
1578       { "Slovenia #2",          "sizif.mf.uni-lj.si",
1579         dmenuVarsCheck, dmenuSetVariables, NULL,
1580         "ntpdate_enable=YES,ntpdate_flags=sizif.mf.uni-lj.si" },
1581       { "Slovenia #3",          "ntp1.arnes.si",
1582         dmenuVarsCheck, dmenuSetVariables, NULL,
1583         "ntpdate_enable=YES,ntpdate_flags=ntp1.arnes.si" },
1584       { "Slovenia #4",          "ntp2.arnes.si",
1585         dmenuVarsCheck, dmenuSetVariables, NULL,
1586         "ntpdate_enable=YES,ntpdate_flags=ntp2.arnes.si" },
1587       { "Slovenia #5",          "time.ijs.si",
1588         dmenuVarsCheck, dmenuSetVariables, NULL,
1589         "ntpdate_enable=YES,ntpdate_flags=time.ijs.si" },
1590       { "Scotland",             "ntp.cs.strath.ac.uk",
1591         dmenuVarsCheck, dmenuSetVariables, NULL,
1592         "ntpdate_enable=YES,ntpdate_flags=ntp.cs.strath.ac.uk" },
1593       { "Taiwan",              "time.stdtime.gov.tw",
1594         dmenuVarsCheck, dmenuSetVariables, NULL,
1595         "ntpdate_enable=YES,ntpdate_flags=time.stdtime.gov.tw" },
1596       { "Taiwan #2",           "clock.stdtime.gov.tw",
1597         dmenuVarsCheck, dmenuSetVariables, NULL,
1598         "ntpdate_enable=YES,ntpdate_flags=clock.stdtime.gov.tw" },
1599       { "Taiwan #3",           "tick.stdtime.gov.tw",
1600         dmenuVarsCheck, dmenuSetVariables, NULL,
1601         "ntpdate_enable=YES,ntpdate_flags=tick.stdtime.gov.tw" },
1602       { "Taiwan #4",           "tock.stdtime.gov.tw",
1603         dmenuVarsCheck, dmenuSetVariables, NULL,
1604         "ntpdate_enable=YES,ntpdate_flags=tock.stdtime.gov.tw" },
1605       { "Taiwan #5",           "watch.stdtime.gov.tw",
1606         dmenuVarsCheck, dmenuSetVariables, NULL,
1607         "ntpdate_enable=YES,ntpdate_flags=watch.stdtime.gov.tw" },
1608       { "United Kingdom",       "uk.pool.ntp.org",
1609         dmenuVarsCheck, dmenuSetVariables, NULL,
1610         "ntpdate_enable=YES,ntpdate_flags=uk.pool.ntp.org" },
1611       { "United Kingdom #2",    "ntp.exnet.com",
1612         dmenuVarsCheck, dmenuSetVariables, NULL,
1613         "ntpdate_enable=YES,ntpdate_flags=ntp.exnet.com" },
1614       { "United Kingdom #3",    "ntp0.uk.uu.net",
1615         dmenuVarsCheck, dmenuSetVariables, NULL,
1616         "ntpdate_enable=YES,ntpdate_flags=ntp0.uk.uu.net" },
1617       { "United Kingdom #4",    "ntp1.uk.uu.net",
1618         dmenuVarsCheck, dmenuSetVariables, NULL,
1619         "ntpdate_enable=YES,ntpdate_flags=ntp1.uk.uu.net" },
1620       { "United Kingdom #5",    "ntp2.uk.uu.net",
1621         dmenuVarsCheck, dmenuSetVariables, NULL,
1622         "ntpdate_enable=YES,ntpdate_flags=ntp2.uk.uu.net" },
1623       { "United Kingdom #6",    "ntp2a.mcc.ac.uk",
1624         dmenuVarsCheck, dmenuSetVariables, NULL,
1625         "ntpdate_enable=YES,ntpdate_flags=ntp2a.mcc.ac.uk" },
1626       { "United Kingdom #7",    "ntp2b.mcc.ac.uk",
1627         dmenuVarsCheck, dmenuSetVariables, NULL,
1628         "ntpdate_enable=YES,ntpdate_flags=ntp2b.mcc.ac.uk" },
1629       { "United Kingdom #8",    "ntp2c.mcc.ac.uk",
1630         dmenuVarsCheck, dmenuSetVariables, NULL,
1631         "ntpdate_enable=YES,ntpdate_flags=ntp2c.mcc.ac.uk" },
1632       { "United Kingdom #9",    "ntp2d.mcc.ac.uk",
1633         dmenuVarsCheck, dmenuSetVariables, NULL,
1634         "ntpdate_enable=YES,ntpdate_flags=ntp2d.mcc.ac.uk" },
1635       { "U.S.", "us.pool.ntp.org",
1636         dmenuVarsCheck, dmenuSetVariables, NULL, 
1637         "ntpdate_enable=YES,ntpdate_flags=us.pool.ntp.org" },
1638       { "U.S. AR",      "sushi.lyon.edu",
1639         dmenuVarsCheck, dmenuSetVariables, NULL, 
1640         "ntpdate_enable=YES,ntpdate_flags=sushi.compsci.lyon.edu" },
1641       { "U.S. AZ",      "ntp.drydog.com",
1642         dmenuVarsCheck, dmenuSetVariables, NULL, 
1643         "ntpdate_enable=YES,ntpdate_flags=ntp.drydog.com" },
1644       { "U.S. CA",      "ntp.ucsd.edu",
1645         dmenuVarsCheck, dmenuSetVariables, NULL, 
1646         "ntpdate_enable=YES,ntpdate_flags=ntp.ucsd.edu" },
1647       { "U.S. CA #2",   "ntp1.mainecoon.com",
1648         dmenuVarsCheck, dmenuSetVariables, NULL, 
1649         "ntpdate_enable=YES,ntpdate_flags=ntp1.mainecoon.com" },
1650       { "U.S. CA #3",   "ntp2.mainecoon.com",
1651         dmenuVarsCheck, dmenuSetVariables, NULL, 
1652         "ntpdate_enable=YES,ntpdate_flags=ntp2.mainecoon.com" },
1653       { "U.S. CA #4",   "reloj.kjsl.com",
1654         dmenuVarsCheck, dmenuSetVariables, NULL, 
1655         "ntpdate_enable=YES,ntpdate_flags=reloj.kjsl.com" },
1656       { "U.S. CA #5",   "time.five-ten-sg.com",
1657         dmenuVarsCheck, dmenuSetVariables, NULL, 
1658         "ntpdate_enable=YES,ntpdate_flags=time.five-ten-sg.com" },
1659       { "U.S. DE",      "louie.udel.edu",
1660         dmenuVarsCheck, dmenuSetVariables, NULL, 
1661         "ntpdate_enable=YES,ntpdate_flags=louie.udel.edu" },
1662       { "U.S. GA",              "ntp.shorty.com",
1663         dmenuVarsCheck, dmenuSetVariables, NULL, 
1664         "ntpdate_enable=YES,ntpdate_flags=ntp.shorty.com" },
1665       { "U.S. GA #2",           "rolex.usg.edu",
1666         dmenuVarsCheck, dmenuSetVariables, NULL, 
1667         "ntpdate_enable=YES,ntpdate_flags=rolex.usg.edu" },
1668       { "U.S. GA #3",           "timex.usg.edu",
1669         dmenuVarsCheck, dmenuSetVariables, NULL, 
1670         "ntpdate_enable=YES,ntpdate_flags=timex.usg.edu" },
1671       { "U.S. IL",      "ntp-0.cso.uiuc.edu",
1672         dmenuVarsCheck, dmenuSetVariables, NULL,
1673         "ntpdate_enable=YES,ntpdate_flags=ntp-0.cso.uiuc.edu" },
1674       { "U.S. IL #2",   "ntp-1.cso.uiuc.edu",
1675         dmenuVarsCheck, dmenuSetVariables, NULL,
1676         "ntpdate_enable=YES,ntpdate_flags=ntp-1.cso.uiuc.edu" },
1677       { "U.S. IL #3",   "ntp-1.mcs.anl.gov",
1678         dmenuVarsCheck, dmenuSetVariables, NULL,
1679         "ntpdate_enable=YES,ntpdate_flags=ntp-1.mcs.anl.gov" },
1680       { "U.S. IL #4",   "ntp-2.cso.uiuc.edu",
1681         dmenuVarsCheck, dmenuSetVariables, NULL,
1682         "ntpdate_enable=YES,ntpdate_flags=ntp-2.cso.uiuc.edu" },
1683       { "U.S. IL #5",   "ntp-2.mcs.anl.gov",
1684         dmenuVarsCheck, dmenuSetVariables, NULL,
1685         "ntpdate_enable=YES,ntpdate_flags=ntp-2.mcs.anl.gov" },
1686       { "U.S. IN",      "gilbreth.ecn.purdue.edu",
1687         dmenuVarsCheck, dmenuSetVariables, NULL,
1688         "ntpdate_enable=YES,ntpdate_flags=gilbreth.ecn.purdue.edu" },
1689       { "U.S. IN #2",   "harbor.ecn.purdue.edu",
1690         dmenuVarsCheck, dmenuSetVariables, NULL,
1691         "ntpdate_enable=YES,ntpdate_flags=harbor.ecn.purdue.edu" },
1692       { "U.S. IN #3",   "molecule.ecn.purdue.edu",
1693         dmenuVarsCheck, dmenuSetVariables, NULL,
1694         "ntpdate_enable=YES,ntpdate_flags=molecule.ecn.purdue.edu" },
1695       { "U.S. KS",      "ntp1.kansas.net",
1696         dmenuVarsCheck, dmenuSetVariables, NULL,
1697         "ntpdate_enable=YES,ntpdate_flags=ntp1.kansas.net" },
1698       { "U.S. KS #2",   "ntp2.kansas.net",
1699         dmenuVarsCheck, dmenuSetVariables, NULL,
1700         "ntpdate_enable=YES,ntpdate_flags=ntp2.kansas.net" },
1701       { "U.S. MA",      "ntp.ourconcord.net",
1702         dmenuVarsCheck, dmenuSetVariables, NULL,
1703         "ntpdate_enable=YES,ntpdate_flags=ntp.ourconcord.net" },
1704       { "U.S. MA #2",   "timeserver.cs.umb.edu",
1705         dmenuVarsCheck, dmenuSetVariables, NULL,
1706         "ntpdate_enable=YES,ntpdate_flags=timeserver.cs.umb.edu" },
1707       { "U.S. MN",      "ns.nts.umn.edu",
1708         dmenuVarsCheck, dmenuSetVariables, NULL,
1709         "ntpdate_enable=YES,ntpdate_flags=ns.nts.umn.edu" },
1710       { "U.S. MN #2",   "nss.nts.umn.edu",
1711         dmenuVarsCheck, dmenuSetVariables, NULL,
1712         "ntpdate_enable=YES,ntpdate_flags=nss.nts.umn.edu" },
1713       { "U.S. MO",      "time-ext.missouri.edu",
1714         dmenuVarsCheck, dmenuSetVariables, NULL,
1715         "ntpdate_enable=YES,ntpdate_flags=time-ext.missouri.edu" },
1716       { "U.S. MT",      "chronos1.umt.edu",
1717         dmenuVarsCheck, dmenuSetVariables, NULL,
1718         "ntpdate_enable=YES,ntpdate_flags=chronos1.umt.edu" },
1719       { "U.S. MT #2",   "chronos2.umt.edu",
1720         dmenuVarsCheck, dmenuSetVariables, NULL,
1721         "ntpdate_enable=YES,ntpdate_flags=chronos2.umt.edu" },
1722       { "U.S. MT #3",   "chronos3.umt.edu",
1723         dmenuVarsCheck, dmenuSetVariables, NULL,
1724         "ntpdate_enable=YES,ntpdate_flags=chronos3.umt.edu" },
1725       { "U.S. NC",      "clock1.unc.edu",
1726         dmenuVarsCheck, dmenuSetVariables, NULL,
1727         "ntpdate_enable=YES,ntpdate_flags=clock1.unc.edu" },
1728       { "U.S. NV",      "cuckoo.nevada.edu",
1729         dmenuVarsCheck, dmenuSetVariables, NULL,
1730         "ntpdate_enable=YES,ntpdate_flags=cuckoo.nevada.edu" },
1731       { "U.S. NV #2",   "tick.cs.unlv.edu",
1732         dmenuVarsCheck, dmenuSetVariables, NULL,
1733         "ntpdate_enable=YES,ntpdate_flags=tick.cs.unlv.edu" },
1734       { "U.S. NV #3",   "tock.cs.unlv.edu",
1735         dmenuVarsCheck, dmenuSetVariables, NULL,
1736         "ntpdate_enable=YES,ntpdate_flags=tock.cs.unlv.edu" },
1737       { "U.S. NY",      "ntp0.cornell.edu",
1738         dmenuVarsCheck, dmenuSetVariables, NULL,
1739         "ntpdate_enable=YES,ntpdate_flags=ntp0.cornell.edu" },
1740       { "U.S. NY #2",   "sundial.columbia.edu",
1741         dmenuVarsCheck, dmenuSetVariables, NULL,
1742         "ntpdate_enable=YES,ntpdate_flags=sundial.columbia.edu" },
1743       { "U.S. NY #3",   "timex.cs.columbia.edu",
1744         dmenuVarsCheck, dmenuSetVariables, NULL,
1745         "ntpdate_enable=YES,ntpdate_flags=timex.cs.columbia.edu" },
1746       { "U.S. PA",      "clock-1.cs.cmu.edu",
1747         dmenuVarsCheck, dmenuSetVariables, NULL,
1748         "ntpdate_enable=YES,ntpdate_flags=clock-1.cs.cmu.edu" },
1749       { "U.S. PA #2",   "clock-2.cs.cmu.edu",
1750         dmenuVarsCheck, dmenuSetVariables, NULL,
1751         "ntpdate_enable=YES,ntpdate_flags=clock-2.cs.cmu.edu" },
1752       { "U.S. PA #3",   "clock.psu.edu",
1753         dmenuVarsCheck, dmenuSetVariables, NULL,
1754         "ntpdate_enable=YES,ntpdate_flags=clock.psu.edu" },
1755       { "U.S. PA #4",   "fuzz.psc.edu",
1756         dmenuVarsCheck, dmenuSetVariables, NULL,
1757         "ntpdate_enable=YES,ntpdate_flags=fuzz.psc.edu" },
1758       { "U.S. PA #5",   "ntp-1.ece.cmu.edu",
1759         dmenuVarsCheck, dmenuSetVariables, NULL,
1760         "ntpdate_enable=YES,ntpdate_flags=ntp-1.ece.cmu.edu" },
1761       { "U.S. PA #6",   "ntp-2.ece.cmu.edu",
1762         dmenuVarsCheck, dmenuSetVariables, NULL,
1763         "ntpdate_enable=YES,ntpdate_flags=ntp-2.ece.cmu.edu" },
1764       { "U.S. TX",      "ntp.fnbhs.com",
1765         dmenuVarsCheck, dmenuSetVariables, NULL,
1766         "ntpdate_enable=YES,ntpdate_flags=ntp.fnbhs.com" },
1767       { "U.S. TX #2",   "ntp.tmc.edu",
1768         dmenuVarsCheck, dmenuSetVariables, NULL,
1769         "ntpdate_enable=YES,ntpdate_flags=ntp.tmc.edu" },
1770       { "U.S. TX #3",   "ntp5.tamu.edu",
1771         dmenuVarsCheck, dmenuSetVariables, NULL,
1772         "ntpdate_enable=YES,ntpdate_flags=ntp5.tamu.edu" },
1773       { "U.S. TX #4",   "tick.greyware.com",
1774         dmenuVarsCheck, dmenuSetVariables, NULL,
1775         "ntpdate_enable=YES,ntpdate_flags=tick.greyware.com" },
1776       { "U.S. TX #5",   "tock.greyware.com",
1777         dmenuVarsCheck, dmenuSetVariables, NULL,
1778         "ntpdate_enable=YES,ntpdate_flags=tock.greyware.com" },
1779       { "U.S. VA",      "ntp-1.vt.edu",
1780         dmenuVarsCheck, dmenuSetVariables, NULL,
1781         "ntpdate_enable=YES,ntpdate_flags=ntp-1.vt.edu" },
1782       { "U.S. VA #2",   "ntp-2.vt.edu",
1783         dmenuVarsCheck, dmenuSetVariables, NULL,
1784         "ntpdate_enable=YES,ntpdate_flags=ntp-2.vt.edu" },
1785       { "U.S. VA #3",   "ntp.cmr.gov",
1786         dmenuVarsCheck, dmenuSetVariables, NULL,
1787         "ntpdate_enable=YES,ntpdate_flags=ntp.cmr.gov" },
1788       { "U.S. VT",      "ntp0.state.vt.us",
1789         dmenuVarsCheck, dmenuSetVariables, NULL,
1790         "ntpdate_enable=YES,ntpdate_flags=ntp0.state.vt.us" },
1791       { "U.S. VT #2",   "ntp1.state.vt.us",
1792         dmenuVarsCheck, dmenuSetVariables, NULL,
1793         "ntpdate_enable=YES,ntpdate_flags=ntp1.state.vt.us" },
1794       { "U.S. VT #3",   "ntp2.state.vt.us",
1795         dmenuVarsCheck, dmenuSetVariables, NULL,
1796         "ntpdate_enable=YES,ntpdate_flags=ntp2.state.vt.us" },
1797       { "U.S. WA",      "ntp.tcp-udp.net",
1798         dmenuVarsCheck, dmenuSetVariables, NULL,
1799         "ntpdate_enable=YES,ntpdate_flags=ntp.tcp-udp.net" },
1800       { "U.S. WI",      "ntp1.cs.wisc.edu",
1801         dmenuVarsCheck, dmenuSetVariables, NULL,
1802         "ntpdate_enable=YES,ntpdate_flags=ntp1.cs.wisc.edu" },
1803       { "U.S. WI #2",   "ntp3.cs.wisc.edu",
1804         dmenuVarsCheck, dmenuSetVariables, NULL,
1805         "ntpdate_enable=YES,ntpdate_flags=ntp3.cs.wisc.edu" },
1806       { "South Africa", "ntp.cs.unp.ac.za",
1807         dmenuVarsCheck, dmenuSetVariables, NULL,
1808         "ntpdate_enable=YES,ntpdate_flags=ntp.cs.unp.ac.za" },
1809       { NULL } },
1810 };
1811
1812 #ifdef WITH_SYSCONS
1813 DMenu MenuSyscons = {
1814     DMENU_NORMAL_TYPE,
1815     "System Console Configuration",
1816     "The default system console driver for FreeBSD (syscons) has a\n"
1817     "number of configuration options which may be set according to\n"
1818     "your preference.\n\n"
1819     "When you are done setting configuration options, select Cancel.",
1820     "Configure your system console settings",
1821     NULL,
1822     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
1823 #ifdef PC98
1824       { "2 Keymap",     "Choose an alternate keyboard map",     NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
1825       { "3 Repeat",     "Set the rate at which keys repeat",    NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
1826       { "4 Saver",      "Configure the screen saver",           NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
1827 #else
1828       { "2 Font",       "Choose an alternate screen font",      NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
1829       { "3 Keymap",     "Choose an alternate keyboard map",     NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
1830       { "4 Repeat",     "Set the rate at which keys repeat",    NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
1831       { "5 Saver",      "Configure the screen saver",           NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
1832       { "6 Screenmap",  "Choose an alternate screenmap",        NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
1833       { "7 Ttys",       "Choose console terminal type",         NULL, dmenuSubmenu, NULL, &MenuSysconsTtys },
1834 #endif
1835       { NULL } },
1836 };
1837
1838 #ifdef PC98
1839 DMenu MenuSysconsKeymap = {
1840     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1841     "System Console Keymap",
1842     "The default system console driver for FreeBSD (syscons) defaults\n"
1843     "to a standard \"PC-98x1\" keyboard map.  Users may wish to choose\n"
1844     "one of the other keymaps below.\n"
1845     "Note that sysinstall itself only uses the part of the keyboard map\n"
1846     "which is required to generate the ANSI character subset, but your\n"
1847     "choice of keymap will also be saved for later (fuller) use.",
1848     "Choose a keyboard map",
1849     NULL,
1850     { { "Japanese PC-98x1",             "Japanese PC-98x1 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98" },
1851       { " Japanese PC-98x1 (ISO)",      "Japanese PC-98x1 (ISO) keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98.iso" },
1852       { NULL } },
1853 };
1854 #else
1855 DMenu MenuSysconsKeymap = {
1856     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1857     "System Console Keymap",
1858     "The default system console driver for FreeBSD (syscons) defaults\n"
1859     "to a standard \"American\" keyboard map.  Users in other countries\n"
1860     "(or with different keyboard preferences) may wish to choose one of\n"
1861     "the other keymaps below.\n"
1862     "Note that sysinstall itself only uses the part of the keyboard map\n"
1863     "which is required to generate the ANSI character subset, but your\n"
1864     "choice of keymap will also be saved for later (fuller) use.",
1865     "Choose a keyboard map",
1866     NULL,
1867     { { "Belgian",      "Belgian ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=be.iso" },
1868       { " Brazil CP850",        "Brazil CP850 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.cp850" },
1869       { " Brazil ISO (accent)", "Brazil ISO keymap (accent keys)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso.acc" },
1870       { " Brazil ISO",  "Brazil ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso" },
1871       { " Bulgarian BDS",       "Bulgarian BDS keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=bg.bds.ctrlcaps" },
1872       { " Bulgarian Phonetic",  "Bulgarian Phonetic keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=bg.phonetic.ctrlcaps" },
1873       { "Central European ISO", "Central European ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ce.iso2" },
1874       { " Croatian ISO",        "Croatian ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hr.iso" },
1875       { " Czech ISO (accent)",  "Czech ISO keymap (accent keys)",       dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=cs.latin2.qwertz" },
1876       { "Danish CP865", "Danish Code Page 865 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.cp865" },
1877       { " Danish ISO",  "Danish ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.iso" },
1878       { "Estonian ISO", "Estonian ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso" },
1879       { " Estonian ISO 15", "Estonian ISO 8859-15 keymap",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso15" },
1880       { " Estonian CP850", "Estonian Code Page 850 keymap",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.cp850" },
1881       { "Finnish CP850","Finnish Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.cp850" },
1882       { " Finnish ISO",  "Finnish ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.iso" },
1883       { " French ISO (accent)", "French ISO keymap (accent keys)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso.acc" },
1884       { " French ISO",  "French ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso" },
1885       { "German CP850", "German Code Page 850 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.cp850"        },
1886       { " German ISO",  "German ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.iso" },
1887       { " Greek 101",   "Greek ISO keymap (101 keys)",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=gr.us101.acc" },
1888       { " Greek 104",   "Greek ISO keymap (104 keys)",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=el.iso07" },
1889       { " Greek ELOT",  "Greek ISO keymap (ELOT 1000)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=gr.elot.acc" },
1890       { "Hungarian 101", "Hungarian ISO keymap (101 key)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.101keys" },
1891       { " Hungarian 102", "Hungarian ISO keymap (102 key)",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.102keys" },
1892       { "Icelandic (accent)", "Icelandic ISO keymap (accent keys)",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso.acc" },
1893       { " Icelandic",   "Icelandic ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso" },
1894       { " Italian",     "Italian ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=it.iso" },
1895       { "Japanese 106", "Japanese 106 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.106" },
1896       { "Latin American (accent)",      "Latin American ISO keymap (accent keys)",      dmenuVarCheck,  dmenuSetKmapVariable,   NULL,   "keymap=latinamerican.iso.acc" },
1897       { " Latin American",      "Latin American ISO keymap",    dmenuVarCheck,  dmenuSetKmapVariable,   NULL,   "keymap=latinamerican" },
1898       { "Norway ISO",   "Norwegian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=norwegian.iso" },
1899       { "Polish ISO",   "Polish ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pl_PL.ISO8859-2" },
1900       { " Portuguese (accent)", "Portuguese ISO keymap (accent keys)",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso.acc" },
1901       { " Portuguese",  "Portuguese ISO keymap",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso" },
1902       { "Russia KOI8-R", "Russian KOI8-R keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ru.koi8-r" },
1903       { "Slovak", "Slovak ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=sk.iso2" },
1904       { "Slovenian", "Slovenian ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=si.iso" },
1905       { " Spanish (accent)", "Spanish ISO keymap (accent keys)",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso.acc" },
1906       { " Spanish",     "Spanish ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso" },
1907       { " Swedish CP850", "Swedish Code Page 850 keymap", dmenuVarCheck,        dmenuSetKmapVariable, NULL, "keymap=swedish.cp850" },
1908       { " Swedish ISO", "Swedish ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swedish.iso" },
1909       { " Swiss French ISO (accent)", "Swiss French ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso.acc" },
1910       { " Swiss French ISO", "Swiss French ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso" },
1911       { " Swiss French CP850", "Swiss French Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.cp850" },
1912       { " Swiss German ISO (accent)", "Swiss German ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso.acc" },
1913       { " Swiss German ISO", "Swiss German ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso" },
1914       { " Swiss German CP850", "Swiss German Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.cp850" },
1915       { "UK CP850",     "UK Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.cp850" },
1916       { " UK ISO",      "UK ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.iso" },
1917       { " Ukrainian KOI8-U",    "Ukrainian KOI8-U keymap",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u" },
1918       { " Ukrainian KOI8-U+KOI8-R",     "Ukrainian KOI8-U+KOI8-R keymap (alter)",       dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u.shift.alt" },
1919       { " USA CapsLock->Ctrl",  "US standard (Caps as L-Control)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.pc-ctrl" },
1920       { " USA Dvorak",  "US Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorak" },
1921       { " USA Dvorak (left)",   "US left handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakl" },
1922       { " USA Dvorak (right)",  "US right handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakr" },
1923       { " USA Emacs",   "US standard optimized for EMACS",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.emacs" },
1924       { " USA ISO",     "US ISO keymap",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.iso" },
1925       { " USA UNIX",    "US traditional UNIX-workstation",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.unix" },
1926       { NULL } },
1927 };
1928 #endif /* PC98 */
1929
1930 DMenu MenuSysconsKeyrate = {
1931     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1932     "System Console Keyboard Repeat Rate",
1933     "This menu allows you to set the speed at which keys repeat\n"
1934     "when held down.",
1935     "Choose a keyboard repeat rate",
1936     NULL,
1937     { { "Slow", "Slow keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=slow" },
1938       { "Normal", "\"Normal\" keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=normal" },
1939       { "Fast", "Fast keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=fast" },
1940       { "Default", "Use default keyboard repeat rate",  dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=NO" },
1941       { NULL } },
1942 };
1943
1944 DMenu MenuSysconsSaver = {
1945     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1946     "System Console Screen Saver",
1947     "By default, the console driver will not attempt to do anything\n"
1948     "special with your screen when it's idle.  If you expect to leave your\n"
1949     "monitor switched on and idle for long periods of time then you should\n"
1950     "probably enable one of these screen savers to prevent burn-in.",
1951     "Choose a nifty-looking screen saver",
1952     NULL,
1953     { { "1 Blank",      "Simply blank the screen",
1954         dmenuVarCheck, configSaver, NULL, "saver=blank" },
1955       { "2 Daemon",     "\"BSD Daemon\" animated screen saver (text)",
1956         dmenuVarCheck, configSaver, NULL, "saver=daemon" },
1957       { "3 Fade",       "Fade out effect screen saver",
1958         dmenuVarCheck, configSaver, NULL, "saver=fade" },
1959       { "4 Fire",       "Flames effect screen saver",
1960         dmenuVarCheck, configSaver, NULL, "saver=fire" },
1961       { "5 Green",      "\"Green\" power saving mode (if supported by monitor)",
1962         dmenuVarCheck, configSaver, NULL, "saver=green" },
1963       { "6 Logo",       "\"BSD Daemon\" animated screen saver (graphics)",
1964         dmenuVarCheck, configSaver, NULL, "saver=logo" },
1965       { "7 Rain",       "Rain drops screen saver",
1966         dmenuVarCheck, configSaver, NULL, "saver=rain" },
1967       { "8 Snake",      "Draw a FreeBSD \"snake\" on your screen",
1968         dmenuVarCheck, configSaver, NULL, "saver=snake" },
1969       { "9 Star",       "A \"twinkling stars\" effect",
1970         dmenuVarCheck, configSaver, NULL, "saver=star" },
1971       { "Warp", "A \"stars warping\" effect",
1972         dmenuVarCheck, configSaver, NULL, "saver=warp" },
1973       { "Dragon", "Dragon screensaver (graphics)",
1974         dmenuVarCheck, configSaver, NULL, "saver=dragon" },
1975       { "Timeout",      "Set the screen saver timeout interval",
1976         NULL, configSaverTimeout, NULL, NULL, ' ', ' ', ' ' },
1977       { NULL } },
1978 };
1979
1980 #ifndef PC98
1981 DMenu MenuSysconsScrnmap = {
1982     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1983     "System Console Screenmap",
1984     "Unless you load a specific font, most PC hardware defaults to\n"
1985     "displaying characters in the IBM 437 character set.  However,\n"
1986     "in the Unix world, this character set is very rarely used.  Most\n"
1987     "Western European countries, for example, prefer ISO 8859-1.\n"
1988     "American users won't notice the difference since the bottom half\n"
1989     "of all these character sets is ANSI anyway.\n"
1990     "If your hardware is capable of downloading a new display font,\n"
1991     "you should probably choose that option.  However, for hardware\n"
1992     "where this is not possible (e.g. monochrome adapters), a screen\n"
1993     "map will give you the best approximation that your hardware can\n"
1994     "display at all.",
1995     "Choose a screen map",
1996     NULL,
1997     { { "1 None",                 "No screenmap, don't touch font", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=NO" },
1998       { "2 ISO 8859-1 to IBM437", "W-Europe ISO 8859-1 to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=iso-8859-1_to_cp437" },
1999       { "3 ISO 8859-7 to IBM437", "Greek ISO 8859-7 to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=iso-8859-7_to_cp437" },
2000       { "4 US-ASCII to IBM437",   "US-ASCII to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=us-ascii_to_cp437" },
2001       { "5 KOI8-R to IBM866",     "Russian KOI8-R to IBM 866 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-r2cp866" },
2002       { "6 KOI8-U to IBM866u",    "Ukrainian KOI8-U to IBM 866u screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-u2cp866u" },
2003       { NULL } },
2004 };
2005
2006 DMenu MenuSysconsTtys = {
2007     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2008     "System Console Terminal Type",
2009     "For various console encodings, a corresponding terminal type\n"
2010     "must be chosen in /etc/ttys.\n\n"
2011     "WARNING: For compatibility reasons, only entries starting with\n"
2012     "ttyv and terminal types starting with cons[0-9] can be changed\n"
2013     "via this menu.\n",
2014     "Choose a terminal type",
2015     NULL,
2016     { { "1 None",               "Don't touch anything",  dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=NO" },
2017       { "2 IBM437 (VGA default)", "cons25", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25" },
2018       { "3 ISO 8859-1",         "cons25l1", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l1" },
2019       { "4 ISO 8859-2",         "cons25l2", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l2" },
2020       { "5 ISO 8859-7",         "cons25l7", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l7" },
2021       { "6 KOI8-R",             "cons25r", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25r" },
2022       { "7 KOI8-U",             "cons25u", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25u" },
2023       { "8 US-ASCII",           "cons25w", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25w" },
2024       { NULL } },
2025 };
2026
2027 DMenu MenuSysconsFont = {
2028     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2029     "System Console Font",
2030     "Most PC hardware defaults to displaying characters in the\n"
2031     "IBM 437 character set.  However, in the Unix world, this\n"
2032     "character set is very rarely used.  Most Western European\n"
2033     "countries, for example, prefer ISO 8859-1.\n"
2034     "American users won't notice the difference since the bottom half\n"
2035     "of all these charactersets is ANSI anyway.  However, they might\n"
2036     "want to load a font anyway to use the 30- or 50-line displays.\n"
2037     "If your hardware is capable of downloading a new display font,\n"
2038     "you can select the appropriate font below.",
2039     "Choose a font",
2040     NULL,
2041     { { "1 None", "Use hardware default font", dmenuVarCheck, dmenuSetVariables, NULL,
2042         "font8x8=NO,font8x14=NO,font8x16=NO" },
2043       { "2 IBM 437", "English and others, VGA default", dmenuVarCheck,  dmenuSetVariables, NULL,
2044         "font8x8=cp437-8x8,font8x14=cp437-8x14,font8x16=cp437-8x16" },
2045       { "3 IBM 850", "Western Europe, IBM encoding",    dmenuVarCheck,  dmenuSetVariables, NULL,
2046         "font8x8=cp850-8x8,font8x14=cp850-8x14,font8x16=cp850-8x16" },
2047       { "4 IBM 865", "Norwegian, IBM encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2048         "font8x8=cp865-8x8,font8x14=cp865-8x14,font8x16=cp865-8x16" },
2049       { "5 IBM 866", "Russian, IBM encoding (use with KOI8-R screenmap)",   dmenuVarCheck,  dmenuSetVariables, NULL,
2050         "font8x8=cp866-8x8,font8x14=cp866-8x14,font8x16=cp866b-8x16,mousechar_start=3" },
2051       { "6 IBM 866u", "Ukrainian, IBM encoding (use with KOI8-U screenmap)",   dmenuVarCheck,  dmenuSetVariables, NULL,
2052         "font8x8=cp866u-8x8,font8x14=cp866u-8x14,font8x16=cp866u-8x16,mousechar_start=3" },
2053       { "7 IBM 1251", "Cyrillic, MS Windows encoding",  dmenuVarCheck, dmenuSetVariables, NULL,
2054         "font8x8=cp1251-8x8,font8x14=cp1251-8x14,font8x16=cp1251-8x16,mousechar_start=3" },
2055       { "8 ISO 8859-1", "Western Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2056         "font8x8=iso-8x8,font8x14=iso-8x14,font8x16=iso-8x16" },
2057       { "9 ISO 8859-2", "Eastern Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2058         "font8x8=iso02-8x8,font8x14=iso02-8x14,font8x16=iso02-8x16" },
2059       { "a ISO 8859-4", "Baltic, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2060         "font8x8=iso04-8x8,font8x14=iso04-8x14,font8x16=iso04-8x16" },
2061       { "b ISO 8859-7", "Greek, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2062         "font8x8=iso07-8x8,font8x14=iso07-8x14,font8x16=iso07-8x16" },
2063       { "c ISO 8859-8", "Hebrew, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2064         "font8x8=iso08-8x8,font8x14=iso08-8x14,font8x16=iso08-8x16" },
2065       { "d ISO 8859-15", "Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2066         "font8x8=iso15-8x8,font8x14=iso15-8x14,font8x16=iso15-8x16" },
2067       { "e SWISS", "English, better resolution", dmenuVarCheck, dmenuSetVariables, NULL,
2068         "font8x8=swiss-8x8,font8x14=NO,font8x16=swiss-8x16" },
2069       { NULL } },
2070 };
2071 #endif /* PC98 */
2072 #endif /* WITH_SYSCONS */
2073
2074 DMenu MenuUsermgmt = {
2075     DMENU_NORMAL_TYPE,
2076     "User and group management",
2077     "The submenus here allow to manipulate user groups and\n"
2078     "login accounts.\n",
2079     "Configure your user groups and users",
2080     NULL,
2081     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
2082       { "User",         "Add a new user to the system.",        NULL, userAddUser },
2083       { "Group",        "Add a new user group to the system.",  NULL, userAddGroup },
2084       { NULL } },
2085 };
2086
2087 DMenu MenuSecurity = {
2088     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
2089     "System Security Options Menu",
2090     "This menu allows you to configure aspects of the operating system security\n"
2091     "policy.  Please read the system documentation carefully before modifying\n"
2092     "these settings, as they may cause service disruption if used improperly.\n"
2093     "\n"
2094     "Most settings will take affect only following a system reboot.",
2095     "Configure system security options",
2096     NULL,
2097     { { "X Exit",      "Exit this menu (returning to previous)",
2098         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
2099       { " Securelevel", "Configure securelevels for the system",
2100         NULL, configSecurelevel },
2101 #if 0
2102       { " LOMAC",         "Use Low Watermark Mandatory Access Control at boot",
2103         dmenuVarCheck,  dmenuToggleVariable, NULL, "lomac_enable=YES" },
2104 #endif
2105       { " NFS port",    "Require that the NFS clients use reserved ports",
2106         dmenuVarCheck,  dmenuToggleVariable, NULL, "nfs_reserved_port_only=YES" },
2107       { NULL } },
2108 };
2109
2110 DMenu MenuSecurelevel = {
2111     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2112     "Securelevel Configuration Menu",
2113     "This menu allows you to select the securelevel your system runs with.\n"
2114     "When operating at a securelevel, certain root privileges are disabled,\n"
2115     "which may increase resistance to exploits and protect system integrity.\n"
2116     "In secure mode system flags may not be overriden by the root user,\n"
2117     "access to direct kernel memory is limited, and kernel modules may not\n"
2118     "be changed.  In highly secure mode, mounted file systems may not be\n"
2119     "modified on-disk, tampering with the system clock is prohibited.  In\n"
2120     "network secure mode configuration changes to firewalling are prohibited.\n",
2121     "Select a securelevel to operate at - F1 for help",
2122     "securelevel",
2123     { { "X Exit",      "Exit this menu (returning to previous)",
2124         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
2125       { "Disabled", "Disable securelevels", NULL, configSecurelevelDisabled, },
2126       { "Secure", "Secure mode", NULL, configSecurelevelSecure },
2127       { "Highly Secure", "Highly secure mode", NULL, configSecurelevelHighlySecure }, 
2128       { "Network Secure", "Network secure mode", NULL, configSecurelevelNetworkSecure },
2129       { NULL } }
2130 };
2131
2132 DMenu MenuFixit = {
2133     DMENU_NORMAL_TYPE,
2134     "Please choose a fixit option",
2135     "There are three ways of going into \"fixit\" mode:\n"
2136     "- you can use the live filesystem CDROM/DVD, in which case there will be\n"
2137     "  full access to the complete set of FreeBSD commands and utilities,\n"
2138     "- you can use the more limited (but perhaps customized) fixit floppy,\n"
2139     "- or you can start an Emergency Holographic Shell now, which is\n"
2140     "  limited to the subset of commands that is already available right now.",
2141     "Press F1 for more detailed repair instructions",
2142     "fixit",
2143 { { "X Exit",           "Exit this menu (returning to previous)",       NULL, dmenuExit },
2144   { "2 CDROM/DVD",      "Use the \"live\" filesystem CDROM/DVD",        NULL, installFixitCDROM },
2145   { "3 Floppy",         "Use a floppy generated from the fixit image",  NULL, installFixitFloppy },
2146   { "4 Shell",          "Start an Emergency Holographic Shell",         NULL, installFixitHoloShell },
2147   { NULL } },
2148 };