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