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