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