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