Deleted Added
full compact
menus.c (8828) menus.c (8837)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $Id: menus.c,v 1.36 1995/05/28 23:12:07 jkh Exp $
7 * $Id: menus.c,v 1.37 1995/05/29 01:43:17 jkh Exp $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer,
17 * verbatim and that no modifications are made prior to this
18 * point in the file.
19 * 2. Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the distribution.
22 * 3. All advertising materials mentioning features or use of this software
23 * must display the following acknowledgement:
24 * This product includes software developed by Jordan Hubbard
25 * for the FreeBSD Project.
26 * 4. The name of Jordan Hubbard or the FreeBSD project may not be used to
27 * endorse or promote products derived from this software without specific
28 * prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY JORDAN HUBBARD ``AS IS'' AND
31 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33 * ARE DISCLAIMED. IN NO EVENT SHALL JORDAN HUBBARD OR HIS PETS BE LIABLE
34 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
35 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
36 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
37 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
38 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
39 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
40 * SUCH DAMAGE.
41 *
42 */
43
44#include "sysinstall.h"
45
46/* All the system menus go here.
47 *
48 * Hardcoded things like version number strings will disappear from
49 * these menus just as soon as I add the code for doing inline variable
50 * expansion.
51 */
52
53/* The initial installation menu */
54DMenu MenuInitial = {
55 DMENU_NORMAL_TYPE,
56 "Welcome to FreeBSD 2.0.5!", /* title */
57 "This is the main menu of the FreeBSD installation system. Please\n\
58select one of the options below by using the arrow keys or typing the\n\
59first character of the option name you're interested in. Invoke an\n\
60option by pressing enter. If you'd like a shell, press ESC", /* prompt */
61 "Press F1 for usage instructions", /* help line */
62 "usage.hlp", /* help file */
63 { { "Usage", "Quick start - How to use this menu system.", /* U */
64 DMENU_DISPLAY_FILE, "usage.hlp", 0, 0 },
65 { "Doc", "More detailed documentation on FreeBSD.", /* D */
66 DMENU_SUBMENU, &MenuDocumentation, 0, 0 },
67 { "Language", "Set your preferred language.", /* L */
68 DMENU_SUBMENU, &MenuOptionsLanguage, 0, 0 },
69 { "Options", "Select various options for this utility.", /* O */
70 DMENU_SUBMENU, &MenuOptions, 0, 0 },
71 { "Proceed", "Go to the installation menu", /* P */
72 DMENU_SUBMENU, &MenuInstall, 0, 0 },
73 { "Quit", "Exit this installation utility", /* Q */
74 DMENU_CANCEL, NULL, 0, 0 },
75 { NULL } },
76};
77
78/* The main documentation menu */
79DMenu MenuDocumentation = {
80 DMENU_NORMAL_TYPE,
81 "Documentation for FreeBSD 2.0.5", /* Title */
82 "If you are at all unsure about the configuration of your hardware\n\
83or are looking to build a system specifically for FreeBSD, read the\n\
84Hardware guide! New users should also read the Install document for\n\
85a step-by-step tutorial on installing FreeBSD. For general information,\n\
86consult the README file. If you're having other problems, you may find\n\
87answers in the FAQ.",
88 "Confused? Press F1 for help.",
89 "usage.hlp", /* help file */
90 { { "README", "Read this for a general description of FreeBSD", /* R */
91 DMENU_DISPLAY_FILE, "README", 0, 0 },
92 { "Hardware", "The FreeBSD survival guide for PC hardware.", /* H */
93 DMENU_DISPLAY_FILE, "hardware.hlp", 0, 0 },
94 { "Install", "A step-by-step guide to installing FreeBSD.", /* I */
95 DMENU_DISPLAY_FILE, "install.hlp", 0, 0 },
96 { "Copyright", "The FreeBSD Copyright notices.", /* C */
97 DMENU_DISPLAY_FILE, "COPYRIGHT", 0, 0 },
98 { "Release", "The release notes for this version of FreeBSD.", /* R */
99 DMENU_DISPLAY_FILE, "RELNOTES", 0, 0 },
100 { "FAQ", "Frequently Asked Questions about FreeBSD.", /* F */
101 DMENU_DISPLAY_FILE, "faq.hlp", 0, 0 },
102 { NULL } },
103};
104
105/*
106 * The language selection menu.
107 *
108 * Note: The RADIO menus use a slightly different syntax. If an item
109 * name starts with `*', it's considered to be "ON" by default,
110 * otherwise off.
111 */
112DMenu MenuOptionsLanguage = {
113 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
114 "Natural language selection", /* title */
115 "Please specify the language you'd like to use by default.\n\n\
116While almost all of the system's documentation is still written\n\
117in english (and may never be translated), there are a few guides\n\
118and types of system documentation that may be written in your\n\
119preferred language. When such are found, they will be used instead\n\
120of the english versions. This feature is nonetheless considered\n\
121to be in experimental status at this time.", /* prompt */
122 "Press F1 for more information", /* help line */
123 "language.hlp", /* help file */
124 { { "Danish", "Danish language and character set (ISO-8859-1)", /* D */
125 DMENU_CALL, lang_set_Danish, 0, 0 },
126 { "Dutch", "Dutch language and character set (ISO-8859-1)", /* D */
127 DMENU_CALL, lang_set_Dutch, 0, 0 },
128 { "English", "English language (system default)", /* E */
129 DMENU_CALL, lang_set_English, 0, 0 },
130 { "French", "French language and character set (ISO-8859-1)", /* F */
131 DMENU_CALL, lang_set_French, 0, 0 },
132 { "German", "German language and character set (ISO-8859-1)", /* G */
133 DMENU_CALL, lang_set_German, 0, 0 },
134 { "Italian", "Italian language and character set (ISO-8859-1)", /* I */
135 DMENU_CALL, lang_set_Italian, 0, 0 },
136 { "Japanese", "Japanese language and default character set (romaji)", /* J */
137 DMENU_CALL, lang_set_Japanese, 0, 0 },
138 { "Norwegian", "Norwegian language and character set (ISO-8859-1)", /* N */
139 DMENU_CALL, lang_set_Norwegian, 0, 0},
140 { "Russian", "Russian language and character set (KOI8-R)", /* R */
141 DMENU_CALL, lang_set_Russian, 0, 0 },
142 { "Spanish", "Spanish language and character set (ISO-8859-1)", /* S */
143 DMENU_CALL, lang_set_Spanish, 0, 0 },
144 { "Swedish", "Swedish language and character set (ISO-8859-1)", /* S */
145 DMENU_CALL, lang_set_Swedish, 0, 0 },
146 { NULL } },
147};
148
149DMenu MenuMediaCDROM = {
150 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
151 "Choose a CDROM type",
152 "FreeBSD can be installed directly from a CDROM containing a valid\n\
153FreeBSD 2.0.5 distribution. If you are seeing this menu it's because\n\
154more than one CDROM drive on your system was found. Please select one\n\
155of the following CDROM drives as your installation drive.",
156 "Press F1 to read the installation guide",
157 "install.hlp",
158 { { NULL } },
159};
160
161DMenu MenuMediaFloppy = {
162 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
163 "Choose a Floppy drive",
164"You have more than one floppy drive. Please chose the floppy\n\
165drive you'd like to use for this operation",
166 NULL,
167 NULL,
168 { { NULL } },
169};
170
171DMenu MenuMediaDOS = {
172 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
173 "Choose a DOS partition",
174"FreeBSD can be installed directly from a DOS partition,\n\
175assuming of course that you've copied the relevant distributions\n\
176into your DOS partition before starting this installation. If\n\
177such is not the case, then you should reboot DOS at this time\n\
178and copy the distributions you want to install into a subdirectory\n\
179on one of your DOS partitions. Otherwise, please select the\n\
180DOS partition containing the FreeBSD distribution files.",
181 "Press F1 to read the installation guide",
182 "install.hlp",
183 { { NULL } },
184};
185
186DMenu MenuMediaFTP = {
187 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
188 "Please specify an FTP site",
189 "FreeBSD is distributed from a number of sites on the Internet. Please\n\
190select the site closest to you or \"other\" if you'd like to specify another\n\
191choice. Also note that not all sites carry every possible distribution!\n\
192Distributions other than the basic user set are only guaranteed to be\n\
193available from the Primary site.\n\n\
194If the first site selected doesn't respond, try one of the alternates.\n\
195You may also wish to investigate the Ftp options menu in case of trouble.\n\
196To specify a URL not in this list, chose \"other\".",
197 "Select a site that's close!",
198 "install.hlp",
199 { { "Primary Site", "ftp.freebsd.org",
200 DMENU_SET_VARIABLE, "ftp=ftp://ftp.freebsd.org/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
201 { "Secondary Site", "freefall.cdrom.com",
202 DMENU_SET_VARIABLE, "ftp=ftp://freefall.cdrom.com/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
203 { "Other", "Specify some other ftp site by URL",
204 DMENU_SET_VARIABLE, "ftp=other", 0, 0 },
205 { "Australia", "ftp.physics.usyd.edu.au",
206 DMENU_SET_VARIABLE, "ftp=ftp://ftp.physics.usyd.edu.au/FreeBSD/2.0.5-ALPHA", 0, 0 },
207 { "Finland", "nic.funet.fi",
208 DMENU_SET_VARIABLE, "ftp=ftp://nic.funet.fi/pub/unix/FreeBSD/2.0.5-ALPHA", 0, 0 },
209 { "France", "ftp.ibp.fr",
210 DMENU_SET_VARIABLE, "ftp=ftp://ftp.ibp.fr/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
211 { "Germany", "ftp.uni-duisburg.de",
212 DMENU_SET_VARIABLE, "ftp=ftp://ftp.uni-duisburg.de/pub/unix/FreeBSD/2.0.5-ALPHA", 0, },
213 { "Israel", "orgchem.weizmann.ac.il",
214 DMENU_SET_VARIABLE, "ftp=ftp://orgchem.weizmann.ac.il/pub/FreeBSD-2.0.5-ALPHA", 0, 0 },
215 { "Japan", "ftp.sra.co.jp",
216 DMENU_SET_VARIABLE, "ftp=ftp://ftp.sra.co.jp/pub/os/FreeBSD/distribution/2.0.5-ALPHA", 0, 0 },
217 { "Japan #2", "ftp.mei.co.jp",
218 DMENU_SET_VARIABLE, "ftp=ftp://ftp.mei.co.jp/free/PC-UNIX/FreeBSD/2.0.5-ALPHA", 0, 0 },
219 { "Japan #3", "ftp.waseda.ac.jp",
220 DMENU_SET_VARIABLE, "ftp=ftp://ftp.waseda.ac.jp/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
221 { "Japan #4", "ftp.pu-toyama.ac.jp",
222 DMENU_SET_VARIABLE, "ftp=ftp://ftp.pu-toyama.ac.jp/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
223 { "Japan #5", "ftpsv1.u-aizu.ac.jp",
224 DMENU_SET_VARIABLE, "ftp=ftp://ftpsv1.u-aizu.ac.jp/pub/os/FreeBSD/2.0.5-ALPHA", 0, 0 },
225 { "Japan #6", "tutserver.tutcc.tut.ac.jp",
226 DMENU_SET_VARIABLE, "ftp=ftp://tutserver.tutcc.tut.ac.jp/FreeBSD/FreeBSD-2.0.5-ALPHA", 0, 0 },
227 { "Japan #7", "ftp.ee.uec.ac.jp",
228 DMENU_SET_VARIABLE, "ftp=ftp://ftp.ee.uec.ac.jp/pub/os/FreeBSD.other/FreeBSD-2.0.5-ALPHA", 0, 0 },
229 { "Korea", "ftp.cau.ac.kr",
230 DMENU_SET_VARIABLE, "ftp=ftp://ftp.cau.ac.kr/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
231 { "Netherlands", "ftp.nl.net",
232 DMENU_SET_VARIABLE, "ftp=ftp://ftp.nl.net/pub/os/FreeBSD/2.0.5-ALPHA", 0, 0 },
233 { "Russia", "ftp.kiae.su",
234 DMENU_SET_VARIABLE, "ftp=ftp://ftp.kiae.su/FreeBSD/2.0.5-ALPHA", 0, 0 },
235 { "Sweden", "ftp.luth.se",
236 DMENU_SET_VARIABLE, "ftp=ftp://ftp.luth.se/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
237 { "Taiwan", "netbsd.csie.nctu.edu.tw",
238 DMENU_SET_VARIABLE, "ftp=ftp://netbsd.csie.nctu.edu.tw/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
239 { "Thailand", "ftp.nectec.or.th",
240 DMENU_SET_VARIABLE, "ftp=ftp://ftp.nectec.or.th/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
241 { "UK", "ftp.demon.co.uk",
242 DMENU_SET_VARIABLE, "ftp=ftp://ftp.demon.co.uk/pub/BSD/FreeBSD/2.0.5-ALPHA", 0, 0 },
243 { "UK #2", "src.doc.ic.ac.uk",
244 DMENU_SET_VARIABLE, "ftp=ftp://src.doc.ic.ac.uk/packages/unix/FreeBSD/2.0.5-ALPHA", 0, 0 },
245 { "UK #3", "unix.hensa.ac.uk",
246 DMENU_SET_VARIABLE, "ftp=ftp://unix.hensa.ac.uk/pub/walnut.creek/FreeBSD/2.0.5-ALPHA", 0, 0 },
247 { "USA", "ref.tfs.com",
248 DMENU_SET_VARIABLE, "ftp=ftp://ref.tfs.com/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
249 { "USA #2", "ftp.dataplex.net",
250 DMENU_SET_VARIABLE, "ftp=ftp://ftp.dataplex.net/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
251 { "USA #3", "kryten.atinc.com",
252 DMENU_SET_VARIABLE, "ftp=ftp://kryten.atinc.com/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
253 { "USA #4", "ftp.neosoft.com",
254 DMENU_SET_VARIABLE, "ftp=ftp://ftp.neosoft.com/systems/FreeBSD/2.0.5-ALPHA", 0, 0 },
255 { NULL } }
256};
257
258DMenu MenuMediaTape = {
259 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
260 "Choose a tape drive type",
261 "FreeBSD can be installed from tape drive, though this installation\n\
262method requires a certain amount of temporary storage in addition\n\
263to the space required by the distribution itself (tape drives make\n\
264poor random-access devices, so we extract _everything_ on the tape\n\
265in one pass). If you have sufficient space for this, then you should\n\
266select one of the following tape devices detected on your system.",
267 "Press F1 to read the installation guide",
268 "install.hlp",
269 { { NULL } },
270};
271
272DMenu MenuNetworkDevice = {
273 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
274 "Choose a network interface type",
275"FreeBSD can be installed directly over a network, using NFS or FTP.\n
276If you are using PPP over a serial device (cuaa0 or cuaa1) as opposed\n\
277to a direct ethernet connection, then you may need to first dial your\n\
278service provider using a special utility we provide for that purpose.\n\
279You can also install over a parallel port using a special \"laplink\"\n\
280cable, though this only works if you have another FreeBSD machine running\n\
281a fairly recent (2.0R or later) release to talk to.\n\n\
282To use PPP select one of the serial devices, otherwise select lp0 for\n\
283the parallel port or one of the ethernet controllers (if you have one)\n\
284for an ethernet installation.",
285 "Press F1 to read network configuration manual",
286 "network_device.hlp",
287 { { NULL } },
288};
289
290/* The media selection menu */
291DMenu MenuMedia = {
292 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
293 "Choose Installation Media",
294 "FreeBSD can be installed from a variety of different installation\n\
295media, ranging from floppies to the Internet. If you're installing\n\
296FreeBSD from a supported CDROM drive then this is generally the best\n\
297method to use unless you have some overriding reason for using another\n\
298method.",
299 "Press F1 for more information on the various media types",
300 "media.hlp",
301 { { "CDROM", "Install from a FreeBSD CDROM",
302 DMENU_CALL, mediaSetCDROM, 0, 0 },
303 { "DOS", "Install from a DOS partition",
304 DMENU_CALL, mediaSetDOS, 0, 0 },
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer,
17 * verbatim and that no modifications are made prior to this
18 * point in the file.
19 * 2. Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the distribution.
22 * 3. All advertising materials mentioning features or use of this software
23 * must display the following acknowledgement:
24 * This product includes software developed by Jordan Hubbard
25 * for the FreeBSD Project.
26 * 4. The name of Jordan Hubbard or the FreeBSD project may not be used to
27 * endorse or promote products derived from this software without specific
28 * prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY JORDAN HUBBARD ``AS IS'' AND
31 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33 * ARE DISCLAIMED. IN NO EVENT SHALL JORDAN HUBBARD OR HIS PETS BE LIABLE
34 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
35 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
36 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
37 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
38 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
39 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
40 * SUCH DAMAGE.
41 *
42 */
43
44#include "sysinstall.h"
45
46/* All the system menus go here.
47 *
48 * Hardcoded things like version number strings will disappear from
49 * these menus just as soon as I add the code for doing inline variable
50 * expansion.
51 */
52
53/* The initial installation menu */
54DMenu MenuInitial = {
55 DMENU_NORMAL_TYPE,
56 "Welcome to FreeBSD 2.0.5!", /* title */
57 "This is the main menu of the FreeBSD installation system. Please\n\
58select one of the options below by using the arrow keys or typing the\n\
59first character of the option name you're interested in. Invoke an\n\
60option by pressing enter. If you'd like a shell, press ESC", /* prompt */
61 "Press F1 for usage instructions", /* help line */
62 "usage.hlp", /* help file */
63 { { "Usage", "Quick start - How to use this menu system.", /* U */
64 DMENU_DISPLAY_FILE, "usage.hlp", 0, 0 },
65 { "Doc", "More detailed documentation on FreeBSD.", /* D */
66 DMENU_SUBMENU, &MenuDocumentation, 0, 0 },
67 { "Language", "Set your preferred language.", /* L */
68 DMENU_SUBMENU, &MenuOptionsLanguage, 0, 0 },
69 { "Options", "Select various options for this utility.", /* O */
70 DMENU_SUBMENU, &MenuOptions, 0, 0 },
71 { "Proceed", "Go to the installation menu", /* P */
72 DMENU_SUBMENU, &MenuInstall, 0, 0 },
73 { "Quit", "Exit this installation utility", /* Q */
74 DMENU_CANCEL, NULL, 0, 0 },
75 { NULL } },
76};
77
78/* The main documentation menu */
79DMenu MenuDocumentation = {
80 DMENU_NORMAL_TYPE,
81 "Documentation for FreeBSD 2.0.5", /* Title */
82 "If you are at all unsure about the configuration of your hardware\n\
83or are looking to build a system specifically for FreeBSD, read the\n\
84Hardware guide! New users should also read the Install document for\n\
85a step-by-step tutorial on installing FreeBSD. For general information,\n\
86consult the README file. If you're having other problems, you may find\n\
87answers in the FAQ.",
88 "Confused? Press F1 for help.",
89 "usage.hlp", /* help file */
90 { { "README", "Read this for a general description of FreeBSD", /* R */
91 DMENU_DISPLAY_FILE, "README", 0, 0 },
92 { "Hardware", "The FreeBSD survival guide for PC hardware.", /* H */
93 DMENU_DISPLAY_FILE, "hardware.hlp", 0, 0 },
94 { "Install", "A step-by-step guide to installing FreeBSD.", /* I */
95 DMENU_DISPLAY_FILE, "install.hlp", 0, 0 },
96 { "Copyright", "The FreeBSD Copyright notices.", /* C */
97 DMENU_DISPLAY_FILE, "COPYRIGHT", 0, 0 },
98 { "Release", "The release notes for this version of FreeBSD.", /* R */
99 DMENU_DISPLAY_FILE, "RELNOTES", 0, 0 },
100 { "FAQ", "Frequently Asked Questions about FreeBSD.", /* F */
101 DMENU_DISPLAY_FILE, "faq.hlp", 0, 0 },
102 { NULL } },
103};
104
105/*
106 * The language selection menu.
107 *
108 * Note: The RADIO menus use a slightly different syntax. If an item
109 * name starts with `*', it's considered to be "ON" by default,
110 * otherwise off.
111 */
112DMenu MenuOptionsLanguage = {
113 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
114 "Natural language selection", /* title */
115 "Please specify the language you'd like to use by default.\n\n\
116While almost all of the system's documentation is still written\n\
117in english (and may never be translated), there are a few guides\n\
118and types of system documentation that may be written in your\n\
119preferred language. When such are found, they will be used instead\n\
120of the english versions. This feature is nonetheless considered\n\
121to be in experimental status at this time.", /* prompt */
122 "Press F1 for more information", /* help line */
123 "language.hlp", /* help file */
124 { { "Danish", "Danish language and character set (ISO-8859-1)", /* D */
125 DMENU_CALL, lang_set_Danish, 0, 0 },
126 { "Dutch", "Dutch language and character set (ISO-8859-1)", /* D */
127 DMENU_CALL, lang_set_Dutch, 0, 0 },
128 { "English", "English language (system default)", /* E */
129 DMENU_CALL, lang_set_English, 0, 0 },
130 { "French", "French language and character set (ISO-8859-1)", /* F */
131 DMENU_CALL, lang_set_French, 0, 0 },
132 { "German", "German language and character set (ISO-8859-1)", /* G */
133 DMENU_CALL, lang_set_German, 0, 0 },
134 { "Italian", "Italian language and character set (ISO-8859-1)", /* I */
135 DMENU_CALL, lang_set_Italian, 0, 0 },
136 { "Japanese", "Japanese language and default character set (romaji)", /* J */
137 DMENU_CALL, lang_set_Japanese, 0, 0 },
138 { "Norwegian", "Norwegian language and character set (ISO-8859-1)", /* N */
139 DMENU_CALL, lang_set_Norwegian, 0, 0},
140 { "Russian", "Russian language and character set (KOI8-R)", /* R */
141 DMENU_CALL, lang_set_Russian, 0, 0 },
142 { "Spanish", "Spanish language and character set (ISO-8859-1)", /* S */
143 DMENU_CALL, lang_set_Spanish, 0, 0 },
144 { "Swedish", "Swedish language and character set (ISO-8859-1)", /* S */
145 DMENU_CALL, lang_set_Swedish, 0, 0 },
146 { NULL } },
147};
148
149DMenu MenuMediaCDROM = {
150 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
151 "Choose a CDROM type",
152 "FreeBSD can be installed directly from a CDROM containing a valid\n\
153FreeBSD 2.0.5 distribution. If you are seeing this menu it's because\n\
154more than one CDROM drive on your system was found. Please select one\n\
155of the following CDROM drives as your installation drive.",
156 "Press F1 to read the installation guide",
157 "install.hlp",
158 { { NULL } },
159};
160
161DMenu MenuMediaFloppy = {
162 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
163 "Choose a Floppy drive",
164"You have more than one floppy drive. Please chose the floppy\n\
165drive you'd like to use for this operation",
166 NULL,
167 NULL,
168 { { NULL } },
169};
170
171DMenu MenuMediaDOS = {
172 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
173 "Choose a DOS partition",
174"FreeBSD can be installed directly from a DOS partition,\n\
175assuming of course that you've copied the relevant distributions\n\
176into your DOS partition before starting this installation. If\n\
177such is not the case, then you should reboot DOS at this time\n\
178and copy the distributions you want to install into a subdirectory\n\
179on one of your DOS partitions. Otherwise, please select the\n\
180DOS partition containing the FreeBSD distribution files.",
181 "Press F1 to read the installation guide",
182 "install.hlp",
183 { { NULL } },
184};
185
186DMenu MenuMediaFTP = {
187 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
188 "Please specify an FTP site",
189 "FreeBSD is distributed from a number of sites on the Internet. Please\n\
190select the site closest to you or \"other\" if you'd like to specify another\n\
191choice. Also note that not all sites carry every possible distribution!\n\
192Distributions other than the basic user set are only guaranteed to be\n\
193available from the Primary site.\n\n\
194If the first site selected doesn't respond, try one of the alternates.\n\
195You may also wish to investigate the Ftp options menu in case of trouble.\n\
196To specify a URL not in this list, chose \"other\".",
197 "Select a site that's close!",
198 "install.hlp",
199 { { "Primary Site", "ftp.freebsd.org",
200 DMENU_SET_VARIABLE, "ftp=ftp://ftp.freebsd.org/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
201 { "Secondary Site", "freefall.cdrom.com",
202 DMENU_SET_VARIABLE, "ftp=ftp://freefall.cdrom.com/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
203 { "Other", "Specify some other ftp site by URL",
204 DMENU_SET_VARIABLE, "ftp=other", 0, 0 },
205 { "Australia", "ftp.physics.usyd.edu.au",
206 DMENU_SET_VARIABLE, "ftp=ftp://ftp.physics.usyd.edu.au/FreeBSD/2.0.5-ALPHA", 0, 0 },
207 { "Finland", "nic.funet.fi",
208 DMENU_SET_VARIABLE, "ftp=ftp://nic.funet.fi/pub/unix/FreeBSD/2.0.5-ALPHA", 0, 0 },
209 { "France", "ftp.ibp.fr",
210 DMENU_SET_VARIABLE, "ftp=ftp://ftp.ibp.fr/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
211 { "Germany", "ftp.uni-duisburg.de",
212 DMENU_SET_VARIABLE, "ftp=ftp://ftp.uni-duisburg.de/pub/unix/FreeBSD/2.0.5-ALPHA", 0, },
213 { "Israel", "orgchem.weizmann.ac.il",
214 DMENU_SET_VARIABLE, "ftp=ftp://orgchem.weizmann.ac.il/pub/FreeBSD-2.0.5-ALPHA", 0, 0 },
215 { "Japan", "ftp.sra.co.jp",
216 DMENU_SET_VARIABLE, "ftp=ftp://ftp.sra.co.jp/pub/os/FreeBSD/distribution/2.0.5-ALPHA", 0, 0 },
217 { "Japan #2", "ftp.mei.co.jp",
218 DMENU_SET_VARIABLE, "ftp=ftp://ftp.mei.co.jp/free/PC-UNIX/FreeBSD/2.0.5-ALPHA", 0, 0 },
219 { "Japan #3", "ftp.waseda.ac.jp",
220 DMENU_SET_VARIABLE, "ftp=ftp://ftp.waseda.ac.jp/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
221 { "Japan #4", "ftp.pu-toyama.ac.jp",
222 DMENU_SET_VARIABLE, "ftp=ftp://ftp.pu-toyama.ac.jp/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
223 { "Japan #5", "ftpsv1.u-aizu.ac.jp",
224 DMENU_SET_VARIABLE, "ftp=ftp://ftpsv1.u-aizu.ac.jp/pub/os/FreeBSD/2.0.5-ALPHA", 0, 0 },
225 { "Japan #6", "tutserver.tutcc.tut.ac.jp",
226 DMENU_SET_VARIABLE, "ftp=ftp://tutserver.tutcc.tut.ac.jp/FreeBSD/FreeBSD-2.0.5-ALPHA", 0, 0 },
227 { "Japan #7", "ftp.ee.uec.ac.jp",
228 DMENU_SET_VARIABLE, "ftp=ftp://ftp.ee.uec.ac.jp/pub/os/FreeBSD.other/FreeBSD-2.0.5-ALPHA", 0, 0 },
229 { "Korea", "ftp.cau.ac.kr",
230 DMENU_SET_VARIABLE, "ftp=ftp://ftp.cau.ac.kr/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
231 { "Netherlands", "ftp.nl.net",
232 DMENU_SET_VARIABLE, "ftp=ftp://ftp.nl.net/pub/os/FreeBSD/2.0.5-ALPHA", 0, 0 },
233 { "Russia", "ftp.kiae.su",
234 DMENU_SET_VARIABLE, "ftp=ftp://ftp.kiae.su/FreeBSD/2.0.5-ALPHA", 0, 0 },
235 { "Sweden", "ftp.luth.se",
236 DMENU_SET_VARIABLE, "ftp=ftp://ftp.luth.se/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
237 { "Taiwan", "netbsd.csie.nctu.edu.tw",
238 DMENU_SET_VARIABLE, "ftp=ftp://netbsd.csie.nctu.edu.tw/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
239 { "Thailand", "ftp.nectec.or.th",
240 DMENU_SET_VARIABLE, "ftp=ftp://ftp.nectec.or.th/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
241 { "UK", "ftp.demon.co.uk",
242 DMENU_SET_VARIABLE, "ftp=ftp://ftp.demon.co.uk/pub/BSD/FreeBSD/2.0.5-ALPHA", 0, 0 },
243 { "UK #2", "src.doc.ic.ac.uk",
244 DMENU_SET_VARIABLE, "ftp=ftp://src.doc.ic.ac.uk/packages/unix/FreeBSD/2.0.5-ALPHA", 0, 0 },
245 { "UK #3", "unix.hensa.ac.uk",
246 DMENU_SET_VARIABLE, "ftp=ftp://unix.hensa.ac.uk/pub/walnut.creek/FreeBSD/2.0.5-ALPHA", 0, 0 },
247 { "USA", "ref.tfs.com",
248 DMENU_SET_VARIABLE, "ftp=ftp://ref.tfs.com/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
249 { "USA #2", "ftp.dataplex.net",
250 DMENU_SET_VARIABLE, "ftp=ftp://ftp.dataplex.net/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
251 { "USA #3", "kryten.atinc.com",
252 DMENU_SET_VARIABLE, "ftp=ftp://kryten.atinc.com/pub/FreeBSD/2.0.5-ALPHA", 0, 0 },
253 { "USA #4", "ftp.neosoft.com",
254 DMENU_SET_VARIABLE, "ftp=ftp://ftp.neosoft.com/systems/FreeBSD/2.0.5-ALPHA", 0, 0 },
255 { NULL } }
256};
257
258DMenu MenuMediaTape = {
259 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
260 "Choose a tape drive type",
261 "FreeBSD can be installed from tape drive, though this installation\n\
262method requires a certain amount of temporary storage in addition\n\
263to the space required by the distribution itself (tape drives make\n\
264poor random-access devices, so we extract _everything_ on the tape\n\
265in one pass). If you have sufficient space for this, then you should\n\
266select one of the following tape devices detected on your system.",
267 "Press F1 to read the installation guide",
268 "install.hlp",
269 { { NULL } },
270};
271
272DMenu MenuNetworkDevice = {
273 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
274 "Choose a network interface type",
275"FreeBSD can be installed directly over a network, using NFS or FTP.\n
276If you are using PPP over a serial device (cuaa0 or cuaa1) as opposed\n\
277to a direct ethernet connection, then you may need to first dial your\n\
278service provider using a special utility we provide for that purpose.\n\
279You can also install over a parallel port using a special \"laplink\"\n\
280cable, though this only works if you have another FreeBSD machine running\n\
281a fairly recent (2.0R or later) release to talk to.\n\n\
282To use PPP select one of the serial devices, otherwise select lp0 for\n\
283the parallel port or one of the ethernet controllers (if you have one)\n\
284for an ethernet installation.",
285 "Press F1 to read network configuration manual",
286 "network_device.hlp",
287 { { NULL } },
288};
289
290/* The media selection menu */
291DMenu MenuMedia = {
292 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
293 "Choose Installation Media",
294 "FreeBSD can be installed from a variety of different installation\n\
295media, ranging from floppies to the Internet. If you're installing\n\
296FreeBSD from a supported CDROM drive then this is generally the best\n\
297method to use unless you have some overriding reason for using another\n\
298method.",
299 "Press F1 for more information on the various media types",
300 "media.hlp",
301 { { "CDROM", "Install from a FreeBSD CDROM",
302 DMENU_CALL, mediaSetCDROM, 0, 0 },
303 { "DOS", "Install from a DOS partition",
304 DMENU_CALL, mediaSetDOS, 0, 0 },
305 { "File System", "Install from a UFS or NFS mounted distribution",
306 DMENU_CALL, mediaSetFS, 0, 0 },
305 { "File System", "Install from a mounted filesystem",
306 DMENU_CALL, mediaSetUFS, 0, 0 },
307 { "Floppy", "Install from a floppy disk set",
308 DMENU_CALL, mediaSetFloppy, 0, 0 },
309 { "FTP", "Install from an Internet FTP server",
310 DMENU_CALL, mediaSetFTP, 0, 0 },
307 { "Floppy", "Install from a floppy disk set",
308 DMENU_CALL, mediaSetFloppy, 0, 0 },
309 { "FTP", "Install from an Internet FTP server",
310 DMENU_CALL, mediaSetFTP, 0, 0 },
311 { "NFS", "Install over NFS",
312 DMENU_CALL, mediaSetNFS, 0, 0 },
311 { "Tape", "Install from SCSI or QIC tape",
312 DMENU_CALL, mediaSetTape, 0, 0 },
313 { NULL } },
314};
315
316/* The installation type menu */
317DMenu MenuInstallType = {
318 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
319 "Choose Installation Type",
320 "As a convenience, we provide several \"canned\" installation types.\n\
321These select what we consider to be the most reasonable defaults for the\n\
322type of system in question. If you would prefer to pick and choose\n\
323the list of distributions yourself, simply select \"custom\".",
324 "Press F1 for more information on the various distributions",
325 "dist_types.hlp",
326 { { "Developer", "Full sources, binaries and doc but no games [171MB]",
327 DMENU_CALL, distSetDeveloper, 0, 0 },
328 { "X-Developer", "Same as above, but includes XFree86 [196MB]",
329 DMENU_CALL, distSetXDeveloper, 0, 0 },
330 { "User", "Average user - binaries and doc but no sources [19MB]",
331 DMENU_CALL, distSetUser, 0, 0 },
332 { "X-User", "Same as above, but includes XFree86 [45MB]",
333 DMENU_CALL, distSetXUser, 0, 0 },
334 { "Minimal", "The smallest configuration possible [15MB]",
335 DMENU_CALL, distSetMinimum, 0, 0 },
336 { "Everything", "All sources, binaries and XFree86 binaries [203MB]",
337 DMENU_CALL, distSetEverything, 0, 0 },
338 { "Custom", "Specify your own distribution set [?]",
339 DMENU_SUBMENU, &MenuDistributions, 0, 0 },
340 { "Reset", "Reset selected distribution list to None",
341 DMENU_CALL, distReset, 0, 0 },
342 { NULL } },
343};
344
345DMenu MenuDistributions = {
346 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
347 "Select the distributions you wish to install.",
348 "Please check off the distributions you wish to install. Some\n
349of the most generally useful distributions are already checked, and\n\
350selecting OK at this stage will chose them as defaults.",
351 "Press F1 for a more complete description of these distributions.",
352 "distribution_types.hlp",
353 { { "*bin", "Binary base distribution (required) [36MB]",
354 DMENU_SET_FLAG, &Dists, DIST_BIN, 0 },
355 { "commercial", "Commercial demos and shareware [10MB]",
356 DMENU_SET_FLAG, &Dists, DIST_COMMERCIAL, 0 },
357 { "compat1x", "FreeBSD 1.x binary compatability package [2MB]",
358 DMENU_SET_FLAG, &Dists, DIST_COMPAT1X, 0 },
359 { "compat20", "FreeBSD 2.0 binary compatability package [2MB]",
360 DMENU_SET_FLAG, &Dists, DIST_COMPAT20, 0 },
361 { "DES", "DES encryption code and sources [.3MB]",
362 DMENU_SET_FLAG, &Dists, DIST_DES, 0 },
363 { "dict", "Spelling checker disctionary files [4.2MB]",
364 DMENU_SET_FLAG, &Dists, DIST_DICT, 0 },
365 { "games", "Games and other amusements (non-commercial) [6.4MB]",
366 DMENU_SET_FLAG, &Dists, DIST_GAMES, 0 },
367 { "info", "GNU info files [4.1MB]",
368 DMENU_SET_FLAG, &Dists, DIST_INFO, 0 },
369 { "*man", "System manual pages - strongly recommended [3.3MB]",
370 DMENU_SET_FLAG, &Dists, DIST_MANPAGES, 0 },
371 { "proflibs", "Profiled versions of the libraries [3.3MB]",
372 DMENU_SET_FLAG, &Dists, DIST_PROFLIBS, 0 },
373 { "src", "Sources for everything but DES [120MB]",
374 DMENU_CALL, distSetSrc, 0 },
375 { "XFree86", "The XFree86 3.1.1L distribution [?]",
376 DMENU_SUBMENU, &MenuXF86Select, 0 },
377 { NULL } },
378};
379
380DMenu MenuSrcDistributions = {
381 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
382 "Select the sub-components of src you wish to install.",
383 "Please check off those portions of the FreeBSD source tree\n\
384you wish to install.",
385 "Press F1 for a more complete description of distributions.",
386 "distribution_types.hlp",
387 { { "base", "top-level files in /usr/src [300K]",
388 DMENU_SET_FLAG, &SrcDists, DIST_SRC_BASE, 0 },
389 { "gnu", "/usr/src/gnu (software from the GNU Project) [42MB]]",
390 DMENU_SET_FLAG, &SrcDists, DIST_SRC_GNU, 0 },
391 { "etc", "/usr/src/etc (miscellaneous system files) [460K]",
392 DMENU_SET_FLAG, &SrcDists, DIST_SRC_ETC, 0 },
393 { "games", "/usr/src/games (diversions) [7.8MB]",
394 DMENU_SET_FLAG, &SrcDists, DIST_SRC_GAMES, 0 },
395 { "include", "/usr/src/include (header files) [467K]",
396 DMENU_SET_FLAG, &SrcDists, DIST_SRC_INCLUDE, 0 },
397 { "lib", "/usr/src/lib (system libraries) [9.2MB]",
398 DMENU_SET_FLAG, &SrcDists, DIST_SRC_LIB, 0 },
399 { "libexec", "/usr/src/libexec (system programs) [1.2MB]",
400 DMENU_SET_FLAG, &SrcDists, DIST_SRC_LIBEXEC, 0 },
401 { "lkm", "/usr/src/lkm (Loadable Kernel Modules) [193K]",
402 DMENU_SET_FLAG, &SrcDists, DIST_SRC_LKM, 0 },
403 { "release", "/usr/src/release (release-generation tools) [533K]",
404 DMENU_SET_FLAG, &SrcDists, DIST_SRC_RELEASE, 0 },
405 { "sbin", "/usr/src/sbin (system binaries) [1.3MB]",
406 DMENU_SET_FLAG, &SrcDists, DIST_SRC_SBIN, 0 },
407 { "share", "/usr/src/share (documents and shared files) [10MB]",
408 DMENU_SET_FLAG, &SrcDists, DIST_SRC_SHARE, 0 },
409 { "sys", "/usr/src/sys (FreeBSD kernel) [13MB]",
410 DMENU_SET_FLAG, &SrcDists, DIST_SRC_SYS, 0 },
411 { "ubin", "/usr/src/usr.bin (user binaries) [13MB]",
412 DMENU_SET_FLAG, &SrcDists, DIST_SRC_UBIN, 0 },
413 { "usbin", "/usr/src/usr.sbin (aux system binaries) [14MB]",
414 DMENU_SET_FLAG, &SrcDists, DIST_SRC_USBIN, 0 },
415 { "XFree86", "XFree86 3.1.1L source + contrib distribution [200MB]",
416 DMENU_SET_FLAG, &SrcDists, DIST_SRC_XF86, 0 },
417 { NULL } },
418};
419
420DMenu MenuXF86Select = {
421 DMENU_NORMAL_TYPE,
422 "XFree86 3.1.1u1 Distribution",
423 "Please select the components you need from the XFree86 3.1.1u1\n\
424distribution. We recommend that you select what you need from the basic\n\
425components set and at least one entry from the Server and Font set menus.\n\n\
426When you're finished, select Cancel.",
427 "Press F1 to read the XFree86 release notes for FreeBSD",
428 "XF86S.hlp",
429 { { "Basic", "Basic component menu (required)",
430 DMENU_SUBMENU, &MenuXF86SelectCore, 0, 0 },
431 { "Server", "X server menu",
432 DMENU_SUBMENU, &MenuXF86SelectServer, 0, 0 },
433 { "Fonts", "Font set menu",
434 DMENU_SUBMENU, &MenuXF86SelectFonts, 0, 0 },
435 { NULL } },
436};
437
438DMenu MenuXF86SelectCore = {
439 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
440 "XFree86 3.1.1 base distribution types",
441 "Please check off the basic XFree86 components you wish to install.\n\
442Those deemed most generally useful are already checked off for you.",
443 NULL,
444 NULL,
445 { { "*bin", "X client applications and shared libs [4MB].",
446 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_BIN, 0 },
447 { "*lib", "Data files needed at runtime [600K]",
448 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_LIB, 0 },
449 { "xicf", "Customizable xinit runtime configuration file [100K]",
450 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_XINIT, 0 },
451 { "xdcf", "Customizable xdm runtime configuration file [100K]",
452 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_XDMCF, 0 },
453 { "doc", "READMEs and XFree86 specific man pages [500K]",
454 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_DOC, 0 },
455 { "*man", "Man pages (except XFree86 specific ones) [1.2MB]",
456 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_MAN, 0 },
457 { "prog", "Programmer's header and library files [4MB]",
458 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_PROG, 0 },
459 { "link", "X Server reconfiguration kit [7.8MB]",
460 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_LINK, 0 },
461 { "pex", "PEX fonts and libs needed by PEX apps [500K]",
462 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_PEX, 0 },
463 { NULL } },
464};
465
466DMenu MenuXF86SelectFonts = {
467 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
468 "Font distribution selection.",
469 "Please check off the individual font distributions you wish to\n\
470install. At the minimum, you should install the standard\n\
47175 DPI and misc fonts if you're also installing a server\n\
472(these are selected by default).",
473 NULL,
474 NULL,
475 { { "*fnts", "Standard 75 DPI and miscellaneous fonts [3.6MB]",
476 DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_MISC, 0 },
477 { "f100", "100 DPI fonts [1.8MB]",
478 DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_100, 0 },
479 { "fscl", "Speedo and Type scalable fonts [1.6MB]",
480 DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_SCALE, 0 },
481 { "non", "Japanese, Chinese and other non-english fonts [3.3MB]",
482 DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_NON, 0 },
483 { "server", "Font server [0.3MB]",
484 DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_SERVER, 0 },
485 { NULL } },
486};
487
488DMenu MenuXF86SelectServer = {
489 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
490 "X Server selection.",
491 "Please check off the types of X servers you wish to install.\n\
492If you are unsure as to which server will work for your graphics card,\n\
493it is recommended that try the SVGA or VGA16 servers (the VGA16 and\n\
494Mono servers are particularly well-suited to most LCD displays).",
495 "xservers.hlp",
496 "Press F1 for more information on the various X server types",
497 { { "*SVGA", "Standard VGA or Super VGA display [1MB]",
498 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_SVGA, 0 },
499 { "VGA16", "Standard 16 color VGA display [1MB]",
500 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_VGA16, 0 },
501 { "Mono", "Standard Monochrome display [1MB]",
502 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_MONO, 0 },
503 { "8514", "8-bit (256 color) IBM 8514 or compatible card [1MB]",
504 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_8514, 0 },
505 { "AGX", "8-bit AGX card [1MB]",
506 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_AGX, 0 },
507 { "Mch3", "8 and 16-bit (65K color) for ATI Mach32 card [1MB]",
508 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_MACH32, 0 },
509 { "Mch8", "8-bit ATI Mach8 card [1MB]",
510 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_MACH8, 0 },
511 { "P9K", "8, 16, and 24-bit color for Weitek P9000 based boards [1MB]",
512 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_P9000, 0 },
513 { "S3", "8, 16 and 24-bit color for S3 based boards [1MB]",
514 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_S3, 0 },
515 { "W32", "8-bit Color for ET4000/W32, /W32i and /W32p cards [1MB]",
516 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_W32, 0 },
517 { "nest", "A nested server for testing purposes [1MB]",
518 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_NEST, 0 },
519 { NULL } },
520};
521
522DMenu MenuDiskDevices = {
523 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
524 "Select Drive(s)",
525 "Please select the drive, or drives, on which you wish to install\n\
526FreeBSD. You need to select at least one drive containing some free\n\
527space, though FreeBSD can be installed across several drives if you do\n\
528not have the required space on a single drive. If you wish to boot\n\
529off a drive that's not a `zero drive', or have multiple operating\n\
530systems on your machine, you will have the option to install a boot\n\
531manager later.",
532 "Press F1 for more information on what you see here.",
533 "drives.hlp",
534 { { NULL } },
535};
536
537/* The installation options menu */
538DMenu MenuOptions = {
539 DMENU_NORMAL_TYPE,
540 "Choose Installation Options",
541 "The following options control how this utility will deal\n\
542with various possible error conditions and how verbose it will\n\
543be at various stages.\n\n\
544When you're done setting options, select Cancel",
545 NULL,
546 NULL,
547 { { "Ftp Options", "Ftp options menu",
548 DMENU_SUBMENU, &MenuOptionsFTP, 0, 0 },
549 { "NFS Secure", "NFS server talks only on a secure port",
550 DMENU_SET_VARIABLE, "nfsServerSecure=yes", 0, 0 },
551 { "NFS Slow", "User is using a slow PC or ethernet card",
552 DMENU_SET_VARIABLE, "nfsSlowPC=yes", 0, 0 },
553 { "Extra Debugging", "Toggle the extra debugging flag",
554 DMENU_SET_VARIABLE, "debug=yes", 0, 0 },
555 { "No Debugging", "Turn the extra debugging flag off",
556 DMENU_SET_VARIABLE, "debug=no", 0, 0 },
557 { "Yes To All", "Assume \"Yes\" answers to all non-critical dialogs",
558 DMENU_SET_VARIABLE, "noConfirmation=Yes", 0, 0 },
559 { NULL } },
560};
561
562DMenu MenuOptionsFTP = {
563 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
564 "Choose FTP Options",
565 "Please indicate how you would like FTP to deal with potential error\n\
566conditions, the default behavior being to Abort on transfer errors. If you\n\
567are behind an IP firewall, you will also probably wish to select passive\n\
568mode transfers (it's generally OK to set this in any case as almost all\n\
569servers support it, firewall or no).",
570 NULL,
571 NULL,
572 { { "FTP Retry", "On transfer failure, retry same host",
573 DMENU_SET_VARIABLE, "ftpRetryType=loop", 0, 0 },
574 { "FTP Reselect", "On transfer failure, ask for another host",
575 DMENU_SET_VARIABLE, "ftpRetryType=reselect", 0, 0 },
576 { "FTP Abort", "On transfer failure, abort installation",
577 DMENU_SET_VARIABLE, "ftpRetryType=abort", 0, 0 },
578 { "FTP passive", "Use \"passive mode\" for firewalled FTP",
579 DMENU_SET_VARIABLE, "ftpPassive=yes", 0, 0 },
580 { NULL } },
581};
582
583/* The main installation menu */
584DMenu MenuInstall = {
585 DMENU_NORMAL_TYPE,
586 "Choose Installation Options", /* title */
587 "Before installation can continue, you need to specify a few\n\
588details on the type of distribution you wish to have, where you wish\n\
589to install it from and how you wish to allocate disk storage to FreeBSD.\n\n\
590None of the items in this menu will actually modify the contents of\n\
591your disk until you select the \"Install\" menu item (and even then, only\n\
592after a final confirmation). Select Cancel to leave this menu.",
593 "Press F1 to read the installation guide",
594 "install.hlp",
595 { { "Partition", "Allocate disk space for FreeBSD", /* P */
596 DMENU_CALL, diskPartitionEditor, 0, 0 },
597 { "Label", "Label allocated disk partitions", /* L */
598 DMENU_CALL, diskLabelEditor, 0, 0 },
599 { "Distributions", "Choose the type of installation you want", /* T */
600 DMENU_SUBMENU, &MenuInstallType, 0, 0 },
601 { "Media", "Choose the installation media type", /* M */
602 DMENU_SUBMENU, &MenuMedia, 0, 0 },
603 { "Install", "Install FreeBSD onto your hard disk(s)", /* I */
604 DMENU_CALL, installCommit, 0, 0 },
605 { "Configure", "Do post-install configuration of FreeBSD", /* C */
606 DMENU_SUBMENU, &MenuConfigure, 0, 0 },
607 { NULL } },
608};
609
610/* MBR type menu */
611DMenu MenuMBRType = {
612 DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
613 "Chose boot manager type", /* title */
614 "FreeBSD comes with a boot selector that allows you to easily\n\
615select between FreeBSD and other operating systems on your machine\n\
616at boot time. If you have more than one drive and wish to boot\n\
617from other than the first, the boot selector will also allow you\n\
618to do so (limitations in the PC BIOS usually prevent this otherwise).\n\
619If you do not want a boot selector, or wish to replace an existing\n\
620one, select \"standard\". If you would prefer your Master Boot\n\
621Record to remain untouched, then select \"none\".",
622 "Press F1 to read the installation guide",
623 "install.hlp",
624 { { "*BootMgr", "Install the FreeBSD Boot Manager (\"Booteasy\")", /* B */
625 DMENU_SET_VARIABLE, "bootManager=bteasy", 0, 0 },
626 { "Standard", "Use a standard MBR (no boot manager)", /* S */
627 DMENU_SET_VARIABLE, "bootManager=mbr", 0, 0 },
628 { "None", "Leave the Master Boot Record untouched", /* N */
629 DMENU_SET_VARIABLE, "bootManager=none", 0, 0 },
630 { NULL } },
631};
632
633/* Final configuration menu */
634DMenu MenuConfigure = {
635 DMENU_NORMAL_TYPE,
636 "FreeBSD Configuration Menu", /* title */
637 "If you've already installed FreeBSD, you may use this menu to\n\
638customize it somewhat to suit your particular configuration. Most\n\
639importantly, you can use the Packages utility to load extra \"3rd party\"\n\
640software not provided in the base distributions.\n\n\
641When you're done, select Cancel",
642 "Press F1 for more information on these options",
643 "configure.hlp",
644 { { "Add User", "Add users to the system",
313 { "Tape", "Install from SCSI or QIC tape",
314 DMENU_CALL, mediaSetTape, 0, 0 },
315 { NULL } },
316};
317
318/* The installation type menu */
319DMenu MenuInstallType = {
320 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
321 "Choose Installation Type",
322 "As a convenience, we provide several \"canned\" installation types.\n\
323These select what we consider to be the most reasonable defaults for the\n\
324type of system in question. If you would prefer to pick and choose\n\
325the list of distributions yourself, simply select \"custom\".",
326 "Press F1 for more information on the various distributions",
327 "dist_types.hlp",
328 { { "Developer", "Full sources, binaries and doc but no games [171MB]",
329 DMENU_CALL, distSetDeveloper, 0, 0 },
330 { "X-Developer", "Same as above, but includes XFree86 [196MB]",
331 DMENU_CALL, distSetXDeveloper, 0, 0 },
332 { "User", "Average user - binaries and doc but no sources [19MB]",
333 DMENU_CALL, distSetUser, 0, 0 },
334 { "X-User", "Same as above, but includes XFree86 [45MB]",
335 DMENU_CALL, distSetXUser, 0, 0 },
336 { "Minimal", "The smallest configuration possible [15MB]",
337 DMENU_CALL, distSetMinimum, 0, 0 },
338 { "Everything", "All sources, binaries and XFree86 binaries [203MB]",
339 DMENU_CALL, distSetEverything, 0, 0 },
340 { "Custom", "Specify your own distribution set [?]",
341 DMENU_SUBMENU, &MenuDistributions, 0, 0 },
342 { "Reset", "Reset selected distribution list to None",
343 DMENU_CALL, distReset, 0, 0 },
344 { NULL } },
345};
346
347DMenu MenuDistributions = {
348 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
349 "Select the distributions you wish to install.",
350 "Please check off the distributions you wish to install. Some\n
351of the most generally useful distributions are already checked, and\n\
352selecting OK at this stage will chose them as defaults.",
353 "Press F1 for a more complete description of these distributions.",
354 "distribution_types.hlp",
355 { { "*bin", "Binary base distribution (required) [36MB]",
356 DMENU_SET_FLAG, &Dists, DIST_BIN, 0 },
357 { "commercial", "Commercial demos and shareware [10MB]",
358 DMENU_SET_FLAG, &Dists, DIST_COMMERCIAL, 0 },
359 { "compat1x", "FreeBSD 1.x binary compatability package [2MB]",
360 DMENU_SET_FLAG, &Dists, DIST_COMPAT1X, 0 },
361 { "compat20", "FreeBSD 2.0 binary compatability package [2MB]",
362 DMENU_SET_FLAG, &Dists, DIST_COMPAT20, 0 },
363 { "DES", "DES encryption code and sources [.3MB]",
364 DMENU_SET_FLAG, &Dists, DIST_DES, 0 },
365 { "dict", "Spelling checker disctionary files [4.2MB]",
366 DMENU_SET_FLAG, &Dists, DIST_DICT, 0 },
367 { "games", "Games and other amusements (non-commercial) [6.4MB]",
368 DMENU_SET_FLAG, &Dists, DIST_GAMES, 0 },
369 { "info", "GNU info files [4.1MB]",
370 DMENU_SET_FLAG, &Dists, DIST_INFO, 0 },
371 { "*man", "System manual pages - strongly recommended [3.3MB]",
372 DMENU_SET_FLAG, &Dists, DIST_MANPAGES, 0 },
373 { "proflibs", "Profiled versions of the libraries [3.3MB]",
374 DMENU_SET_FLAG, &Dists, DIST_PROFLIBS, 0 },
375 { "src", "Sources for everything but DES [120MB]",
376 DMENU_CALL, distSetSrc, 0 },
377 { "XFree86", "The XFree86 3.1.1L distribution [?]",
378 DMENU_SUBMENU, &MenuXF86Select, 0 },
379 { NULL } },
380};
381
382DMenu MenuSrcDistributions = {
383 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
384 "Select the sub-components of src you wish to install.",
385 "Please check off those portions of the FreeBSD source tree\n\
386you wish to install.",
387 "Press F1 for a more complete description of distributions.",
388 "distribution_types.hlp",
389 { { "base", "top-level files in /usr/src [300K]",
390 DMENU_SET_FLAG, &SrcDists, DIST_SRC_BASE, 0 },
391 { "gnu", "/usr/src/gnu (software from the GNU Project) [42MB]]",
392 DMENU_SET_FLAG, &SrcDists, DIST_SRC_GNU, 0 },
393 { "etc", "/usr/src/etc (miscellaneous system files) [460K]",
394 DMENU_SET_FLAG, &SrcDists, DIST_SRC_ETC, 0 },
395 { "games", "/usr/src/games (diversions) [7.8MB]",
396 DMENU_SET_FLAG, &SrcDists, DIST_SRC_GAMES, 0 },
397 { "include", "/usr/src/include (header files) [467K]",
398 DMENU_SET_FLAG, &SrcDists, DIST_SRC_INCLUDE, 0 },
399 { "lib", "/usr/src/lib (system libraries) [9.2MB]",
400 DMENU_SET_FLAG, &SrcDists, DIST_SRC_LIB, 0 },
401 { "libexec", "/usr/src/libexec (system programs) [1.2MB]",
402 DMENU_SET_FLAG, &SrcDists, DIST_SRC_LIBEXEC, 0 },
403 { "lkm", "/usr/src/lkm (Loadable Kernel Modules) [193K]",
404 DMENU_SET_FLAG, &SrcDists, DIST_SRC_LKM, 0 },
405 { "release", "/usr/src/release (release-generation tools) [533K]",
406 DMENU_SET_FLAG, &SrcDists, DIST_SRC_RELEASE, 0 },
407 { "sbin", "/usr/src/sbin (system binaries) [1.3MB]",
408 DMENU_SET_FLAG, &SrcDists, DIST_SRC_SBIN, 0 },
409 { "share", "/usr/src/share (documents and shared files) [10MB]",
410 DMENU_SET_FLAG, &SrcDists, DIST_SRC_SHARE, 0 },
411 { "sys", "/usr/src/sys (FreeBSD kernel) [13MB]",
412 DMENU_SET_FLAG, &SrcDists, DIST_SRC_SYS, 0 },
413 { "ubin", "/usr/src/usr.bin (user binaries) [13MB]",
414 DMENU_SET_FLAG, &SrcDists, DIST_SRC_UBIN, 0 },
415 { "usbin", "/usr/src/usr.sbin (aux system binaries) [14MB]",
416 DMENU_SET_FLAG, &SrcDists, DIST_SRC_USBIN, 0 },
417 { "XFree86", "XFree86 3.1.1L source + contrib distribution [200MB]",
418 DMENU_SET_FLAG, &SrcDists, DIST_SRC_XF86, 0 },
419 { NULL } },
420};
421
422DMenu MenuXF86Select = {
423 DMENU_NORMAL_TYPE,
424 "XFree86 3.1.1u1 Distribution",
425 "Please select the components you need from the XFree86 3.1.1u1\n\
426distribution. We recommend that you select what you need from the basic\n\
427components set and at least one entry from the Server and Font set menus.\n\n\
428When you're finished, select Cancel.",
429 "Press F1 to read the XFree86 release notes for FreeBSD",
430 "XF86S.hlp",
431 { { "Basic", "Basic component menu (required)",
432 DMENU_SUBMENU, &MenuXF86SelectCore, 0, 0 },
433 { "Server", "X server menu",
434 DMENU_SUBMENU, &MenuXF86SelectServer, 0, 0 },
435 { "Fonts", "Font set menu",
436 DMENU_SUBMENU, &MenuXF86SelectFonts, 0, 0 },
437 { NULL } },
438};
439
440DMenu MenuXF86SelectCore = {
441 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
442 "XFree86 3.1.1 base distribution types",
443 "Please check off the basic XFree86 components you wish to install.\n\
444Those deemed most generally useful are already checked off for you.",
445 NULL,
446 NULL,
447 { { "*bin", "X client applications and shared libs [4MB].",
448 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_BIN, 0 },
449 { "*lib", "Data files needed at runtime [600K]",
450 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_LIB, 0 },
451 { "xicf", "Customizable xinit runtime configuration file [100K]",
452 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_XINIT, 0 },
453 { "xdcf", "Customizable xdm runtime configuration file [100K]",
454 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_XDMCF, 0 },
455 { "doc", "READMEs and XFree86 specific man pages [500K]",
456 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_DOC, 0 },
457 { "*man", "Man pages (except XFree86 specific ones) [1.2MB]",
458 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_MAN, 0 },
459 { "prog", "Programmer's header and library files [4MB]",
460 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_PROG, 0 },
461 { "link", "X Server reconfiguration kit [7.8MB]",
462 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_LINK, 0 },
463 { "pex", "PEX fonts and libs needed by PEX apps [500K]",
464 DMENU_SET_FLAG, &XF86Dists, DIST_XF86_PEX, 0 },
465 { NULL } },
466};
467
468DMenu MenuXF86SelectFonts = {
469 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
470 "Font distribution selection.",
471 "Please check off the individual font distributions you wish to\n\
472install. At the minimum, you should install the standard\n\
47375 DPI and misc fonts if you're also installing a server\n\
474(these are selected by default).",
475 NULL,
476 NULL,
477 { { "*fnts", "Standard 75 DPI and miscellaneous fonts [3.6MB]",
478 DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_MISC, 0 },
479 { "f100", "100 DPI fonts [1.8MB]",
480 DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_100, 0 },
481 { "fscl", "Speedo and Type scalable fonts [1.6MB]",
482 DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_SCALE, 0 },
483 { "non", "Japanese, Chinese and other non-english fonts [3.3MB]",
484 DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_NON, 0 },
485 { "server", "Font server [0.3MB]",
486 DMENU_SET_FLAG, &XF86FontDists, DIST_XF86_FONTS_SERVER, 0 },
487 { NULL } },
488};
489
490DMenu MenuXF86SelectServer = {
491 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
492 "X Server selection.",
493 "Please check off the types of X servers you wish to install.\n\
494If you are unsure as to which server will work for your graphics card,\n\
495it is recommended that try the SVGA or VGA16 servers (the VGA16 and\n\
496Mono servers are particularly well-suited to most LCD displays).",
497 "xservers.hlp",
498 "Press F1 for more information on the various X server types",
499 { { "*SVGA", "Standard VGA or Super VGA display [1MB]",
500 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_SVGA, 0 },
501 { "VGA16", "Standard 16 color VGA display [1MB]",
502 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_VGA16, 0 },
503 { "Mono", "Standard Monochrome display [1MB]",
504 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_MONO, 0 },
505 { "8514", "8-bit (256 color) IBM 8514 or compatible card [1MB]",
506 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_8514, 0 },
507 { "AGX", "8-bit AGX card [1MB]",
508 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_AGX, 0 },
509 { "Mch3", "8 and 16-bit (65K color) for ATI Mach32 card [1MB]",
510 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_MACH32, 0 },
511 { "Mch8", "8-bit ATI Mach8 card [1MB]",
512 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_MACH8, 0 },
513 { "P9K", "8, 16, and 24-bit color for Weitek P9000 based boards [1MB]",
514 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_P9000, 0 },
515 { "S3", "8, 16 and 24-bit color for S3 based boards [1MB]",
516 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_S3, 0 },
517 { "W32", "8-bit Color for ET4000/W32, /W32i and /W32p cards [1MB]",
518 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_W32, 0 },
519 { "nest", "A nested server for testing purposes [1MB]",
520 DMENU_SET_FLAG, &XF86ServerDists, DIST_XF86_SERVER_NEST, 0 },
521 { NULL } },
522};
523
524DMenu MenuDiskDevices = {
525 DMENU_MULTIPLE_TYPE | DMENU_SELECTION_RETURNS,
526 "Select Drive(s)",
527 "Please select the drive, or drives, on which you wish to install\n\
528FreeBSD. You need to select at least one drive containing some free\n\
529space, though FreeBSD can be installed across several drives if you do\n\
530not have the required space on a single drive. If you wish to boot\n\
531off a drive that's not a `zero drive', or have multiple operating\n\
532systems on your machine, you will have the option to install a boot\n\
533manager later.",
534 "Press F1 for more information on what you see here.",
535 "drives.hlp",
536 { { NULL } },
537};
538
539/* The installation options menu */
540DMenu MenuOptions = {
541 DMENU_NORMAL_TYPE,
542 "Choose Installation Options",
543 "The following options control how this utility will deal\n\
544with various possible error conditions and how verbose it will\n\
545be at various stages.\n\n\
546When you're done setting options, select Cancel",
547 NULL,
548 NULL,
549 { { "Ftp Options", "Ftp options menu",
550 DMENU_SUBMENU, &MenuOptionsFTP, 0, 0 },
551 { "NFS Secure", "NFS server talks only on a secure port",
552 DMENU_SET_VARIABLE, "nfsServerSecure=yes", 0, 0 },
553 { "NFS Slow", "User is using a slow PC or ethernet card",
554 DMENU_SET_VARIABLE, "nfsSlowPC=yes", 0, 0 },
555 { "Extra Debugging", "Toggle the extra debugging flag",
556 DMENU_SET_VARIABLE, "debug=yes", 0, 0 },
557 { "No Debugging", "Turn the extra debugging flag off",
558 DMENU_SET_VARIABLE, "debug=no", 0, 0 },
559 { "Yes To All", "Assume \"Yes\" answers to all non-critical dialogs",
560 DMENU_SET_VARIABLE, "noConfirmation=Yes", 0, 0 },
561 { NULL } },
562};
563
564DMenu MenuOptionsFTP = {
565 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
566 "Choose FTP Options",
567 "Please indicate how you would like FTP to deal with potential error\n\
568conditions, the default behavior being to Abort on transfer errors. If you\n\
569are behind an IP firewall, you will also probably wish to select passive\n\
570mode transfers (it's generally OK to set this in any case as almost all\n\
571servers support it, firewall or no).",
572 NULL,
573 NULL,
574 { { "FTP Retry", "On transfer failure, retry same host",
575 DMENU_SET_VARIABLE, "ftpRetryType=loop", 0, 0 },
576 { "FTP Reselect", "On transfer failure, ask for another host",
577 DMENU_SET_VARIABLE, "ftpRetryType=reselect", 0, 0 },
578 { "FTP Abort", "On transfer failure, abort installation",
579 DMENU_SET_VARIABLE, "ftpRetryType=abort", 0, 0 },
580 { "FTP passive", "Use \"passive mode\" for firewalled FTP",
581 DMENU_SET_VARIABLE, "ftpPassive=yes", 0, 0 },
582 { NULL } },
583};
584
585/* The main installation menu */
586DMenu MenuInstall = {
587 DMENU_NORMAL_TYPE,
588 "Choose Installation Options", /* title */
589 "Before installation can continue, you need to specify a few\n\
590details on the type of distribution you wish to have, where you wish\n\
591to install it from and how you wish to allocate disk storage to FreeBSD.\n\n\
592None of the items in this menu will actually modify the contents of\n\
593your disk until you select the \"Install\" menu item (and even then, only\n\
594after a final confirmation). Select Cancel to leave this menu.",
595 "Press F1 to read the installation guide",
596 "install.hlp",
597 { { "Partition", "Allocate disk space for FreeBSD", /* P */
598 DMENU_CALL, diskPartitionEditor, 0, 0 },
599 { "Label", "Label allocated disk partitions", /* L */
600 DMENU_CALL, diskLabelEditor, 0, 0 },
601 { "Distributions", "Choose the type of installation you want", /* T */
602 DMENU_SUBMENU, &MenuInstallType, 0, 0 },
603 { "Media", "Choose the installation media type", /* M */
604 DMENU_SUBMENU, &MenuMedia, 0, 0 },
605 { "Install", "Install FreeBSD onto your hard disk(s)", /* I */
606 DMENU_CALL, installCommit, 0, 0 },
607 { "Configure", "Do post-install configuration of FreeBSD", /* C */
608 DMENU_SUBMENU, &MenuConfigure, 0, 0 },
609 { NULL } },
610};
611
612/* MBR type menu */
613DMenu MenuMBRType = {
614 DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
615 "Chose boot manager type", /* title */
616 "FreeBSD comes with a boot selector that allows you to easily\n\
617select between FreeBSD and other operating systems on your machine\n\
618at boot time. If you have more than one drive and wish to boot\n\
619from other than the first, the boot selector will also allow you\n\
620to do so (limitations in the PC BIOS usually prevent this otherwise).\n\
621If you do not want a boot selector, or wish to replace an existing\n\
622one, select \"standard\". If you would prefer your Master Boot\n\
623Record to remain untouched, then select \"none\".",
624 "Press F1 to read the installation guide",
625 "install.hlp",
626 { { "*BootMgr", "Install the FreeBSD Boot Manager (\"Booteasy\")", /* B */
627 DMENU_SET_VARIABLE, "bootManager=bteasy", 0, 0 },
628 { "Standard", "Use a standard MBR (no boot manager)", /* S */
629 DMENU_SET_VARIABLE, "bootManager=mbr", 0, 0 },
630 { "None", "Leave the Master Boot Record untouched", /* N */
631 DMENU_SET_VARIABLE, "bootManager=none", 0, 0 },
632 { NULL } },
633};
634
635/* Final configuration menu */
636DMenu MenuConfigure = {
637 DMENU_NORMAL_TYPE,
638 "FreeBSD Configuration Menu", /* title */
639 "If you've already installed FreeBSD, you may use this menu to\n\
640customize it somewhat to suit your particular configuration. Most\n\
641importantly, you can use the Packages utility to load extra \"3rd party\"\n\
642software not provided in the base distributions.\n\n\
643When you're done, select Cancel",
644 "Press F1 for more information on these options",
645 "configure.hlp",
646 { { "Add User", "Add users to the system",
645 DMENU_SYSTEM_COMMAND, "adduser", 0, 0 },
647 DMENU_SYSTEM_COMMAND, "adduser -silent", 0, 0 },
646 { "Console", "Customize system console behavior",
647 DMENU_SUBMENU, &MenuSyscons, 0, 0 },
648 { "Networking", "Configure additional network services",
649 DMENU_SUBMENU, &MenuNetworking, 0, 0 },
650 { "Time Zone", "Set which time zone you're in",
651 DMENU_SYSTEM_COMMAND, "tzsetup", 0, 0 },
652 { "Packages", "Install extra FreeBSD packaged software",
653 DMENU_CALL, configPackages, 0, 0 },
654 { "Ports", "Enable the FreeBSD Ports Collection from CD",
655 DMENU_CALL, configPorts, 0, 1 },
656 { "Root Password", "Set the system manager's password",
657 DMENU_SYSTEM_COMMAND, "passwd root", 0, 0 },
658 { "XFree86", "Configure XFree86 (if installed)",
659 DMENU_SYSTEM_COMMAND, "PATH=/usr/bin:/bin:/usr/X11R6/bin xf86config", 0, 0 },
660 { NULL } },
661};
662
663DMenu MenuNetworking = {
664 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
665 "Network Services Menu",
666 "You may have already configured one network device (and the\n\
667other various hostname/gateway/name server parameters) in the process\n\
668of installing FreeBSD. This menu allows you to configure other\n\
669aspects of your system's network configuration.",
670 NULL,
671 NULL,
672 { { "NFS client", "This machine will be an NFS client",
673 DMENU_SET_VARIABLE, "nfs_client=YES", 0, 0 },
674 { "NFS server", "This machine will be an NFS server",
675 DMENU_SET_VARIABLE, "nfs_server=YES", 0, 0 },
676 { "interfaces", "Configure additional interfaces",
677 DMENU_CALL, tcpDeviceSelect, 0, 0 },
678 { "ntpdate", "Select a clock-syncronization server",
679 DMENU_SUBMENU, &MenuNTP, 0, 0 },
680 { "routed", "Set flags for routed (default: -q)",
681 DMENU_CALL, configRoutedFlags, 0, 0 },
682 { "rwhod", "This machine wants to run the rwho daemon",
683 DMENU_SET_VARIABLE, "rwhod=YES", 0, 0 },
684 { NULL } },
685};
686
687DMenu MenuNTP = {
688 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
689 "NTPDATE Server Selection",
690 "There are a number of time syncronization servers available\n\
691for public use around the Internet. Please select one reasonably\n\
692close to you to have your system time syncronized accordingly.",
693 "These are the primary open-access NTP servers",
694 NULL,
695 { { "Australia", "ntp.syd.dms.csiro.au (HP 5061 Cesium Beam)",
696 DMENU_SET_VARIABLE, "ntpdate=ntp.syd.dms.csiro.au", 0, 0 },
697 { "Canada", "tick.usask.ca (GOES clock)",
698 DMENU_SET_VARIABLE, "ntpdate=tick.usask.ca", 0, 0 },
699 { "France", "canon.inria.fr (TDF clock)",
700 DMENU_SET_VARIABLE, "ntpdate=canon.inria.fr", 0, 0 },
701 { "Germany", "ntps1-{0,1,2}.uni-erlangen.de (GPS)",
702 DMENU_SET_VARIABLE, "ntpdate=ntps1-0.uni-erlangen.de", 0, 0 },
648 { "Console", "Customize system console behavior",
649 DMENU_SUBMENU, &MenuSyscons, 0, 0 },
650 { "Networking", "Configure additional network services",
651 DMENU_SUBMENU, &MenuNetworking, 0, 0 },
652 { "Time Zone", "Set which time zone you're in",
653 DMENU_SYSTEM_COMMAND, "tzsetup", 0, 0 },
654 { "Packages", "Install extra FreeBSD packaged software",
655 DMENU_CALL, configPackages, 0, 0 },
656 { "Ports", "Enable the FreeBSD Ports Collection from CD",
657 DMENU_CALL, configPorts, 0, 1 },
658 { "Root Password", "Set the system manager's password",
659 DMENU_SYSTEM_COMMAND, "passwd root", 0, 0 },
660 { "XFree86", "Configure XFree86 (if installed)",
661 DMENU_SYSTEM_COMMAND, "PATH=/usr/bin:/bin:/usr/X11R6/bin xf86config", 0, 0 },
662 { NULL } },
663};
664
665DMenu MenuNetworking = {
666 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
667 "Network Services Menu",
668 "You may have already configured one network device (and the\n\
669other various hostname/gateway/name server parameters) in the process\n\
670of installing FreeBSD. This menu allows you to configure other\n\
671aspects of your system's network configuration.",
672 NULL,
673 NULL,
674 { { "NFS client", "This machine will be an NFS client",
675 DMENU_SET_VARIABLE, "nfs_client=YES", 0, 0 },
676 { "NFS server", "This machine will be an NFS server",
677 DMENU_SET_VARIABLE, "nfs_server=YES", 0, 0 },
678 { "interfaces", "Configure additional interfaces",
679 DMENU_CALL, tcpDeviceSelect, 0, 0 },
680 { "ntpdate", "Select a clock-syncronization server",
681 DMENU_SUBMENU, &MenuNTP, 0, 0 },
682 { "routed", "Set flags for routed (default: -q)",
683 DMENU_CALL, configRoutedFlags, 0, 0 },
684 { "rwhod", "This machine wants to run the rwho daemon",
685 DMENU_SET_VARIABLE, "rwhod=YES", 0, 0 },
686 { NULL } },
687};
688
689DMenu MenuNTP = {
690 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
691 "NTPDATE Server Selection",
692 "There are a number of time syncronization servers available\n\
693for public use around the Internet. Please select one reasonably\n\
694close to you to have your system time syncronized accordingly.",
695 "These are the primary open-access NTP servers",
696 NULL,
697 { { "Australia", "ntp.syd.dms.csiro.au (HP 5061 Cesium Beam)",
698 DMENU_SET_VARIABLE, "ntpdate=ntp.syd.dms.csiro.au", 0, 0 },
699 { "Canada", "tick.usask.ca (GOES clock)",
700 DMENU_SET_VARIABLE, "ntpdate=tick.usask.ca", 0, 0 },
701 { "France", "canon.inria.fr (TDF clock)",
702 DMENU_SET_VARIABLE, "ntpdate=canon.inria.fr", 0, 0 },
703 { "Germany", "ntps1-{0,1,2}.uni-erlangen.de (GPS)",
704 DMENU_SET_VARIABLE, "ntpdate=ntps1-0.uni-erlangen.de", 0, 0 },
703 { "Germany", "ntps1-0.cs.tu-berlin.de (GPS)",
705 { "Germany #2", "ntps1-0.cs.tu-berlin.de (GPS)",
704 DMENU_SET_VARIABLE, "ntpdate=ntps1-0.cs.tu-berlin.de", 0, 0 },
705 { "Japan", "clock.nc.fukuoka-u.ac.jp (GPS clock)",
706 DMENU_SET_VARIABLE, "ntpdate=clock.nc.fukuoka-u.ac.jp", 0, 0},
706 DMENU_SET_VARIABLE, "ntpdate=ntps1-0.cs.tu-berlin.de", 0, 0 },
707 { "Japan", "clock.nc.fukuoka-u.ac.jp (GPS clock)",
708 DMENU_SET_VARIABLE, "ntpdate=clock.nc.fukuoka-u.ac.jp", 0, 0},
707 { "Japan", "clock.tl.fukuoka-u.ac.jp (GPS clock)",
709 { "Japan #2", "clock.tl.fukuoka-u.ac.jp (GPS clock)",
708 DMENU_SET_VARIABLE, "ntpdate=clock.tl.fukuoka-u.ac.jp", 0, 0},
709 { "Netherlands", "ntp0.nl.net (GPS clock)",
710 DMENU_SET_VARIABLE, "ntpdate=ntp0.nl.net", 0, 0 },
711 { "Norway", "timer.unik.no (NTP clock)",
712 DMENU_SET_VARIABLE, "ntpdate=timer.unik.no", 0, 0 },
713 { "Sweden", "Time1.Stupi.SE (Cesium/GPS)",
714 DMENU_SET_VARIABLE, "ntpdate=Time1.Stupi.SE", 0, 0 },
715 { "Switzerland", "swisstime.ethz.ch (DCF77 clock)",
716 DMENU_SET_VARIABLE, "ntpdate=swisstime.ethz.ch", 0, 0 },
717 { "U.S. East Coast", "bitsy.mit.edu (WWV clock)",
718 DMENU_SET_VARIABLE, "ntpdate=bitsy.mit.edu", 0, 0 },
710 DMENU_SET_VARIABLE, "ntpdate=clock.tl.fukuoka-u.ac.jp", 0, 0},
711 { "Netherlands", "ntp0.nl.net (GPS clock)",
712 DMENU_SET_VARIABLE, "ntpdate=ntp0.nl.net", 0, 0 },
713 { "Norway", "timer.unik.no (NTP clock)",
714 DMENU_SET_VARIABLE, "ntpdate=timer.unik.no", 0, 0 },
715 { "Sweden", "Time1.Stupi.SE (Cesium/GPS)",
716 DMENU_SET_VARIABLE, "ntpdate=Time1.Stupi.SE", 0, 0 },
717 { "Switzerland", "swisstime.ethz.ch (DCF77 clock)",
718 DMENU_SET_VARIABLE, "ntpdate=swisstime.ethz.ch", 0, 0 },
719 { "U.S. East Coast", "bitsy.mit.edu (WWV clock)",
720 DMENU_SET_VARIABLE, "ntpdate=bitsy.mit.edu", 0, 0 },
719 { "U.S. East Coast", "otc1.psu.edu (WWV clock)",
721 { "U.S. East Coast #2", "otc1.psu.edu (WWV clock)",
720 DMENU_SET_VARIABLE, "ntpdate=otc1.psu.edu", 0, 0 },
721 { "U.S. West Coast", "apple.com (WWV clock)",
722 DMENU_SET_VARIABLE, "ntpdate=apple.com", 0, 0 },
722 DMENU_SET_VARIABLE, "ntpdate=otc1.psu.edu", 0, 0 },
723 { "U.S. West Coast", "apple.com (WWV clock)",
724 DMENU_SET_VARIABLE, "ntpdate=apple.com", 0, 0 },
723 { "U.S. West Coast", "clepsydra.dec.com (GOES clock)",
725 { "U.S. West Coast #2", "clepsydra.dec.com (GOES clock)",
724 DMENU_SET_VARIABLE, "ntpdate=clepsydra.dec.com", 0, 0 },
726 DMENU_SET_VARIABLE, "ntpdate=clepsydra.dec.com", 0, 0 },
725 { "U.S. West Coast", "clock.llnl.gov (WWVB clock)",
726 DMENU_SET_VARIABLE, "ntpdate=clock.llnl.gov", 0, 0 },
727 { "U.S. West Coast #3", "clock.llnl.gov (WWVB clock)",
728 DMENU_SET_VARIABLE, "ntpdate=clock.llnl.gov", 0, 0 },
727 { "U.S. Midwest", "ncar.ucar.edu (WWVB clock)",
729 { "U.S. Midwest", "ncar.ucar.edu (WWVB clock)",
728 DMENU_SET_VARIABLE, "ntpdate=ncar.ucar.edu", 0, 0 },
730 DMENU_SET_VARIABLE, "ntpdate=ncar.ucar.edu", 0, 0 },
729 { "U.S. Pacific", "chantry.hawaii.net (WWV/H clock)",
730 DMENU_SET_VARIABLE, "ntpdate=chantry.hawaii.net", 0, 0 },
731 { "U.S. Southwest", "shorty.chpc.utexas.edu (WWV clock)",
731 { "U.S. Pacific", "chantry.hawaii.net (WWV/H clock)",
732 DMENU_SET_VARIABLE, "ntpdate=chantry.hawaii.net", 0, 0 },
733 { "U.S. Southwest", "shorty.chpc.utexas.edu (WWV clock)",
732 DMENU_SET_VARIABLE, "ntpdate=shorty.chpc.utexas.edu", 0, 0 },
734 DMENU_SET_VARIABLE, "ntpdate=shorty.chpc.utexas.edu", 0, 0 },
733 { NULL } },
734};
735
736DMenu MenuSyscons = {
737 DMENU_NORMAL_TYPE,
738 "System Console Configuration",
739 "The default system console driver for FreeBSD (syscons) has a\n\
740number of configuration options which may be set according to\n\
735 { NULL } },
736};
737
738DMenu MenuSyscons = {
739 DMENU_NORMAL_TYPE,
740 "System Console Configuration",
741 "The default system console driver for FreeBSD (syscons) has a\n\
742number of configuration options which may be set according to\n\
741your preference. When you are done setting configuration options,\n\
742select Cancel.",
743 "Configure your screen saver settings",
743your preference.\n\n\
744When you are done setting configuration options, select Cancel.",
745 "Configure your system console settings",
744 NULL,
745 { { "Keymap", "Choose an alternate keyboard map",
746 DMENU_SUBMENU, &MenuSysconsKeymap, 0, 0 },
747 { "Repeat", "Set the rate at which keys repeat",
748 DMENU_SUBMENU, &MenuSysconsKeyrate, 0, 0 },
749 { "Saver", "Configure the screen saver",
750 DMENU_SUBMENU, &MenuSysconsSaver, 0, 0 },
751 { NULL } },
752};
753
754DMenu MenuSysconsKeymap = {
755 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
756 "System Console Keymap",
757 "The default system console driver for FreeBSD (syscons) defaults\n\
758to a standard \"American\" keyboard map. Users in other countries\n\
759(or with different keyboard preferences) may wish to choose one of\n\
760the other keymaps below.",
761 "Choose a keyboard map",
762 NULL,
763 { { "Danish CP865", "Danish Code Page 865 keymap",
764 DMENU_SET_VARIABLE, "keymap=danish.cp865", 0, 0 },
765 { "Danish ISO", "Danish ISO keymap",
766 DMENU_SET_VARIABLE, "keymap=danish.iso", 0, 0 },
767 { "French ISO", "French ISO keymap",
768 DMENU_SET_VARIABLE, "keymap=fr.iso", 0, 0 },
769 { "German CP850", "German Code Page 850 keymap",
770 DMENU_SET_VARIABLE, "keymap=german.cp850", 0, 0 },
771 { "German ISO", "German ISO keymap",
772 DMENU_SET_VARIABLE, "keymap=german.iso", 0, 0 },
773 { "Russian CP866", "Russian Code Page 866 keymap",
774 DMENU_SET_VARIABLE, "keymap=ru.cp866", 0, 0 },
775 { "Russian KOI8", "Russian koi8 keymap",
776 DMENU_SET_VARIABLE, "keymap=ru.koi8-r", 0, 0 },
777 { "Russian s-KOI8", "Russian shifted koi8 keymap",
778 DMENU_SET_VARIABLE, "keymap=ru.koi8-r.shift", 0, 0 },
779 { "Swedish CP850", "Swedish Code Page 850 keymap",
780 DMENU_SET_VARIABLE, "keymap=swedish.cp850", 0, 0 },
781 { "Swedish ISO", "Swedish ISO keymap",
782 DMENU_SET_VARIABLE, "keymap=swedish.iso", 0, 0 },
783 { "U.K. CP850", "United Kingdom Code Page 850 keymap",
784 DMENU_SET_VARIABLE, "keymap=uk.cp850.iso", 0, 0 },
785 { "U.K. ISO", "United Kingdom ISO keymap",
786 DMENU_SET_VARIABLE, "keymap=uk.iso", 0, 0 },
787 { "U.S. ISO", "United States ISO keymap",
788 DMENU_SET_VARIABLE, "keymap=us.iso", 0, 0 },
789 { NULL } },
790};
791
792DMenu MenuSysconsKeyrate = {
793 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
794 "System Console Keyboard Repeat Rate",
795 "This menu allows you to set the speed at which keys repeat\n\
796when held down.",
797 "Choose a keyboard repeat rate",
798 NULL,
799 { { "Slow", "Slow keyboard repeat rate",
800 DMENU_SET_VARIABLE, "keyrate=slow", 0, 0 },
746 NULL,
747 { { "Keymap", "Choose an alternate keyboard map",
748 DMENU_SUBMENU, &MenuSysconsKeymap, 0, 0 },
749 { "Repeat", "Set the rate at which keys repeat",
750 DMENU_SUBMENU, &MenuSysconsKeyrate, 0, 0 },
751 { "Saver", "Configure the screen saver",
752 DMENU_SUBMENU, &MenuSysconsSaver, 0, 0 },
753 { NULL } },
754};
755
756DMenu MenuSysconsKeymap = {
757 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
758 "System Console Keymap",
759 "The default system console driver for FreeBSD (syscons) defaults\n\
760to a standard \"American\" keyboard map. Users in other countries\n\
761(or with different keyboard preferences) may wish to choose one of\n\
762the other keymaps below.",
763 "Choose a keyboard map",
764 NULL,
765 { { "Danish CP865", "Danish Code Page 865 keymap",
766 DMENU_SET_VARIABLE, "keymap=danish.cp865", 0, 0 },
767 { "Danish ISO", "Danish ISO keymap",
768 DMENU_SET_VARIABLE, "keymap=danish.iso", 0, 0 },
769 { "French ISO", "French ISO keymap",
770 DMENU_SET_VARIABLE, "keymap=fr.iso", 0, 0 },
771 { "German CP850", "German Code Page 850 keymap",
772 DMENU_SET_VARIABLE, "keymap=german.cp850", 0, 0 },
773 { "German ISO", "German ISO keymap",
774 DMENU_SET_VARIABLE, "keymap=german.iso", 0, 0 },
775 { "Russian CP866", "Russian Code Page 866 keymap",
776 DMENU_SET_VARIABLE, "keymap=ru.cp866", 0, 0 },
777 { "Russian KOI8", "Russian koi8 keymap",
778 DMENU_SET_VARIABLE, "keymap=ru.koi8-r", 0, 0 },
779 { "Russian s-KOI8", "Russian shifted koi8 keymap",
780 DMENU_SET_VARIABLE, "keymap=ru.koi8-r.shift", 0, 0 },
781 { "Swedish CP850", "Swedish Code Page 850 keymap",
782 DMENU_SET_VARIABLE, "keymap=swedish.cp850", 0, 0 },
783 { "Swedish ISO", "Swedish ISO keymap",
784 DMENU_SET_VARIABLE, "keymap=swedish.iso", 0, 0 },
785 { "U.K. CP850", "United Kingdom Code Page 850 keymap",
786 DMENU_SET_VARIABLE, "keymap=uk.cp850.iso", 0, 0 },
787 { "U.K. ISO", "United Kingdom ISO keymap",
788 DMENU_SET_VARIABLE, "keymap=uk.iso", 0, 0 },
789 { "U.S. ISO", "United States ISO keymap",
790 DMENU_SET_VARIABLE, "keymap=us.iso", 0, 0 },
791 { NULL } },
792};
793
794DMenu MenuSysconsKeyrate = {
795 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
796 "System Console Keyboard Repeat Rate",
797 "This menu allows you to set the speed at which keys repeat\n\
798when held down.",
799 "Choose a keyboard repeat rate",
800 NULL,
801 { { "Slow", "Slow keyboard repeat rate",
802 DMENU_SET_VARIABLE, "keyrate=slow", 0, 0 },
801 { "Normal", "\"normal\" keyboard repeat rate",
803 { "Normal", "\"Normal\" keyboard repeat rate",
802 DMENU_SET_VARIABLE, "keyrate=normal", 0, 0 },
804 DMENU_SET_VARIABLE, "keyrate=normal", 0, 0 },
803 { "Fast", "fast keyboard repeat rate",
805 { "Fast", "Fast keyboard repeat rate",
804 DMENU_SET_VARIABLE, "keyrate=fast", 0, 0 },
805 { "Default", "Use default keyboard repeat rate",
806 DMENU_SET_VARIABLE, "keyrate=NO", 0, 0 },
807 { NULL } },
808};
809
810DMenu MenuSysconsSaver = {
811 DMENU_NORMAL_TYPE,
812 "System Console Screen Saver",
813 "By default, the console driver will not attempt to do anything\n\
814special with your screen when it's idle. If you expect to leave your\n\
815monitor switched on and idle for long periods of time then you should\n\
816probably enable one of these screen savers to prevent phosphor burn-in.",
817 "Choose a nifty-looking screen saver",
818 NULL,
819 { { "blank", "Simply blank the screen",
820 DMENU_SET_VARIABLE, "saver=star", 0, 0 },
806 DMENU_SET_VARIABLE, "keyrate=fast", 0, 0 },
807 { "Default", "Use default keyboard repeat rate",
808 DMENU_SET_VARIABLE, "keyrate=NO", 0, 0 },
809 { NULL } },
810};
811
812DMenu MenuSysconsSaver = {
813 DMENU_NORMAL_TYPE,
814 "System Console Screen Saver",
815 "By default, the console driver will not attempt to do anything\n\
816special with your screen when it's idle. If you expect to leave your\n\
817monitor switched on and idle for long periods of time then you should\n\
818probably enable one of these screen savers to prevent phosphor burn-in.",
819 "Choose a nifty-looking screen saver",
820 NULL,
821 { { "blank", "Simply blank the screen",
822 DMENU_SET_VARIABLE, "saver=star", 0, 0 },
821 { "Green", "\"green\" power saving mode (if supported by monitor)",
823 { "Green", "\"Green\" power saving mode (if supported by monitor)",
822 DMENU_SET_VARIABLE, "saver=snake", 0, 0 },
823 { "Snake", "Draw a FreeBSD \"snake\" on your screen",
824 DMENU_SET_VARIABLE, "saver=snake", 0, 0 },
824 DMENU_SET_VARIABLE, "saver=snake", 0, 0 },
825 { "Snake", "Draw a FreeBSD \"snake\" on your screen",
826 DMENU_SET_VARIABLE, "saver=snake", 0, 0 },
825 { "Star", "\"twinkling stars\" effect",
827 { "Star", "A \"twinkling stars\" effect",
826 DMENU_SET_VARIABLE, "saver=star", 0, 0 },
827 { "Timeout", "Set the screen saver timeout interval",
828 DMENU_CALL, configSaverTimeout, 0, 0 },
829 { NULL } },
830};
828 DMENU_SET_VARIABLE, "saver=star", 0, 0 },
829 { "Timeout", "Set the screen saver timeout interval",
830 DMENU_CALL, configSaverTimeout, 0, 0 },
831 { NULL } },
832};