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