1 |
1629 |
jcastillo |
#!/usr/bin/wish -f
|
2 |
|
|
#
|
3 |
|
|
# This is a handy replacement for ".widget cget" that requires neither tk4
|
4 |
|
|
# nor additional source code uglification.
|
5 |
|
|
#
|
6 |
|
|
proc cget { w option } {
|
7 |
|
|
return "[lindex [$w configure $option] 4]"
|
8 |
|
|
}
|
9 |
|
|
|
10 |
|
|
#
|
11 |
|
|
# Function to compensate for broken config.in scripts like the sound driver,
|
12 |
|
|
# which make dependencies on variables that are never even conditionally
|
13 |
|
|
# defined.
|
14 |
|
|
#
|
15 |
|
|
proc vfix { var } {
|
16 |
|
|
global $var
|
17 |
|
|
if [ catch {eval concat $$var} ] {
|
18 |
|
|
puts stdout "WARNING - broken Config.in! $var was not declared!"
|
19 |
|
|
set $var 0
|
20 |
|
|
}
|
21 |
|
|
}
|
22 |
|
|
|
23 |
|
|
#
|
24 |
|
|
# Create a "reference" object to steal colors from.
|
25 |
|
|
#
|
26 |
|
|
button .ref
|
27 |
|
|
#
|
28 |
|
|
# On monochrome displays, -disabledforeground is blank by default; that's
|
29 |
|
|
# bad. Fill it with -foreground instead.
|
30 |
|
|
#
|
31 |
|
|
if { [cget .ref -disabledforeground] == "" } {
|
32 |
|
|
.ref configure -disabledforeground [cget .ref -foreground]
|
33 |
|
|
}
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
#
|
37 |
|
|
# Define some macros we will need to parse the config.in file.
|
38 |
|
|
#
|
39 |
|
|
proc mainmenu_name { text } {
|
40 |
|
|
message .header.message -width 400 -relief raised -text "$text"
|
41 |
|
|
pack .header.label .header.message -side left -padx 15
|
42 |
|
|
wm title . "$text"
|
43 |
|
|
}
|
44 |
|
|
|
45 |
|
|
proc menu_option { w menu_num text } {
|
46 |
|
|
button .f0.x$menu_num -text "$text" -width 50 -command "$w .$w \"$text\""
|
47 |
|
|
pack .f0.x$menu_num -pady 1 -expand on
|
48 |
|
|
}
|
49 |
|
|
|
50 |
|
|
#
|
51 |
|
|
# Not used at the moment, but this runs a command in a subprocess and
|
52 |
|
|
# displays the result in a window with a scrollbar.
|
53 |
|
|
#
|
54 |
|
|
# For now, we just do external "make" commands to stdout with do_make, so
|
55 |
|
|
# this function is never called.
|
56 |
|
|
#
|
57 |
|
|
proc do_cmd { w command } {
|
58 |
|
|
catch {destroy $w}
|
59 |
|
|
toplevel $w -class Dialog
|
60 |
|
|
frame $w.tb
|
61 |
|
|
text $w.tb.text -relief raised -bd 2 -yscrollcommand "$w.tb.scroll set"
|
62 |
|
|
scrollbar $w.tb.scroll -command "$w.tb.text yview"
|
63 |
|
|
pack $w.tb.scroll -side right -fill y
|
64 |
|
|
pack $w.tb.text -side left
|
65 |
|
|
|
66 |
|
|
set oldFocus [focus]
|
67 |
|
|
frame $w.back
|
68 |
|
|
button $w.back.ok -text "OK" -width 20 \
|
69 |
|
|
-command "destroy $w; focus $oldFocus" -state disabled
|
70 |
|
|
button $w.back.ccl -text "Cancel" -width 20 \
|
71 |
|
|
-command "destroy $w; focus $oldFocus"
|
72 |
|
|
pack $w.tb -side top
|
73 |
|
|
pack $w.back.ok $w.back.ccl -side left
|
74 |
|
|
pack $w.back -side bottom -pady 10
|
75 |
|
|
|
76 |
|
|
focus $w
|
77 |
|
|
wm geometry $w +30+35
|
78 |
|
|
|
79 |
|
|
$w.tb.text delete 1.0 end
|
80 |
|
|
set f [open |$command]
|
81 |
|
|
while {![eof $f]} {
|
82 |
|
|
$w.tb.text insert end [read $f 256]
|
83 |
|
|
}
|
84 |
|
|
close $f
|
85 |
|
|
$w.back.ok configure -state normal
|
86 |
|
|
}
|
87 |
|
|
|
88 |
|
|
proc load_configfile { w title func } {
|
89 |
|
|
catch {destroy $w}
|
90 |
|
|
toplevel $w -class Dialog
|
91 |
|
|
global loadfile
|
92 |
|
|
frame $w.x
|
93 |
|
|
label $w.bm -bitmap questhead
|
94 |
|
|
pack $w.bm -pady 10 -side top -padx 10
|
95 |
|
|
label $w.x.l -text "Enter filename:" -relief raised
|
96 |
|
|
entry $w.x.x -width 35 -relief sunken -borderwidth 2 \
|
97 |
|
|
-textvariable loadfile
|
98 |
|
|
pack $w.x.l $w.x.x -anchor w -side left
|
99 |
|
|
pack $w.x -side top -pady 10
|
100 |
|
|
wm title $w "$title"
|
101 |
|
|
|
102 |
|
|
set oldFocus [focus]
|
103 |
|
|
frame $w.f
|
104 |
|
|
button $w.f.back -text "OK" -width 20 \
|
105 |
|
|
-command "destroy $w; focus $oldFocus;$func .fileio"
|
106 |
|
|
button $w.f.canc -text "Cancel" \
|
107 |
|
|
-width 20 -command "destroy $w; focus $oldFocus"
|
108 |
|
|
pack $w.f.back $w.f.canc -side left -pady 10 -padx 45
|
109 |
|
|
pack $w.f -pady 10 -side bottom -padx 10 -anchor w
|
110 |
|
|
focus $w
|
111 |
|
|
global winx; global winy
|
112 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
113 |
|
|
wm geometry $w +$winx+$winy
|
114 |
|
|
}
|
115 |
|
|
|
116 |
|
|
proc maybe_exit { w } {
|
117 |
|
|
catch {destroy $w}
|
118 |
|
|
toplevel $w -class Dialog
|
119 |
|
|
label $w.bm -bitmap questhead
|
120 |
|
|
pack $w.bm -pady 10 -side top -padx 10
|
121 |
|
|
message $w.m -width 400 -aspect 300 \
|
122 |
|
|
-text "Changes will be lost. Are you sure?" -relief flat
|
123 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
124 |
|
|
wm title $w "Are you sure?"
|
125 |
|
|
|
126 |
|
|
set oldFocus [focus]
|
127 |
|
|
frame $w.f
|
128 |
|
|
button $w.f.back -text "OK" -width 20 \
|
129 |
|
|
-command "exit"
|
130 |
|
|
button $w.f.canc -text "Cancel" \
|
131 |
|
|
-width 20 -command "destroy $w; focus $oldFocus"
|
132 |
|
|
pack $w.f.back $w.f.canc -side left -pady 10 -padx 45
|
133 |
|
|
pack $w.f -pady 10 -side bottom -padx 10 -anchor w
|
134 |
|
|
focus $w
|
135 |
|
|
global winx; global winy
|
136 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
137 |
|
|
wm geometry $w +$winx+$winy
|
138 |
|
|
}
|
139 |
|
|
|
140 |
|
|
proc read_config_file { w } {
|
141 |
|
|
global loadfile
|
142 |
|
|
if { [string length $loadfile] != 0 && [file readable $loadfile] == 1 } then {
|
143 |
|
|
read_config $loadfile
|
144 |
|
|
} else {
|
145 |
|
|
catch {destroy $w}
|
146 |
|
|
toplevel $w -class Dialog
|
147 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
148 |
|
|
"Unable to read file $loadfile" \
|
149 |
|
|
-relief raised
|
150 |
|
|
label $w.bm -bitmap error
|
151 |
|
|
pack $w.bm $w.m -pady 10 -side top -padx 10
|
152 |
|
|
wm title $w "Oops"
|
153 |
|
|
|
154 |
|
|
set oldFocus [focus]
|
155 |
|
|
frame $w.f
|
156 |
|
|
button $w.f.back -text "Bummer" \
|
157 |
|
|
-width 10 -command "destroy $w; focus $oldFocus"
|
158 |
|
|
pack $w.f.back -side bottom -pady 10 -anchor s
|
159 |
|
|
pack $w.f -pady 10 -side top -padx 10 -anchor s
|
160 |
|
|
focus $w
|
161 |
|
|
global winx; global winy
|
162 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
163 |
|
|
wm geometry $w +$winx+$winy
|
164 |
|
|
}
|
165 |
|
|
}
|
166 |
|
|
|
167 |
|
|
proc write_config_file { w } {
|
168 |
|
|
global loadfile
|
169 |
|
|
if { [string length $loadfile] != 0
|
170 |
|
|
&& ([file writable $loadfile] == 1 || ([file exists $loadfile] == 0 && [file writable [file dirname $loadfile]] == 1)) } then {
|
171 |
|
|
writeconfig $loadfile /dev/null
|
172 |
|
|
} else {
|
173 |
|
|
catch {destroy $w}
|
174 |
|
|
toplevel $w -class Dialog
|
175 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
176 |
|
|
"Unable to write file $loadfile" \
|
177 |
|
|
-relief raised
|
178 |
|
|
label $w.bm -bitmap error
|
179 |
|
|
pack $w.bm $w.m -pady 10 -side top -padx 10
|
180 |
|
|
wm title $w "Oops"
|
181 |
|
|
|
182 |
|
|
set oldFocus [focus]
|
183 |
|
|
frame $w.f
|
184 |
|
|
button $w.f.back -text "OK" \
|
185 |
|
|
-width 10 -command "destroy $w; focus $oldFocus"
|
186 |
|
|
pack $w.f.back -side bottom -pady 10 -anchor s
|
187 |
|
|
pack $w.f -pady 10 -side top -padx 10 -anchor s
|
188 |
|
|
focus $w
|
189 |
|
|
global winx; global winy
|
190 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
191 |
|
|
wm geometry $w +$winx+$winy
|
192 |
|
|
}
|
193 |
|
|
}
|
194 |
|
|
|
195 |
|
|
proc read_config { filename } {
|
196 |
|
|
set file1 [open $filename r]
|
197 |
|
|
clear_choices
|
198 |
|
|
while { [gets $file1 line] >= 0} {
|
199 |
|
|
if [regexp {([0-9A-Za-z_]+)=([ynm])} $line foo var value] {
|
200 |
|
|
if { $value == "y" } then { set cmd "global $var; set $var 1" }
|
201 |
|
|
if { $value == "n" } then { set cmd "global $var; set $var 0" }
|
202 |
|
|
if { $value == "m" } then { set cmd "global $var; set $var 2" }
|
203 |
|
|
eval $cmd
|
204 |
|
|
}
|
205 |
|
|
if [regexp {# ([0-9A-Za-z_]+) is not set} $line foo var] {
|
206 |
|
|
set cmd "global $var; set $var 0"
|
207 |
|
|
eval $cmd
|
208 |
|
|
}
|
209 |
|
|
if [regexp {([0-9A-Za-z_]+)=([0-9A-Fa-f]+)} $line foo var value] {
|
210 |
|
|
set cmd "global $var; set $var $value"
|
211 |
|
|
eval $cmd
|
212 |
|
|
}
|
213 |
|
|
}
|
214 |
|
|
close $file1
|
215 |
|
|
update_choices
|
216 |
|
|
update_mainmenu .rdupd
|
217 |
|
|
}
|
218 |
|
|
proc write_comment { file1 file2 text } {
|
219 |
|
|
puts $file1 ""
|
220 |
|
|
puts $file1 "#"
|
221 |
|
|
puts $file1 "# $text"
|
222 |
|
|
puts $file1 "#"
|
223 |
|
|
puts $file2 "/*"
|
224 |
|
|
puts $file2 " * $text"
|
225 |
|
|
puts $file2 " */"
|
226 |
|
|
}
|
227 |
|
|
|
228 |
|
|
proc write_tristate { file1 file2 varname variable dep } {
|
229 |
|
|
if { $variable == 0 } \
|
230 |
|
|
then { puts $file1 "# $varname is not set"; \
|
231 |
|
|
puts $file2 "#undef $varname"} \
|
232 |
|
|
elseif { $variable == 2 || ($dep == 2 && $variable == 1) } \
|
233 |
|
|
then { puts $file1 "$varname=m"; \
|
234 |
|
|
puts $file2 "#undef $varname"; \
|
235 |
|
|
puts $file2 "#define ${varname}_MODULE 1" } \
|
236 |
|
|
elseif { $variable == 1 && $dep != 2 } \
|
237 |
|
|
then { puts $file1 "$varname=y"; \
|
238 |
|
|
puts $file2 "#define $varname 1" } \
|
239 |
|
|
else { \
|
240 |
|
|
error "Attempting to write value for variable that is not configured ($varname)." \
|
241 |
|
|
}
|
242 |
|
|
}
|
243 |
|
|
|
244 |
|
|
proc write_int { file1 file2 varname variable dep } {
|
245 |
|
|
if { $dep == 0 } \
|
246 |
|
|
then { puts $file1 "# $varname is not set"; \
|
247 |
|
|
puts $file2 "#undef $varname"} \
|
248 |
|
|
else {
|
249 |
|
|
puts $file1 "$varname=$variable"; \
|
250 |
|
|
puts $file2 "#define $varname $variable"; \
|
251 |
|
|
}
|
252 |
|
|
}
|
253 |
|
|
|
254 |
|
|
proc write_hex { file1 file2 varname variable dep } {
|
255 |
|
|
if { $dep == 0 } \
|
256 |
|
|
then { puts $file1 "# $varname is not set"; \
|
257 |
|
|
puts $file2 "#undef $varname"} \
|
258 |
|
|
else {
|
259 |
|
|
puts $file1 "$varname=$variable"; \
|
260 |
|
|
puts $file2 "#define $varname 0x$variable"; \
|
261 |
|
|
}
|
262 |
|
|
}
|
263 |
|
|
|
264 |
|
|
proc option_name {w mnum line text helpidx} {
|
265 |
|
|
button $w.x$line.l -text "$text" -relief groove -anchor w
|
266 |
|
|
$w.x$line.l configure -activefore [cget $w.x$line.l -fg] \
|
267 |
|
|
-activeback [cget $w.x$line.l -bg]
|
268 |
|
|
button $w.x$line.help -text "Help" -relief raised \
|
269 |
|
|
-command "dohelp .dohelp $helpidx"
|
270 |
|
|
pack $w.x$line.help -side right -fill y
|
271 |
|
|
pack $w.x$line.l -side right -fill both -expand on
|
272 |
|
|
}
|
273 |
|
|
|
274 |
|
|
proc toggle_switch {w mnum line text variable} {
|
275 |
|
|
frame $w.x$line -relief sunken
|
276 |
|
|
radiobutton $w.x$line.y -text "y" -variable $variable -value 1 \
|
277 |
|
|
-relief groove -width 2 -command "update_menu$mnum .menu$mnum"
|
278 |
|
|
radiobutton $w.x$line.m -text "m" -variable $variable -value 2 \
|
279 |
|
|
-relief groove -width 2 -command "update_menu$mnum .menu$mnum"
|
280 |
|
|
radiobutton $w.x$line.n -text "n" -variable $variable -value 0 \
|
281 |
|
|
-relief groove -width 2 -command "update_menu$mnum .menu$mnum"
|
282 |
|
|
|
283 |
|
|
option_name $w $mnum $line $text $variable
|
284 |
|
|
|
285 |
|
|
pack $w.x$line.n $w.x$line.m $w.x$line.y -side right -fill y
|
286 |
|
|
}
|
287 |
|
|
|
288 |
|
|
proc bool {w mnum line text variable} {
|
289 |
|
|
toggle_switch $w $mnum $line $text $variable
|
290 |
|
|
$w.x$line.m configure -state disabled
|
291 |
|
|
pack $w.x$line -anchor w -fill both -expand on
|
292 |
|
|
}
|
293 |
|
|
|
294 |
|
|
proc tristate {w mnum line text variable } {
|
295 |
|
|
toggle_switch $w $mnum $line $text $variable
|
296 |
|
|
pack $w.x$line -anchor w -fill both -expand on
|
297 |
|
|
}
|
298 |
|
|
|
299 |
|
|
proc dep_tristate {w mnum line text variable depend } {
|
300 |
|
|
tristate $w $mnum $line $text $variable
|
301 |
|
|
}
|
302 |
|
|
|
303 |
|
|
proc int { w mnum line text variable } {
|
304 |
|
|
frame $w.x$line
|
305 |
|
|
entry $w.x$line.x -width 18 -relief sunken -borderwidth 2 \
|
306 |
|
|
-textvariable $variable
|
307 |
|
|
option_name $w $mnum $line $text $variable
|
308 |
|
|
pack $w.x$line.x -anchor w -side right -fill y
|
309 |
|
|
pack $w.x$line -anchor w -fill both -expand on
|
310 |
|
|
}
|
311 |
|
|
|
312 |
|
|
proc hex { w mnum line text variable } {
|
313 |
|
|
int $w $mnum $line $text $variable
|
314 |
|
|
}
|
315 |
|
|
|
316 |
|
|
proc minimenu { w mnum line text variable helpidx } {
|
317 |
|
|
frame $w.x$line
|
318 |
|
|
menubutton $w.x$line.x -textvariable $variable -menu \
|
319 |
|
|
$w.x$line.x.menu -relief raised \
|
320 |
|
|
-width 15 -anchor w
|
321 |
|
|
option_name $w $mnum $line $text $helpidx
|
322 |
|
|
pack $w.x$line.x -anchor w -side right -fill y
|
323 |
|
|
pack $w.x$line -anchor w -fill both -expand on
|
324 |
|
|
}
|
325 |
|
|
|
326 |
|
|
proc comment {w line text } {
|
327 |
|
|
#nothing done for comments now.
|
328 |
|
|
}
|
329 |
|
|
|
330 |
|
|
proc do_make { command } {
|
331 |
|
|
exec sh -c $command <@stdin >@stdout 2>@stderr
|
332 |
|
|
# do_cmd .make_window "sh -c $command"
|
333 |
|
|
}
|
334 |
|
|
|
335 |
|
|
proc dohelp {w var } {
|
336 |
|
|
catch {destroy $w}
|
337 |
|
|
toplevel $w -class Dialog
|
338 |
|
|
|
339 |
|
|
set filefound 0
|
340 |
|
|
set found 0
|
341 |
|
|
set lineno 0
|
342 |
|
|
|
343 |
|
|
if { [file readable Documentation/Configure.help] == 1} then {
|
344 |
|
|
set filefound 1
|
345 |
|
|
set message [exec sed -n "
|
346 |
|
|
/^$var\[ \]*\$/,\${
|
347 |
|
|
/^$var\[ \]*\$/c\\
|
348 |
|
|
${var}:\\
|
349 |
|
|
|
350 |
|
|
/^#.*/d
|
351 |
|
|
/^\[ \]*\$/bL
|
352 |
|
|
H
|
353 |
|
|
}
|
354 |
|
|
d
|
355 |
|
|
:L x
|
356 |
|
|
s/\\n //
|
357 |
|
|
s/\\n / /g
|
358 |
|
|
p
|
359 |
|
|
q
|
360 |
|
|
" Documentation/Configure.help]
|
361 |
|
|
set found [expr [string length "$message"] > 0]
|
362 |
|
|
}
|
363 |
|
|
|
364 |
|
|
frame $w.f1
|
365 |
|
|
|
366 |
|
|
if { $found == 0 } then {
|
367 |
|
|
if { $filefound == 0 } then {
|
368 |
|
|
message $w.f1.m -width 750 -aspect 300 -relief flat -text \
|
369 |
|
|
"No help available - unable to open file Documentation/Configure.help. This file should have come with your kernel."
|
370 |
|
|
} else {
|
371 |
|
|
message $w.f1.m -width 400 -aspect 300 -relief flat -text \
|
372 |
|
|
"No help available for $var"
|
373 |
|
|
}
|
374 |
|
|
label $w.f1.bm -bitmap error
|
375 |
|
|
wm title $w "RTFM"
|
376 |
|
|
} else {
|
377 |
|
|
message $w.f1.m -width 400 -aspect 300 -text $message \
|
378 |
|
|
-relief flat
|
379 |
|
|
label $w.f1.bm -bitmap info
|
380 |
|
|
wm title $w "Configuration help"
|
381 |
|
|
}
|
382 |
|
|
pack $w.f1.bm $w.f1.m -side left -padx 10
|
383 |
|
|
pack $w.f1 -side top
|
384 |
|
|
set oldFocus [focus]
|
385 |
|
|
|
386 |
|
|
# Do the OK button
|
387 |
|
|
#
|
388 |
|
|
frame $w.f2
|
389 |
|
|
button $w.f2.ok -text "OK" \
|
390 |
|
|
-width 10 -command "destroy $w; focus $oldFocus"
|
391 |
|
|
pack $w.f2.ok -side bottom -pady 10 -anchor s
|
392 |
|
|
pack $w.f2 -side bottom -padx 10 -anchor s
|
393 |
|
|
|
394 |
|
|
# Finish off the window
|
395 |
|
|
#
|
396 |
|
|
focus $w
|
397 |
|
|
global winx; global winy
|
398 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
399 |
|
|
wm geometry $w +$winx+$winy
|
400 |
|
|
}
|
401 |
|
|
|
402 |
|
|
proc wrapup {w } {
|
403 |
|
|
catch {destroy $w}
|
404 |
|
|
toplevel $w -class Dialog
|
405 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
406 |
|
|
"The linux kernel is now hopefully configured for your setup. Check the top-level Makefile for additional configuration, and do a 'make dep ; make clean' if you want to be sure all the files are correctly re-made." -relief raised
|
407 |
|
|
label $w.bm -bitmap info
|
408 |
|
|
pack $w.bm $w.m -pady 10 -side top -padx 10
|
409 |
|
|
wm title $w "Kernel build instructions"
|
410 |
|
|
|
411 |
|
|
set oldFocus [focus]
|
412 |
|
|
frame $w.f
|
413 |
|
|
button $w.f.back -text "OK" \
|
414 |
|
|
-width 10 -command "exit"
|
415 |
|
|
pack $w.f.back -side bottom -pady 10 -anchor s
|
416 |
|
|
pack $w.f -pady 10 -side top -padx 10 -anchor s
|
417 |
|
|
focus $w
|
418 |
|
|
global winx; global winy
|
419 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
420 |
|
|
wm geometry $w +$winx+$winy
|
421 |
|
|
|
422 |
|
|
}
|
423 |
|
|
|
424 |
|
|
proc check_sound_config { num } {
|
425 |
|
|
#nothing for now.
|
426 |
|
|
}
|
427 |
|
|
|
428 |
|
|
proc do_sound {w mnum line} {
|
429 |
|
|
message $w.x$line -width 400 -aspect 300 -text "Note: The sound drivers cannot as of yet be configured via the X-based interface" -relief raised
|
430 |
|
|
pack $w.x$line -side top -pady 10
|
431 |
|
|
}
|
432 |
|
|
|
433 |
|
|
#
|
434 |
|
|
# Next set up the particulars for the top level menu, and define a few
|
435 |
|
|
# buttons which we will stick down at the bottom.
|
436 |
|
|
#
|
437 |
|
|
frame .header
|
438 |
|
|
label .header.label
|
439 |
|
|
|
440 |
|
|
frame .f0
|
441 |
|
|
|
442 |
|
|
mainmenu_name "uClinux/OR1K (w/o MMU) Kernel Configuration"
|
443 |
|
|
menu_option menu1 1 "Code maturity level options"
|
444 |
|
|
proc menu1 {w title} {
|
445 |
|
|
catch {destroy $w}
|
446 |
|
|
toplevel $w -class Dialog
|
447 |
|
|
wm withdraw $w
|
448 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
449 |
|
|
"Code maturity level options" -relief raised
|
450 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
451 |
|
|
wm title $w "Code maturity level options"
|
452 |
|
|
|
453 |
|
|
set oldFocus [focus]
|
454 |
|
|
frame $w.f
|
455 |
|
|
button $w.f.back -text "Main Menu" \
|
456 |
|
|
-width 15 -command "destroy $w; focus $oldFocus; update_mainmenu $w"
|
457 |
|
|
button $w.f.next -text "Next" \
|
458 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu2 .menu2 \"$title\""
|
459 |
|
|
button $w.f.prev -text "Prev" \
|
460 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu0 .menu0 \"$title\""
|
461 |
|
|
$w.f.prev configure -state disabled
|
462 |
|
|
pack $w.f.back $w.f.next $w.f.prev -side left -expand on
|
463 |
|
|
pack $w.f -pady 10 -side bottom -anchor w -fill x
|
464 |
|
|
frame $w.topline -relief ridge -borderwidth 2 -height 2
|
465 |
|
|
pack $w.topline -side top -fill x
|
466 |
|
|
|
467 |
|
|
frame $w.botline -relief ridge -borderwidth 2 -height 2
|
468 |
|
|
pack $w.botline -side bottom -fill x
|
469 |
|
|
|
470 |
|
|
frame $w.config
|
471 |
|
|
pack $w.config -fill y -expand on
|
472 |
|
|
|
473 |
|
|
scrollbar $w.config.vscroll -command "$w.config.canvas yview"
|
474 |
|
|
pack $w.config.vscroll -side right -fill y
|
475 |
|
|
|
476 |
|
|
canvas $w.config.canvas -height 1\
|
477 |
|
|
-relief flat -borderwidth 0 -yscrollcommand "$w.config.vscroll set" \
|
478 |
|
|
-width [expr [winfo screenwidth .] * 1 / 2]
|
479 |
|
|
frame $w.config.f
|
480 |
|
|
pack $w.config.canvas -side right -fill y
|
481 |
|
|
|
482 |
|
|
|
483 |
|
|
bool $w.config.f 1 0 "Prompt for development and/or incomplete code/drivers" CONFIG_EXPERIMENTAL
|
484 |
|
|
|
485 |
|
|
|
486 |
|
|
|
487 |
|
|
focus $w
|
488 |
|
|
update_menu1 $w.config.f
|
489 |
|
|
global winx; global winy
|
490 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
491 |
|
|
wm geometry $w +$winx+$winy
|
492 |
|
|
update idletasks
|
493 |
|
|
$w.config.canvas create window 0 0 -anchor nw -window $w.config.f
|
494 |
|
|
|
495 |
|
|
$w.config.canvas configure \
|
496 |
|
|
-width [expr [winfo reqwidth $w.config.f] + 1]\
|
497 |
|
|
-scrollregion "-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \
|
498 |
|
|
[expr [winfo reqheight $w.config.f] + 1]"
|
499 |
|
|
|
500 |
|
|
set winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]
|
501 |
|
|
set scry [expr [winfo screenh $w] / 2]
|
502 |
|
|
set maxy [expr [winfo screenh $w] * 3 / 4]
|
503 |
|
|
set canvtotal [expr [winfo reqh $w.config.f] + 2]
|
504 |
|
|
if [expr $winy + $canvtotal < $maxy] {
|
505 |
|
|
$w.config.canvas configure -height $canvtotal
|
506 |
|
|
} else {
|
507 |
|
|
$w.config.canvas configure -height [expr $scry - $winy]
|
508 |
|
|
}
|
509 |
|
|
update idletasks
|
510 |
|
|
wm maxsize $w [winfo width $w] [winfo screenheight $w]
|
511 |
|
|
wm minsize $w [winfo width $w] 100
|
512 |
|
|
|
513 |
|
|
wm deiconify $w
|
514 |
|
|
}
|
515 |
|
|
|
516 |
|
|
|
517 |
|
|
proc update_menu1 {w} {
|
518 |
|
|
update_define
|
519 |
|
|
}
|
520 |
|
|
|
521 |
|
|
|
522 |
|
|
menu_option menu2 2 "Platform dependant setup"
|
523 |
|
|
proc menu2 {w title} {
|
524 |
|
|
catch {destroy $w}
|
525 |
|
|
toplevel $w -class Dialog
|
526 |
|
|
wm withdraw $w
|
527 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
528 |
|
|
"Platform dependant setup" -relief raised
|
529 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
530 |
|
|
wm title $w "Platform dependant setup"
|
531 |
|
|
|
532 |
|
|
set oldFocus [focus]
|
533 |
|
|
frame $w.f
|
534 |
|
|
button $w.f.back -text "Main Menu" \
|
535 |
|
|
-width 15 -command "destroy $w; focus $oldFocus; update_mainmenu $w"
|
536 |
|
|
button $w.f.next -text "Next" \
|
537 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu3 .menu3 \"$title\""
|
538 |
|
|
button $w.f.prev -text "Prev" \
|
539 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu1 .menu1 \"$title\""
|
540 |
|
|
pack $w.f.back $w.f.next $w.f.prev -side left -expand on
|
541 |
|
|
pack $w.f -pady 10 -side bottom -anchor w -fill x
|
542 |
|
|
frame $w.topline -relief ridge -borderwidth 2 -height 2
|
543 |
|
|
pack $w.topline -side top -fill x
|
544 |
|
|
|
545 |
|
|
frame $w.botline -relief ridge -borderwidth 2 -height 2
|
546 |
|
|
pack $w.botline -side bottom -fill x
|
547 |
|
|
|
548 |
|
|
frame $w.config
|
549 |
|
|
pack $w.config -fill y -expand on
|
550 |
|
|
|
551 |
|
|
scrollbar $w.config.vscroll -command "$w.config.canvas yview"
|
552 |
|
|
pack $w.config.vscroll -side right -fill y
|
553 |
|
|
|
554 |
|
|
canvas $w.config.canvas -height 1\
|
555 |
|
|
-relief flat -borderwidth 0 -yscrollcommand "$w.config.vscroll set" \
|
556 |
|
|
-width [expr [winfo screenwidth .] * 1 / 2]
|
557 |
|
|
frame $w.config.f
|
558 |
|
|
pack $w.config.canvas -side right -fill y
|
559 |
|
|
|
560 |
|
|
|
561 |
|
|
global tmpvar_0
|
562 |
|
|
minimenu $w.config.f 2 0 "CPU" tmpvar_0 CONFIG_OR32
|
563 |
|
|
menu $w.config.f.x0.x.menu
|
564 |
|
|
$w.config.f.x0.x.menu add radiobutton -label "OR32" -variable tmpvar_0 -value "OR32" -command "update_menu2 .menu2.config.f"
|
565 |
|
|
bool $w.config.f 2 1 "General OR32 board support" CONFIG_GEN
|
566 |
|
|
global tmpvar_1
|
567 |
|
|
minimenu $w.config.f 2 2 "Kernel executes from" tmpvar_1 CONFIG_RAMKERNEL
|
568 |
|
|
menu $w.config.f.x2.x.menu
|
569 |
|
|
$w.config.f.x2.x.menu add radiobutton -label "RAM" -variable tmpvar_1 -value "RAM" -command "update_menu2 .menu2.config.f"
|
570 |
|
|
$w.config.f.x2.x.menu add radiobutton -label "ROM" -variable tmpvar_1 -value "ROM" -command "update_menu2 .menu2.config.f"
|
571 |
|
|
|
572 |
|
|
|
573 |
|
|
|
574 |
|
|
focus $w
|
575 |
|
|
update_menu2 $w.config.f
|
576 |
|
|
global winx; global winy
|
577 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
578 |
|
|
wm geometry $w +$winx+$winy
|
579 |
|
|
update idletasks
|
580 |
|
|
$w.config.canvas create window 0 0 -anchor nw -window $w.config.f
|
581 |
|
|
|
582 |
|
|
$w.config.canvas configure \
|
583 |
|
|
-width [expr [winfo reqwidth $w.config.f] + 1]\
|
584 |
|
|
-scrollregion "-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \
|
585 |
|
|
[expr [winfo reqheight $w.config.f] + 1]"
|
586 |
|
|
|
587 |
|
|
set winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]
|
588 |
|
|
set scry [expr [winfo screenh $w] / 2]
|
589 |
|
|
set maxy [expr [winfo screenh $w] * 3 / 4]
|
590 |
|
|
set canvtotal [expr [winfo reqh $w.config.f] + 2]
|
591 |
|
|
if [expr $winy + $canvtotal < $maxy] {
|
592 |
|
|
$w.config.canvas configure -height $canvtotal
|
593 |
|
|
} else {
|
594 |
|
|
$w.config.canvas configure -height [expr $scry - $winy]
|
595 |
|
|
}
|
596 |
|
|
update idletasks
|
597 |
|
|
wm maxsize $w [winfo width $w] [winfo screenheight $w]
|
598 |
|
|
wm minsize $w [winfo width $w] 100
|
599 |
|
|
|
600 |
|
|
wm deiconify $w
|
601 |
|
|
}
|
602 |
|
|
|
603 |
|
|
|
604 |
|
|
proc update_menu2 {w} {
|
605 |
|
|
update_define
|
606 |
|
|
global tmpvar_0; vfix tmpvar_0
|
607 |
|
|
global CONFIG_GEN; vfix CONFIG_GEN
|
608 |
|
|
if {($tmpvar_0 == "OR32")} then { .menu2.config.f.x1.y configure -state normal;.menu2.config.f.x1.n configure -state normal;.menu2.config.f.x1.l configure -state normal;set CONFIG_GEN [expr $CONFIG_GEN&15];} else { .menu2.config.f.x1.y configure -state disabled;.menu2.config.f.x1.n configure -state disabled;.menu2.config.f.x1.l configure -state disabled;set CONFIG_GEN [expr $CONFIG_GEN|16];}
|
609 |
|
|
}
|
610 |
|
|
|
611 |
|
|
|
612 |
|
|
menu_option menu3 3 "General setup"
|
613 |
|
|
proc menu3 {w title} {
|
614 |
|
|
catch {destroy $w}
|
615 |
|
|
toplevel $w -class Dialog
|
616 |
|
|
wm withdraw $w
|
617 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
618 |
|
|
"General setup" -relief raised
|
619 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
620 |
|
|
wm title $w "General setup"
|
621 |
|
|
|
622 |
|
|
set oldFocus [focus]
|
623 |
|
|
frame $w.f
|
624 |
|
|
button $w.f.back -text "Main Menu" \
|
625 |
|
|
-width 15 -command "destroy $w; focus $oldFocus; update_mainmenu $w"
|
626 |
|
|
button $w.f.next -text "Next" \
|
627 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu4 .menu4 \"$title\""
|
628 |
|
|
button $w.f.prev -text "Prev" \
|
629 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu2 .menu2 \"$title\""
|
630 |
|
|
pack $w.f.back $w.f.next $w.f.prev -side left -expand on
|
631 |
|
|
pack $w.f -pady 10 -side bottom -anchor w -fill x
|
632 |
|
|
frame $w.topline -relief ridge -borderwidth 2 -height 2
|
633 |
|
|
pack $w.topline -side top -fill x
|
634 |
|
|
|
635 |
|
|
frame $w.botline -relief ridge -borderwidth 2 -height 2
|
636 |
|
|
pack $w.botline -side bottom -fill x
|
637 |
|
|
|
638 |
|
|
frame $w.config
|
639 |
|
|
pack $w.config -fill y -expand on
|
640 |
|
|
|
641 |
|
|
scrollbar $w.config.vscroll -command "$w.config.canvas yview"
|
642 |
|
|
pack $w.config.vscroll -side right -fill y
|
643 |
|
|
|
644 |
|
|
canvas $w.config.canvas -height 1\
|
645 |
|
|
-relief flat -borderwidth 0 -yscrollcommand "$w.config.vscroll set" \
|
646 |
|
|
-width [expr [winfo screenwidth .] * 1 / 2]
|
647 |
|
|
frame $w.config.f
|
648 |
|
|
pack $w.config.canvas -side right -fill y
|
649 |
|
|
|
650 |
|
|
|
651 |
|
|
bool $w.config.f 3 0 "PCI bios support" CONFIG_PCI
|
652 |
|
|
bool $w.config.f 3 1 " PCI device list support" CONFIG_PCIDEVLIST
|
653 |
|
|
bool $w.config.f 3 2 "Networking support" CONFIG_NET
|
654 |
|
|
bool $w.config.f 3 3 "System V IPC" CONFIG_SYSVIPC
|
655 |
|
|
bool $w.config.f 3 4 "Reduced memory footprint" CONFIG_REDUCED_MEMORY
|
656 |
|
|
tristate $w.config.f 3 5 "Kernel support for flat binaries" CONFIG_BINFMT_FLAT
|
657 |
|
|
tristate $w.config.f 3 6 "Kernel support for ELF binaries" CONFIG_BINFMT_ELF
|
658 |
|
|
bool $w.config.f 3 7 "Compile kernel as ELF - if your GCC is ELF-GCC" CONFIG_KERNEL_ELF
|
659 |
|
|
bool $w.config.f 3 8 "Console support" CONFIG_CONSOLE
|
660 |
|
|
bool $w.config.f 3 9 "Enable serial echo" CONFIG_SERIAL_ECHO
|
661 |
|
|
bool $w.config.f 3 10 "Frame buffer" CONFIG_FRAMEBUFFER
|
662 |
|
|
|
663 |
|
|
|
664 |
|
|
|
665 |
|
|
focus $w
|
666 |
|
|
update_menu3 $w.config.f
|
667 |
|
|
global winx; global winy
|
668 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
669 |
|
|
wm geometry $w +$winx+$winy
|
670 |
|
|
update idletasks
|
671 |
|
|
$w.config.canvas create window 0 0 -anchor nw -window $w.config.f
|
672 |
|
|
|
673 |
|
|
$w.config.canvas configure \
|
674 |
|
|
-width [expr [winfo reqwidth $w.config.f] + 1]\
|
675 |
|
|
-scrollregion "-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \
|
676 |
|
|
[expr [winfo reqheight $w.config.f] + 1]"
|
677 |
|
|
|
678 |
|
|
set winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]
|
679 |
|
|
set scry [expr [winfo screenh $w] / 2]
|
680 |
|
|
set maxy [expr [winfo screenh $w] * 3 / 4]
|
681 |
|
|
set canvtotal [expr [winfo reqh $w.config.f] + 2]
|
682 |
|
|
if [expr $winy + $canvtotal < $maxy] {
|
683 |
|
|
$w.config.canvas configure -height $canvtotal
|
684 |
|
|
} else {
|
685 |
|
|
$w.config.canvas configure -height [expr $scry - $winy]
|
686 |
|
|
}
|
687 |
|
|
update idletasks
|
688 |
|
|
wm maxsize $w [winfo width $w] [winfo screenheight $w]
|
689 |
|
|
wm minsize $w [winfo width $w] 100
|
690 |
|
|
|
691 |
|
|
wm deiconify $w
|
692 |
|
|
}
|
693 |
|
|
|
694 |
|
|
|
695 |
|
|
proc update_menu3 {w} {
|
696 |
|
|
update_define
|
697 |
|
|
global CONFIG_PCI; vfix CONFIG_PCI
|
698 |
|
|
global CONFIG_PCIDEVLIST; vfix CONFIG_PCIDEVLIST
|
699 |
|
|
if {($CONFIG_PCI == 1)} then { .menu3.config.f.x1.y configure -state normal;.menu3.config.f.x1.n configure -state normal;.menu3.config.f.x1.l configure -state normal;set CONFIG_PCIDEVLIST [expr $CONFIG_PCIDEVLIST&15];} else { .menu3.config.f.x1.y configure -state disabled;.menu3.config.f.x1.n configure -state disabled;.menu3.config.f.x1.l configure -state disabled;set CONFIG_PCIDEVLIST [expr $CONFIG_PCIDEVLIST|16];}
|
700 |
|
|
global CONFIG_CONSOLE; vfix CONFIG_CONSOLE
|
701 |
|
|
global CONFIG_SERIAL_ECHO; vfix CONFIG_SERIAL_ECHO
|
702 |
|
|
if {($CONFIG_CONSOLE == 1)} then { .menu3.config.f.x9.y configure -state normal;.menu3.config.f.x9.n configure -state normal;.menu3.config.f.x9.l configure -state normal;set CONFIG_SERIAL_ECHO [expr $CONFIG_SERIAL_ECHO&15];} else { .menu3.config.f.x9.y configure -state disabled;.menu3.config.f.x9.n configure -state disabled;.menu3.config.f.x9.l configure -state disabled;set CONFIG_SERIAL_ECHO [expr $CONFIG_SERIAL_ECHO|16];}
|
703 |
|
|
global CONFIG_FRAMEBUFFER; vfix CONFIG_FRAMEBUFFER
|
704 |
|
|
if {($CONFIG_CONSOLE == 1)} then { .menu3.config.f.x10.y configure -state normal;.menu3.config.f.x10.n configure -state normal;.menu3.config.f.x10.l configure -state normal;set CONFIG_FRAMEBUFFER [expr $CONFIG_FRAMEBUFFER&15];} else { .menu3.config.f.x10.y configure -state disabled;.menu3.config.f.x10.n configure -state disabled;.menu3.config.f.x10.l configure -state disabled;set CONFIG_FRAMEBUFFER [expr $CONFIG_FRAMEBUFFER|16];}
|
705 |
|
|
}
|
706 |
|
|
|
707 |
|
|
|
708 |
|
|
menu_option menu4 4 "Floppy, IDE, and other block devices"
|
709 |
|
|
proc menu4 {w title} {
|
710 |
|
|
catch {destroy $w}
|
711 |
|
|
toplevel $w -class Dialog
|
712 |
|
|
wm withdraw $w
|
713 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
714 |
|
|
"Floppy, IDE, and other block devices" -relief raised
|
715 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
716 |
|
|
wm title $w "Floppy, IDE, and other block devices"
|
717 |
|
|
|
718 |
|
|
set oldFocus [focus]
|
719 |
|
|
frame $w.f
|
720 |
|
|
button $w.f.back -text "Main Menu" \
|
721 |
|
|
-width 15 -command "destroy $w; focus $oldFocus; update_mainmenu $w"
|
722 |
|
|
button $w.f.next -text "Next" \
|
723 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu5 .menu5 \"$title\""
|
724 |
|
|
button $w.f.prev -text "Prev" \
|
725 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu3 .menu3 \"$title\""
|
726 |
|
|
pack $w.f.back $w.f.next $w.f.prev -side left -expand on
|
727 |
|
|
pack $w.f -pady 10 -side bottom -anchor w -fill x
|
728 |
|
|
frame $w.topline -relief ridge -borderwidth 2 -height 2
|
729 |
|
|
pack $w.topline -side top -fill x
|
730 |
|
|
|
731 |
|
|
frame $w.botline -relief ridge -borderwidth 2 -height 2
|
732 |
|
|
pack $w.botline -side bottom -fill x
|
733 |
|
|
|
734 |
|
|
frame $w.config
|
735 |
|
|
pack $w.config -fill y -expand on
|
736 |
|
|
|
737 |
|
|
scrollbar $w.config.vscroll -command "$w.config.canvas yview"
|
738 |
|
|
pack $w.config.vscroll -side right -fill y
|
739 |
|
|
|
740 |
|
|
canvas $w.config.canvas -height 1\
|
741 |
|
|
-relief flat -borderwidth 0 -yscrollcommand "$w.config.vscroll set" \
|
742 |
|
|
-width [expr [winfo screenwidth .] * 1 / 2]
|
743 |
|
|
frame $w.config.f
|
744 |
|
|
pack $w.config.canvas -side right -fill y
|
745 |
|
|
|
746 |
|
|
|
747 |
|
|
tristate $w.config.f 4 0 "ROM disk memory block device" CONFIG_BLK_DEV_BLKMEM
|
748 |
|
|
bool $w.config.f 4 1 "IDE harddisk support" CONFIG_BLK_DEV_IDE
|
749 |
|
|
bool $w.config.f 4 2 " Include IDE/ATAPI CDROM support" CONFIG_BLK_DEV_IDECD
|
750 |
|
|
bool $w.config.f 4 3 " Include IDE/ATAPI TAPE support" CONFIG_BLK_DEV_IDETAPE
|
751 |
|
|
bool $w.config.f 4 4 " Include IDE/ATAPI FLOPPY support (new)" CONFIG_BLK_DEV_IDEFLOPPY
|
752 |
|
|
tristate $w.config.f 4 5 "Loopback device support" CONFIG_BLK_DEV_LOOP
|
753 |
|
|
bool $w.config.f 4 6 "Multiple devices driver support" CONFIG_BLK_DEV_MD
|
754 |
|
|
tristate $w.config.f 4 7 " Linear (append) mode" CONFIG_MD_LINEAR
|
755 |
|
|
tristate $w.config.f 4 8 " RAID-0 (striping) mode" CONFIG_MD_STRIPED
|
756 |
|
|
tristate $w.config.f 4 9 "RAM disk support" CONFIG_BLK_DEV_RAM
|
757 |
|
|
bool $w.config.f 4 10 " Release empty RAM disk blocks" CONFIG_RD_RELEASE_BLOCKS
|
758 |
|
|
bool $w.config.f 4 11 " Initial RAM disk (initrd) support" CONFIG_BLK_DEV_INITRD
|
759 |
|
|
tristate $w.config.f 4 12 "FLASH device support" CONFIG_DEV_FLASH
|
760 |
|
|
bool $w.config.f 4 13 " FLASH Block device" CONFIG_BLK_DEV_FLASH
|
761 |
|
|
bool $w.config.f 4 14 " FLASH Character device" CONFIG_CHR_DEV_FLASH
|
762 |
|
|
|
763 |
|
|
|
764 |
|
|
|
765 |
|
|
focus $w
|
766 |
|
|
update_menu4 $w.config.f
|
767 |
|
|
global winx; global winy
|
768 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
769 |
|
|
wm geometry $w +$winx+$winy
|
770 |
|
|
update idletasks
|
771 |
|
|
$w.config.canvas create window 0 0 -anchor nw -window $w.config.f
|
772 |
|
|
|
773 |
|
|
$w.config.canvas configure \
|
774 |
|
|
-width [expr [winfo reqwidth $w.config.f] + 1]\
|
775 |
|
|
-scrollregion "-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \
|
776 |
|
|
[expr [winfo reqheight $w.config.f] + 1]"
|
777 |
|
|
|
778 |
|
|
set winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]
|
779 |
|
|
set scry [expr [winfo screenh $w] / 2]
|
780 |
|
|
set maxy [expr [winfo screenh $w] * 3 / 4]
|
781 |
|
|
set canvtotal [expr [winfo reqh $w.config.f] + 2]
|
782 |
|
|
if [expr $winy + $canvtotal < $maxy] {
|
783 |
|
|
$w.config.canvas configure -height $canvtotal
|
784 |
|
|
} else {
|
785 |
|
|
$w.config.canvas configure -height [expr $scry - $winy]
|
786 |
|
|
}
|
787 |
|
|
update idletasks
|
788 |
|
|
wm maxsize $w [winfo width $w] [winfo screenheight $w]
|
789 |
|
|
wm minsize $w [winfo width $w] 100
|
790 |
|
|
|
791 |
|
|
wm deiconify $w
|
792 |
|
|
}
|
793 |
|
|
|
794 |
|
|
|
795 |
|
|
proc update_menu4 {w} {
|
796 |
|
|
update_define
|
797 |
|
|
global CONFIG_BLK_DEV_IDE; vfix CONFIG_BLK_DEV_IDE
|
798 |
|
|
global CONFIG_BLK_DEV_IDECD; vfix CONFIG_BLK_DEV_IDECD
|
799 |
|
|
if {($CONFIG_BLK_DEV_IDE == 1)} then { .menu4.config.f.x2.y configure -state normal;.menu4.config.f.x2.n configure -state normal;.menu4.config.f.x2.l configure -state normal;set CONFIG_BLK_DEV_IDECD [expr $CONFIG_BLK_DEV_IDECD&15];} else { .menu4.config.f.x2.y configure -state disabled;.menu4.config.f.x2.n configure -state disabled;.menu4.config.f.x2.l configure -state disabled;set CONFIG_BLK_DEV_IDECD [expr $CONFIG_BLK_DEV_IDECD|16];}
|
800 |
|
|
global CONFIG_BLK_DEV_IDETAPE; vfix CONFIG_BLK_DEV_IDETAPE
|
801 |
|
|
if {($CONFIG_BLK_DEV_IDE == 1)} then { .menu4.config.f.x3.y configure -state normal;.menu4.config.f.x3.n configure -state normal;.menu4.config.f.x3.l configure -state normal;set CONFIG_BLK_DEV_IDETAPE [expr $CONFIG_BLK_DEV_IDETAPE&15];} else { .menu4.config.f.x3.y configure -state disabled;.menu4.config.f.x3.n configure -state disabled;.menu4.config.f.x3.l configure -state disabled;set CONFIG_BLK_DEV_IDETAPE [expr $CONFIG_BLK_DEV_IDETAPE|16];}
|
802 |
|
|
global CONFIG_BLK_DEV_IDEFLOPPY; vfix CONFIG_BLK_DEV_IDEFLOPPY
|
803 |
|
|
if {($CONFIG_BLK_DEV_IDE == 1)} then { .menu4.config.f.x4.y configure -state normal;.menu4.config.f.x4.n configure -state normal;.menu4.config.f.x4.l configure -state normal;set CONFIG_BLK_DEV_IDEFLOPPY [expr $CONFIG_BLK_DEV_IDEFLOPPY&15];} else { .menu4.config.f.x4.y configure -state disabled;.menu4.config.f.x4.n configure -state disabled;.menu4.config.f.x4.l configure -state disabled;set CONFIG_BLK_DEV_IDEFLOPPY [expr $CONFIG_BLK_DEV_IDEFLOPPY|16];}
|
804 |
|
|
global CONFIG_BLK_DEV_MD; vfix CONFIG_BLK_DEV_MD
|
805 |
|
|
global CONFIG_MD_LINEAR; vfix CONFIG_MD_LINEAR
|
806 |
|
|
if {($CONFIG_BLK_DEV_MD == 1)} then { .menu4.config.f.x7.y configure -state normal;.menu4.config.f.x7.n configure -state normal;.menu4.config.f.x7.m configure -state normal;.menu4.config.f.x7.l configure -state normal;set CONFIG_MD_LINEAR [expr $CONFIG_MD_LINEAR&15];} else { .menu4.config.f.x7.y configure -state disabled;.menu4.config.f.x7.n configure -state disabled;.menu4.config.f.x7.m configure -state disabled;.menu4.config.f.x7.l configure -state disabled;set CONFIG_MD_LINEAR [expr $CONFIG_MD_LINEAR|16];}
|
807 |
|
|
global CONFIG_MD_STRIPED; vfix CONFIG_MD_STRIPED
|
808 |
|
|
if {($CONFIG_BLK_DEV_MD == 1)} then { .menu4.config.f.x8.y configure -state normal;.menu4.config.f.x8.n configure -state normal;.menu4.config.f.x8.m configure -state normal;.menu4.config.f.x8.l configure -state normal;set CONFIG_MD_STRIPED [expr $CONFIG_MD_STRIPED&15];} else { .menu4.config.f.x8.y configure -state disabled;.menu4.config.f.x8.n configure -state disabled;.menu4.config.f.x8.m configure -state disabled;.menu4.config.f.x8.l configure -state disabled;set CONFIG_MD_STRIPED [expr $CONFIG_MD_STRIPED|16];}
|
809 |
|
|
global CONFIG_BLK_DEV_RAM; vfix CONFIG_BLK_DEV_RAM
|
810 |
|
|
global CONFIG_RD_RELEASE_BLOCKS; vfix CONFIG_RD_RELEASE_BLOCKS
|
811 |
|
|
if {($CONFIG_BLK_DEV_RAM == 1)} then { .menu4.config.f.x10.y configure -state normal;.menu4.config.f.x10.n configure -state normal;.menu4.config.f.x10.l configure -state normal;set CONFIG_RD_RELEASE_BLOCKS [expr $CONFIG_RD_RELEASE_BLOCKS&15];} else { .menu4.config.f.x10.y configure -state disabled;.menu4.config.f.x10.n configure -state disabled;.menu4.config.f.x10.l configure -state disabled;set CONFIG_RD_RELEASE_BLOCKS [expr $CONFIG_RD_RELEASE_BLOCKS|16];}
|
812 |
|
|
global CONFIG_BLK_DEV_INITRD; vfix CONFIG_BLK_DEV_INITRD
|
813 |
|
|
if {($CONFIG_BLK_DEV_RAM == 1)} then { .menu4.config.f.x11.y configure -state normal;.menu4.config.f.x11.n configure -state normal;.menu4.config.f.x11.l configure -state normal;set CONFIG_BLK_DEV_INITRD [expr $CONFIG_BLK_DEV_INITRD&15];} else { .menu4.config.f.x11.y configure -state disabled;.menu4.config.f.x11.n configure -state disabled;.menu4.config.f.x11.l configure -state disabled;set CONFIG_BLK_DEV_INITRD [expr $CONFIG_BLK_DEV_INITRD|16];}
|
814 |
|
|
global CONFIG_DEV_FLASH; vfix CONFIG_DEV_FLASH
|
815 |
|
|
global CONFIG_BLK_DEV_FLASH; vfix CONFIG_BLK_DEV_FLASH
|
816 |
|
|
if {($CONFIG_DEV_FLASH == 1)} then { .menu4.config.f.x13.y configure -state normal;.menu4.config.f.x13.n configure -state normal;.menu4.config.f.x13.l configure -state normal;set CONFIG_BLK_DEV_FLASH [expr $CONFIG_BLK_DEV_FLASH&15];} else { .menu4.config.f.x13.y configure -state disabled;.menu4.config.f.x13.n configure -state disabled;.menu4.config.f.x13.l configure -state disabled;set CONFIG_BLK_DEV_FLASH [expr $CONFIG_BLK_DEV_FLASH|16];}
|
817 |
|
|
global CONFIG_CHR_DEV_FLASH; vfix CONFIG_CHR_DEV_FLASH
|
818 |
|
|
if {($CONFIG_DEV_FLASH == 1)} then { .menu4.config.f.x14.y configure -state normal;.menu4.config.f.x14.n configure -state normal;.menu4.config.f.x14.l configure -state normal;set CONFIG_CHR_DEV_FLASH [expr $CONFIG_CHR_DEV_FLASH&15];} else { .menu4.config.f.x14.y configure -state disabled;.menu4.config.f.x14.n configure -state disabled;.menu4.config.f.x14.l configure -state disabled;set CONFIG_CHR_DEV_FLASH [expr $CONFIG_CHR_DEV_FLASH|16];}
|
819 |
|
|
}
|
820 |
|
|
|
821 |
|
|
|
822 |
|
|
menu_option menu5 5 "Networking options"
|
823 |
|
|
proc menu5 {w title} {
|
824 |
|
|
catch {destroy $w}
|
825 |
|
|
toplevel $w -class Dialog
|
826 |
|
|
wm withdraw $w
|
827 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
828 |
|
|
"Networking options" -relief raised
|
829 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
830 |
|
|
wm title $w "Networking options"
|
831 |
|
|
|
832 |
|
|
set oldFocus [focus]
|
833 |
|
|
frame $w.f
|
834 |
|
|
button $w.f.back -text "Main Menu" \
|
835 |
|
|
-width 15 -command "destroy $w; focus $oldFocus; update_mainmenu $w"
|
836 |
|
|
button $w.f.next -text "Next" \
|
837 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu6 .menu6 \"$title\""
|
838 |
|
|
button $w.f.prev -text "Prev" \
|
839 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu4 .menu4 \"$title\""
|
840 |
|
|
pack $w.f.back $w.f.next $w.f.prev -side left -expand on
|
841 |
|
|
pack $w.f -pady 10 -side bottom -anchor w -fill x
|
842 |
|
|
frame $w.topline -relief ridge -borderwidth 2 -height 2
|
843 |
|
|
pack $w.topline -side top -fill x
|
844 |
|
|
|
845 |
|
|
frame $w.botline -relief ridge -borderwidth 2 -height 2
|
846 |
|
|
pack $w.botline -side bottom -fill x
|
847 |
|
|
|
848 |
|
|
frame $w.config
|
849 |
|
|
pack $w.config -fill y -expand on
|
850 |
|
|
|
851 |
|
|
scrollbar $w.config.vscroll -command "$w.config.canvas yview"
|
852 |
|
|
pack $w.config.vscroll -side right -fill y
|
853 |
|
|
|
854 |
|
|
canvas $w.config.canvas -height 1\
|
855 |
|
|
-relief flat -borderwidth 0 -yscrollcommand "$w.config.vscroll set" \
|
856 |
|
|
-width [expr [winfo screenwidth .] * 1 / 2]
|
857 |
|
|
frame $w.config.f
|
858 |
|
|
pack $w.config.canvas -side right -fill y
|
859 |
|
|
|
860 |
|
|
|
861 |
|
|
bool $w.config.f 5 0 "Network firewalls" CONFIG_FIREWALL
|
862 |
|
|
bool $w.config.f 5 1 "Network aliasing" CONFIG_NET_ALIAS
|
863 |
|
|
bool $w.config.f 5 2 "TCP/IP networking" CONFIG_INET
|
864 |
|
|
bool $w.config.f 5 3 "IP: forwarding/gatewaying" CONFIG_IP_FORWARD
|
865 |
|
|
bool $w.config.f 5 4 "IP: multicasting" CONFIG_IP_MULTICAST
|
866 |
|
|
bool $w.config.f 5 5 "IP: syn cookies" CONFIG_SYN_COOKIES
|
867 |
|
|
bool $w.config.f 5 6 "IP: firewalling" CONFIG_IP_FIREWALL
|
868 |
|
|
bool $w.config.f 5 7 "IP: firewall packet logging" CONFIG_IP_FIREWALL_VERBOSE
|
869 |
|
|
bool $w.config.f 5 8 "IP: masquerading" CONFIG_IP_MASQUERADE
|
870 |
|
|
bool $w.config.f 5 9 "IP: ipautofw masquerading (EXPERIMENTAL)" CONFIG_IP_MASQUERADE_IPAUTOFW
|
871 |
|
|
bool $w.config.f 5 10 "IP: ipportfw masquerading (EXPERIMENTAL)" CONFIG_IP_MASQUERADE_IPPORTFW
|
872 |
|
|
bool $w.config.f 5 11 "IP: MS PPTP masq support (EXPERIMENTAL)" CONFIG_IP_MASQUERADE_PPTP
|
873 |
|
|
bool $w.config.f 5 12 "IP: MS PPTP Call ID masq support (EXPERIMENTAL)" CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT
|
874 |
|
|
bool $w.config.f 5 13 "IP: MS PPTP masq debugging" DEBUG_IP_MASQUERADE_PPTP
|
875 |
|
|
bool $w.config.f 5 14 "IP: MS PPTP masq verbose debugging" DEBUG_IP_MASQUERADE_PPTP_VERBOSE
|
876 |
|
|
bool $w.config.f 5 15 "IP: IPSEC ESP & ISAKMP masq support (EXPERIMENTAL)" CONFIG_IP_MASQUERADE_IPSEC
|
877 |
|
|
int $w.config.f 5 16 "IP: IPSEC masq table lifetime (minutes)" CONFIG_IP_MASQUERADE_IPSEC_EXPIRE
|
878 |
|
|
bool $w.config.f 5 17 "IP: Disable inbound ESP destination guessing" CONFIG_IP_MASQUERADE_IPSEC_NOGUESS
|
879 |
|
|
bool $w.config.f 5 18 "IP: IPSEC masq debugging" DEBUG_IP_MASQUERADE_IPSEC
|
880 |
|
|
bool $w.config.f 5 19 "IP: IPSEC masq verbose debugging" DEBUG_IP_MASQUERADE_IPSEC_VERBOSE
|
881 |
|
|
bool $w.config.f 5 20 "IP: ICMP masquerading" CONFIG_IP_MASQUERADE_ICMP
|
882 |
|
|
bool $w.config.f 5 21 "IP: transparent proxy support (EXPERIMENTAL)" CONFIG_IP_TRANSPARENT_PROXY
|
883 |
|
|
bool $w.config.f 5 22 "IP: always defragment" CONFIG_IP_ALWAYS_DEFRAG
|
884 |
|
|
bool $w.config.f 5 23 "IP: accounting" CONFIG_IP_ACCT
|
885 |
|
|
bool $w.config.f 5 24 "IP: optimize as router not host" CONFIG_IP_ROUTER
|
886 |
|
|
tristate $w.config.f 5 25 "IP: tunneling" CONFIG_NET_IPIP
|
887 |
|
|
bool $w.config.f 5 26 "IP: multicast routing (EXPERIMENTAL)" CONFIG_IP_MROUTE
|
888 |
|
|
tristate $w.config.f 5 27 "IP: aliasing support" CONFIG_IP_ALIAS
|
889 |
|
|
bool $w.config.f 5 28 "IP: ARP daemon support (EXPERIMENTAL)" CONFIG_ARPD
|
890 |
|
|
bool $w.config.f 5 29 "IP: PC/TCP compatibility mode" CONFIG_INET_PCTCP
|
891 |
|
|
tristate $w.config.f 5 30 "IP: Reverse ARP" CONFIG_INET_RARP
|
892 |
|
|
bool $w.config.f 5 31 "IP: Disable Path MTU Discovery (normally enabled)" CONFIG_NO_PATH_MTU_DISCOVERY
|
893 |
|
|
bool $w.config.f 5 32 "IP: Drop source routed frames" CONFIG_IP_NOSR
|
894 |
|
|
bool $w.config.f 5 33 "IP: Allow large windows (not recommended if <16Mb of memory)" CONFIG_SKB_LARGE
|
895 |
|
|
tristate $w.config.f 5 34 "The IPX protocol" CONFIG_IPX
|
896 |
|
|
tristate $w.config.f 5 35 "Appletalk DDP" CONFIG_ATALK
|
897 |
|
|
tristate $w.config.f 5 36 "Amateur Radio AX.25 Level 2" CONFIG_AX25
|
898 |
|
|
dep_tristate $w.config.f 5 37 "Amateur Radio NET/ROM" CONFIG_NETROM CONFIG_AX25
|
899 |
|
|
dep_tristate $w.config.f 5 38 "Amateur Radio X.25 PLP (Rose)" CONFIG_ROSE CONFIG_AX25
|
900 |
|
|
bool $w.config.f 5 39 "Bridging (EXPERIMENTAL)" CONFIG_BRIDGE
|
901 |
|
|
bool $w.config.f 5 40 "Kernel/User network link driver" CONFIG_NETLINK
|
902 |
|
|
bool $w.config.f 5 41 "Routing messages" CONFIG_RTNETLINK
|
903 |
|
|
|
904 |
|
|
|
905 |
|
|
|
906 |
|
|
focus $w
|
907 |
|
|
update_menu5 $w.config.f
|
908 |
|
|
global winx; global winy
|
909 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
910 |
|
|
wm geometry $w +$winx+$winy
|
911 |
|
|
update idletasks
|
912 |
|
|
$w.config.canvas create window 0 0 -anchor nw -window $w.config.f
|
913 |
|
|
|
914 |
|
|
$w.config.canvas configure \
|
915 |
|
|
-width [expr [winfo reqwidth $w.config.f] + 1]\
|
916 |
|
|
-scrollregion "-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \
|
917 |
|
|
[expr [winfo reqheight $w.config.f] + 1]"
|
918 |
|
|
|
919 |
|
|
set winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]
|
920 |
|
|
set scry [expr [winfo screenh $w] / 2]
|
921 |
|
|
set maxy [expr [winfo screenh $w] * 3 / 4]
|
922 |
|
|
set canvtotal [expr [winfo reqh $w.config.f] + 2]
|
923 |
|
|
if [expr $winy + $canvtotal < $maxy] {
|
924 |
|
|
$w.config.canvas configure -height $canvtotal
|
925 |
|
|
} else {
|
926 |
|
|
$w.config.canvas configure -height [expr $scry - $winy]
|
927 |
|
|
}
|
928 |
|
|
update idletasks
|
929 |
|
|
wm maxsize $w [winfo width $w] [winfo screenheight $w]
|
930 |
|
|
wm minsize $w [winfo width $w] 100
|
931 |
|
|
|
932 |
|
|
wm deiconify $w
|
933 |
|
|
}
|
934 |
|
|
|
935 |
|
|
|
936 |
|
|
proc update_menu5 {w} {
|
937 |
|
|
update_define
|
938 |
|
|
global CONFIG_NET; vfix CONFIG_NET
|
939 |
|
|
global CONFIG_FIREWALL; vfix CONFIG_FIREWALL
|
940 |
|
|
if {($CONFIG_NET == 1)} then { .menu5.config.f.x0.y configure -state normal;.menu5.config.f.x0.n configure -state normal;.menu5.config.f.x0.l configure -state normal;set CONFIG_FIREWALL [expr $CONFIG_FIREWALL&15];} else { .menu5.config.f.x0.y configure -state disabled;.menu5.config.f.x0.n configure -state disabled;.menu5.config.f.x0.l configure -state disabled;set CONFIG_FIREWALL [expr $CONFIG_FIREWALL|16];}
|
941 |
|
|
global CONFIG_NET_ALIAS; vfix CONFIG_NET_ALIAS
|
942 |
|
|
if {($CONFIG_NET == 1)} then { .menu5.config.f.x1.y configure -state normal;.menu5.config.f.x1.n configure -state normal;.menu5.config.f.x1.l configure -state normal;set CONFIG_NET_ALIAS [expr $CONFIG_NET_ALIAS&15];} else { .menu5.config.f.x1.y configure -state disabled;.menu5.config.f.x1.n configure -state disabled;.menu5.config.f.x1.l configure -state disabled;set CONFIG_NET_ALIAS [expr $CONFIG_NET_ALIAS|16];}
|
943 |
|
|
global CONFIG_INET; vfix CONFIG_INET
|
944 |
|
|
if {($CONFIG_NET == 1)} then { .menu5.config.f.x2.y configure -state normal;.menu5.config.f.x2.n configure -state normal;.menu5.config.f.x2.l configure -state normal;set CONFIG_INET [expr $CONFIG_INET&15];} else { .menu5.config.f.x2.y configure -state disabled;.menu5.config.f.x2.n configure -state disabled;.menu5.config.f.x2.l configure -state disabled;set CONFIG_INET [expr $CONFIG_INET|16];}
|
945 |
|
|
global CONFIG_IP_FORWARD; vfix CONFIG_IP_FORWARD
|
946 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x3.y configure -state normal;.menu5.config.f.x3.n configure -state normal;.menu5.config.f.x3.l configure -state normal;set CONFIG_IP_FORWARD [expr $CONFIG_IP_FORWARD&15];} else { .menu5.config.f.x3.y configure -state disabled;.menu5.config.f.x3.n configure -state disabled;.menu5.config.f.x3.l configure -state disabled;set CONFIG_IP_FORWARD [expr $CONFIG_IP_FORWARD|16];}
|
947 |
|
|
global CONFIG_IP_MULTICAST; vfix CONFIG_IP_MULTICAST
|
948 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x4.y configure -state normal;.menu5.config.f.x4.n configure -state normal;.menu5.config.f.x4.l configure -state normal;set CONFIG_IP_MULTICAST [expr $CONFIG_IP_MULTICAST&15];} else { .menu5.config.f.x4.y configure -state disabled;.menu5.config.f.x4.n configure -state disabled;.menu5.config.f.x4.l configure -state disabled;set CONFIG_IP_MULTICAST [expr $CONFIG_IP_MULTICAST|16];}
|
949 |
|
|
global CONFIG_SYN_COOKIES; vfix CONFIG_SYN_COOKIES
|
950 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x5.y configure -state normal;.menu5.config.f.x5.n configure -state normal;.menu5.config.f.x5.l configure -state normal;set CONFIG_SYN_COOKIES [expr $CONFIG_SYN_COOKIES&15];} else { .menu5.config.f.x5.y configure -state disabled;.menu5.config.f.x5.n configure -state disabled;.menu5.config.f.x5.l configure -state disabled;set CONFIG_SYN_COOKIES [expr $CONFIG_SYN_COOKIES|16];}
|
951 |
|
|
global CONFIG_IP_FIREWALL; vfix CONFIG_IP_FIREWALL
|
952 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1)} then { .menu5.config.f.x6.y configure -state normal;.menu5.config.f.x6.n configure -state normal;.menu5.config.f.x6.l configure -state normal;set CONFIG_IP_FIREWALL [expr $CONFIG_IP_FIREWALL&15];} else { .menu5.config.f.x6.y configure -state disabled;.menu5.config.f.x6.n configure -state disabled;.menu5.config.f.x6.l configure -state disabled;set CONFIG_IP_FIREWALL [expr $CONFIG_IP_FIREWALL|16];}
|
953 |
|
|
global CONFIG_IP_FIREWALL_VERBOSE; vfix CONFIG_IP_FIREWALL_VERBOSE
|
954 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1)} then { .menu5.config.f.x7.y configure -state normal;.menu5.config.f.x7.n configure -state normal;.menu5.config.f.x7.l configure -state normal;set CONFIG_IP_FIREWALL_VERBOSE [expr $CONFIG_IP_FIREWALL_VERBOSE&15];} else { .menu5.config.f.x7.y configure -state disabled;.menu5.config.f.x7.n configure -state disabled;.menu5.config.f.x7.l configure -state disabled;set CONFIG_IP_FIREWALL_VERBOSE [expr $CONFIG_IP_FIREWALL_VERBOSE|16];}
|
955 |
|
|
global CONFIG_IP_MASQUERADE; vfix CONFIG_IP_MASQUERADE
|
956 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1)} then { .menu5.config.f.x8.y configure -state normal;.menu5.config.f.x8.n configure -state normal;.menu5.config.f.x8.l configure -state normal;set CONFIG_IP_MASQUERADE [expr $CONFIG_IP_MASQUERADE&15];} else { .menu5.config.f.x8.y configure -state disabled;.menu5.config.f.x8.n configure -state disabled;.menu5.config.f.x8.l configure -state disabled;set CONFIG_IP_MASQUERADE [expr $CONFIG_IP_MASQUERADE|16];}
|
957 |
|
|
global CONFIG_EXPERIMENTAL; vfix CONFIG_EXPERIMENTAL
|
958 |
|
|
global CONFIG_IP_MASQUERADE_IPAUTOFW; vfix CONFIG_IP_MASQUERADE_IPAUTOFW
|
959 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1)} then { .menu5.config.f.x9.y configure -state normal;.menu5.config.f.x9.n configure -state normal;.menu5.config.f.x9.l configure -state normal;set CONFIG_IP_MASQUERADE_IPAUTOFW [expr $CONFIG_IP_MASQUERADE_IPAUTOFW&15];} else { .menu5.config.f.x9.y configure -state disabled;.menu5.config.f.x9.n configure -state disabled;.menu5.config.f.x9.l configure -state disabled;set CONFIG_IP_MASQUERADE_IPAUTOFW [expr $CONFIG_IP_MASQUERADE_IPAUTOFW|16];}
|
960 |
|
|
global CONFIG_IP_MASQUERADE_IPPORTFW; vfix CONFIG_IP_MASQUERADE_IPPORTFW
|
961 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1)} then { .menu5.config.f.x10.y configure -state normal;.menu5.config.f.x10.n configure -state normal;.menu5.config.f.x10.l configure -state normal;set CONFIG_IP_MASQUERADE_IPPORTFW [expr $CONFIG_IP_MASQUERADE_IPPORTFW&15];} else { .menu5.config.f.x10.y configure -state disabled;.menu5.config.f.x10.n configure -state disabled;.menu5.config.f.x10.l configure -state disabled;set CONFIG_IP_MASQUERADE_IPPORTFW [expr $CONFIG_IP_MASQUERADE_IPPORTFW|16];}
|
962 |
|
|
global CONFIG_IP_MASQUERADE_PPTP; vfix CONFIG_IP_MASQUERADE_PPTP
|
963 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1)} then { .menu5.config.f.x11.y configure -state normal;.menu5.config.f.x11.n configure -state normal;.menu5.config.f.x11.l configure -state normal;set CONFIG_IP_MASQUERADE_PPTP [expr $CONFIG_IP_MASQUERADE_PPTP&15];} else { .menu5.config.f.x11.y configure -state disabled;.menu5.config.f.x11.n configure -state disabled;.menu5.config.f.x11.l configure -state disabled;set CONFIG_IP_MASQUERADE_PPTP [expr $CONFIG_IP_MASQUERADE_PPTP|16];}
|
964 |
|
|
global CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT; vfix CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT
|
965 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_PPTP == 1)} then { .menu5.config.f.x12.y configure -state normal;.menu5.config.f.x12.n configure -state normal;.menu5.config.f.x12.l configure -state normal;set CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT [expr $CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT&15];} else { .menu5.config.f.x12.y configure -state disabled;.menu5.config.f.x12.n configure -state disabled;.menu5.config.f.x12.l configure -state disabled;set CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT [expr $CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT|16];}
|
966 |
|
|
global DEBUG_IP_MASQUERADE_PPTP; vfix DEBUG_IP_MASQUERADE_PPTP
|
967 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_PPTP == 1)} then { .menu5.config.f.x13.y configure -state normal;.menu5.config.f.x13.n configure -state normal;.menu5.config.f.x13.l configure -state normal;set DEBUG_IP_MASQUERADE_PPTP [expr $DEBUG_IP_MASQUERADE_PPTP&15];} else { .menu5.config.f.x13.y configure -state disabled;.menu5.config.f.x13.n configure -state disabled;.menu5.config.f.x13.l configure -state disabled;set DEBUG_IP_MASQUERADE_PPTP [expr $DEBUG_IP_MASQUERADE_PPTP|16];}
|
968 |
|
|
global DEBUG_IP_MASQUERADE_PPTP_VERBOSE; vfix DEBUG_IP_MASQUERADE_PPTP_VERBOSE
|
969 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_PPTP == 1) && ($DEBUG_IP_MASQUERADE_PPTP == 1)} then { .menu5.config.f.x14.y configure -state normal;.menu5.config.f.x14.n configure -state normal;.menu5.config.f.x14.l configure -state normal;set DEBUG_IP_MASQUERADE_PPTP_VERBOSE [expr $DEBUG_IP_MASQUERADE_PPTP_VERBOSE&15];} else { .menu5.config.f.x14.y configure -state disabled;.menu5.config.f.x14.n configure -state disabled;.menu5.config.f.x14.l configure -state disabled;set DEBUG_IP_MASQUERADE_PPTP_VERBOSE [expr $DEBUG_IP_MASQUERADE_PPTP_VERBOSE|16];}
|
970 |
|
|
global CONFIG_IP_MASQUERADE_IPSEC; vfix CONFIG_IP_MASQUERADE_IPSEC
|
971 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1)} then { .menu5.config.f.x15.y configure -state normal;.menu5.config.f.x15.n configure -state normal;.menu5.config.f.x15.l configure -state normal;set CONFIG_IP_MASQUERADE_IPSEC [expr $CONFIG_IP_MASQUERADE_IPSEC&15];} else { .menu5.config.f.x15.y configure -state disabled;.menu5.config.f.x15.n configure -state disabled;.menu5.config.f.x15.l configure -state disabled;set CONFIG_IP_MASQUERADE_IPSEC [expr $CONFIG_IP_MASQUERADE_IPSEC|16];}
|
972 |
|
|
global CONFIG_IP_MASQUERADE_IPSEC_EXPIRE; vfix CONFIG_IP_MASQUERADE_IPSEC_EXPIRE
|
973 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_IPSEC == 1)} then { .menu5.config.f.x16.x configure -state normal -fore [ cget .ref -foreground ]; .menu5.config.f.x16.l configure -state normal; } else { .menu5.config.f.x16.x configure -state disabled -fore [ cget .ref -disabledforeground ];.menu5.config.f.x16.l configure -state disabled;}
|
974 |
|
|
global CONFIG_IP_MASQUERADE_IPSEC_NOGUESS; vfix CONFIG_IP_MASQUERADE_IPSEC_NOGUESS
|
975 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_IPSEC == 1)} then { .menu5.config.f.x17.y configure -state normal;.menu5.config.f.x17.n configure -state normal;.menu5.config.f.x17.l configure -state normal;set CONFIG_IP_MASQUERADE_IPSEC_NOGUESS [expr $CONFIG_IP_MASQUERADE_IPSEC_NOGUESS&15];} else { .menu5.config.f.x17.y configure -state disabled;.menu5.config.f.x17.n configure -state disabled;.menu5.config.f.x17.l configure -state disabled;set CONFIG_IP_MASQUERADE_IPSEC_NOGUESS [expr $CONFIG_IP_MASQUERADE_IPSEC_NOGUESS|16];}
|
976 |
|
|
global DEBUG_IP_MASQUERADE_IPSEC; vfix DEBUG_IP_MASQUERADE_IPSEC
|
977 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_IPSEC == 1)} then { .menu5.config.f.x18.y configure -state normal;.menu5.config.f.x18.n configure -state normal;.menu5.config.f.x18.l configure -state normal;set DEBUG_IP_MASQUERADE_IPSEC [expr $DEBUG_IP_MASQUERADE_IPSEC&15];} else { .menu5.config.f.x18.y configure -state disabled;.menu5.config.f.x18.n configure -state disabled;.menu5.config.f.x18.l configure -state disabled;set DEBUG_IP_MASQUERADE_IPSEC [expr $DEBUG_IP_MASQUERADE_IPSEC|16];}
|
978 |
|
|
global DEBUG_IP_MASQUERADE_IPSEC_VERBOSE; vfix DEBUG_IP_MASQUERADE_IPSEC_VERBOSE
|
979 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_IPSEC == 1) && ($DEBUG_IP_MASQUERADE_IPSEC == 1)} then { .menu5.config.f.x19.y configure -state normal;.menu5.config.f.x19.n configure -state normal;.menu5.config.f.x19.l configure -state normal;set DEBUG_IP_MASQUERADE_IPSEC_VERBOSE [expr $DEBUG_IP_MASQUERADE_IPSEC_VERBOSE&15];} else { .menu5.config.f.x19.y configure -state disabled;.menu5.config.f.x19.n configure -state disabled;.menu5.config.f.x19.l configure -state disabled;set DEBUG_IP_MASQUERADE_IPSEC_VERBOSE [expr $DEBUG_IP_MASQUERADE_IPSEC_VERBOSE|16];}
|
980 |
|
|
global CONFIG_IP_MASQUERADE_ICMP; vfix CONFIG_IP_MASQUERADE_ICMP
|
981 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0)} then { .menu5.config.f.x20.y configure -state normal;.menu5.config.f.x20.n configure -state normal;.menu5.config.f.x20.l configure -state normal;set CONFIG_IP_MASQUERADE_ICMP [expr $CONFIG_IP_MASQUERADE_ICMP&15];} else { .menu5.config.f.x20.y configure -state disabled;.menu5.config.f.x20.n configure -state disabled;.menu5.config.f.x20.l configure -state disabled;set CONFIG_IP_MASQUERADE_ICMP [expr $CONFIG_IP_MASQUERADE_ICMP|16];}
|
982 |
|
|
global CONFIG_IP_TRANSPARENT_PROXY; vfix CONFIG_IP_TRANSPARENT_PROXY
|
983 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_EXPERIMENTAL == 1)} then { .menu5.config.f.x21.y configure -state normal;.menu5.config.f.x21.n configure -state normal;.menu5.config.f.x21.l configure -state normal;set CONFIG_IP_TRANSPARENT_PROXY [expr $CONFIG_IP_TRANSPARENT_PROXY&15];} else { .menu5.config.f.x21.y configure -state disabled;.menu5.config.f.x21.n configure -state disabled;.menu5.config.f.x21.l configure -state disabled;set CONFIG_IP_TRANSPARENT_PROXY [expr $CONFIG_IP_TRANSPARENT_PROXY|16];}
|
984 |
|
|
global CONFIG_IP_ALWAYS_DEFRAG; vfix CONFIG_IP_ALWAYS_DEFRAG
|
985 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1)} then { .menu5.config.f.x22.y configure -state normal;.menu5.config.f.x22.n configure -state normal;.menu5.config.f.x22.l configure -state normal;set CONFIG_IP_ALWAYS_DEFRAG [expr $CONFIG_IP_ALWAYS_DEFRAG&15];} else { .menu5.config.f.x22.y configure -state disabled;.menu5.config.f.x22.n configure -state disabled;.menu5.config.f.x22.l configure -state disabled;set CONFIG_IP_ALWAYS_DEFRAG [expr $CONFIG_IP_ALWAYS_DEFRAG|16];}
|
986 |
|
|
global CONFIG_IP_ACCT; vfix CONFIG_IP_ACCT
|
987 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x23.y configure -state normal;.menu5.config.f.x23.n configure -state normal;.menu5.config.f.x23.l configure -state normal;set CONFIG_IP_ACCT [expr $CONFIG_IP_ACCT&15];} else { .menu5.config.f.x23.y configure -state disabled;.menu5.config.f.x23.n configure -state disabled;.menu5.config.f.x23.l configure -state disabled;set CONFIG_IP_ACCT [expr $CONFIG_IP_ACCT|16];}
|
988 |
|
|
global CONFIG_IP_ROUTER; vfix CONFIG_IP_ROUTER
|
989 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x24.y configure -state normal;.menu5.config.f.x24.n configure -state normal;.menu5.config.f.x24.l configure -state normal;set CONFIG_IP_ROUTER [expr $CONFIG_IP_ROUTER&15];} else { .menu5.config.f.x24.y configure -state disabled;.menu5.config.f.x24.n configure -state disabled;.menu5.config.f.x24.l configure -state disabled;set CONFIG_IP_ROUTER [expr $CONFIG_IP_ROUTER|16];}
|
990 |
|
|
global CONFIG_NET_IPIP; vfix CONFIG_NET_IPIP
|
991 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x25.y configure -state normal;.menu5.config.f.x25.n configure -state normal;.menu5.config.f.x25.m configure -state normal;.menu5.config.f.x25.l configure -state normal;set CONFIG_NET_IPIP [expr $CONFIG_NET_IPIP&15];} else { .menu5.config.f.x25.y configure -state disabled;.menu5.config.f.x25.n configure -state disabled;.menu5.config.f.x25.m configure -state disabled;.menu5.config.f.x25.l configure -state disabled;set CONFIG_NET_IPIP [expr $CONFIG_NET_IPIP|16];}
|
992 |
|
|
global CONFIG_IP_MROUTE; vfix CONFIG_IP_MROUTE
|
993 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_IP_MULTICAST == 1) && ($CONFIG_EXPERIMENTAL == 1)} then { .menu5.config.f.x26.y configure -state normal;.menu5.config.f.x26.n configure -state normal;.menu5.config.f.x26.l configure -state normal;set CONFIG_IP_MROUTE [expr $CONFIG_IP_MROUTE&15];} else { .menu5.config.f.x26.y configure -state disabled;.menu5.config.f.x26.n configure -state disabled;.menu5.config.f.x26.l configure -state disabled;set CONFIG_IP_MROUTE [expr $CONFIG_IP_MROUTE|16];}
|
994 |
|
|
global CONFIG_IP_ALIAS; vfix CONFIG_IP_ALIAS
|
995 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_NET_ALIAS == 1)} then { .menu5.config.f.x27.y configure -state normal;.menu5.config.f.x27.n configure -state normal;.menu5.config.f.x27.m configure -state normal;.menu5.config.f.x27.l configure -state normal;set CONFIG_IP_ALIAS [expr $CONFIG_IP_ALIAS&15];} else { .menu5.config.f.x27.y configure -state disabled;.menu5.config.f.x27.n configure -state disabled;.menu5.config.f.x27.m configure -state disabled;.menu5.config.f.x27.l configure -state disabled;set CONFIG_IP_ALIAS [expr $CONFIG_IP_ALIAS|16];}
|
996 |
|
|
global CONFIG_NETLINK; vfix CONFIG_NETLINK
|
997 |
|
|
global CONFIG_ARPD; vfix CONFIG_ARPD
|
998 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_NETLINK == 1)} then { .menu5.config.f.x28.y configure -state normal;.menu5.config.f.x28.n configure -state normal;.menu5.config.f.x28.l configure -state normal;set CONFIG_ARPD [expr $CONFIG_ARPD&15];} else { .menu5.config.f.x28.y configure -state disabled;.menu5.config.f.x28.n configure -state disabled;.menu5.config.f.x28.l configure -state disabled;set CONFIG_ARPD [expr $CONFIG_ARPD|16];}
|
999 |
|
|
global CONFIG_INET_PCTCP; vfix CONFIG_INET_PCTCP
|
1000 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x29.y configure -state normal;.menu5.config.f.x29.n configure -state normal;.menu5.config.f.x29.l configure -state normal;set CONFIG_INET_PCTCP [expr $CONFIG_INET_PCTCP&15];} else { .menu5.config.f.x29.y configure -state disabled;.menu5.config.f.x29.n configure -state disabled;.menu5.config.f.x29.l configure -state disabled;set CONFIG_INET_PCTCP [expr $CONFIG_INET_PCTCP|16];}
|
1001 |
|
|
global CONFIG_INET_RARP; vfix CONFIG_INET_RARP
|
1002 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x30.y configure -state normal;.menu5.config.f.x30.n configure -state normal;.menu5.config.f.x30.m configure -state normal;.menu5.config.f.x30.l configure -state normal;set CONFIG_INET_RARP [expr $CONFIG_INET_RARP&15];} else { .menu5.config.f.x30.y configure -state disabled;.menu5.config.f.x30.n configure -state disabled;.menu5.config.f.x30.m configure -state disabled;.menu5.config.f.x30.l configure -state disabled;set CONFIG_INET_RARP [expr $CONFIG_INET_RARP|16];}
|
1003 |
|
|
global CONFIG_NO_PATH_MTU_DISCOVERY; vfix CONFIG_NO_PATH_MTU_DISCOVERY
|
1004 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x31.y configure -state normal;.menu5.config.f.x31.n configure -state normal;.menu5.config.f.x31.l configure -state normal;set CONFIG_NO_PATH_MTU_DISCOVERY [expr $CONFIG_NO_PATH_MTU_DISCOVERY&15];} else { .menu5.config.f.x31.y configure -state disabled;.menu5.config.f.x31.n configure -state disabled;.menu5.config.f.x31.l configure -state disabled;set CONFIG_NO_PATH_MTU_DISCOVERY [expr $CONFIG_NO_PATH_MTU_DISCOVERY|16];}
|
1005 |
|
|
global CONFIG_IP_NOSR; vfix CONFIG_IP_NOSR
|
1006 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x32.y configure -state normal;.menu5.config.f.x32.n configure -state normal;.menu5.config.f.x32.l configure -state normal;set CONFIG_IP_NOSR [expr $CONFIG_IP_NOSR&15];} else { .menu5.config.f.x32.y configure -state disabled;.menu5.config.f.x32.n configure -state disabled;.menu5.config.f.x32.l configure -state disabled;set CONFIG_IP_NOSR [expr $CONFIG_IP_NOSR|16];}
|
1007 |
|
|
global CONFIG_SKB_LARGE; vfix CONFIG_SKB_LARGE
|
1008 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { .menu5.config.f.x33.y configure -state normal;.menu5.config.f.x33.n configure -state normal;.menu5.config.f.x33.l configure -state normal;set CONFIG_SKB_LARGE [expr $CONFIG_SKB_LARGE&15];} else { .menu5.config.f.x33.y configure -state disabled;.menu5.config.f.x33.n configure -state disabled;.menu5.config.f.x33.l configure -state disabled;set CONFIG_SKB_LARGE [expr $CONFIG_SKB_LARGE|16];}
|
1009 |
|
|
global CONFIG_IPX; vfix CONFIG_IPX
|
1010 |
|
|
if {($CONFIG_NET == 1)} then { .menu5.config.f.x34.y configure -state normal;.menu5.config.f.x34.n configure -state normal;.menu5.config.f.x34.m configure -state normal;.menu5.config.f.x34.l configure -state normal;set CONFIG_IPX [expr $CONFIG_IPX&15];} else { .menu5.config.f.x34.y configure -state disabled;.menu5.config.f.x34.n configure -state disabled;.menu5.config.f.x34.m configure -state disabled;.menu5.config.f.x34.l configure -state disabled;set CONFIG_IPX [expr $CONFIG_IPX|16];}
|
1011 |
|
|
global CONFIG_ATALK; vfix CONFIG_ATALK
|
1012 |
|
|
if {($CONFIG_NET == 1)} then { .menu5.config.f.x35.y configure -state normal;.menu5.config.f.x35.n configure -state normal;.menu5.config.f.x35.m configure -state normal;.menu5.config.f.x35.l configure -state normal;set CONFIG_ATALK [expr $CONFIG_ATALK&15];} else { .menu5.config.f.x35.y configure -state disabled;.menu5.config.f.x35.n configure -state disabled;.menu5.config.f.x35.m configure -state disabled;.menu5.config.f.x35.l configure -state disabled;set CONFIG_ATALK [expr $CONFIG_ATALK|16];}
|
1013 |
|
|
global CONFIG_AX25; vfix CONFIG_AX25
|
1014 |
|
|
if {($CONFIG_NET == 1)} then { .menu5.config.f.x36.y configure -state normal;.menu5.config.f.x36.n configure -state normal;.menu5.config.f.x36.m configure -state normal;.menu5.config.f.x36.l configure -state normal;set CONFIG_AX25 [expr $CONFIG_AX25&15];} else { .menu5.config.f.x36.y configure -state disabled;.menu5.config.f.x36.n configure -state disabled;.menu5.config.f.x36.m configure -state disabled;.menu5.config.f.x36.l configure -state disabled;set CONFIG_AX25 [expr $CONFIG_AX25|16];}
|
1015 |
|
|
global CONFIG_NETROM; vfix CONFIG_NETROM
|
1016 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_AX25 != 0) && ($CONFIG_AX25 == 1 || $CONFIG_AX25 == 2)} then { global CONFIG_AX25; vfix CONFIG_AX25
|
1017 |
|
|
if { $CONFIG_AX25 != 1 && $CONFIG_AX25 != 0 } then {.menu5.config.f.x37.y configure -state disabled;} else {.menu5.config.f.x37.y configure -state normal;}; .menu5.config.f.x37.n configure -state normal;.menu5.config.f.x37.m configure -state normal;.menu5.config.f.x37.l configure -state normal;set CONFIG_NETROM [expr $CONFIG_NETROM&15];} else { .menu5.config.f.x37.y configure -state disabled;.menu5.config.f.x37.n configure -state disabled;.menu5.config.f.x37.m configure -state disabled;.menu5.config.f.x37.l configure -state disabled;set CONFIG_NETROM [expr $CONFIG_NETROM|16];}
|
1018 |
|
|
global CONFIG_ROSE; vfix CONFIG_ROSE
|
1019 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_AX25 != 0) && ($CONFIG_AX25 == 1 || $CONFIG_AX25 == 2)} then { global CONFIG_AX25; vfix CONFIG_AX25
|
1020 |
|
|
if { $CONFIG_AX25 != 1 && $CONFIG_AX25 != 0 } then {.menu5.config.f.x38.y configure -state disabled;} else {.menu5.config.f.x38.y configure -state normal;}; .menu5.config.f.x38.n configure -state normal;.menu5.config.f.x38.m configure -state normal;.menu5.config.f.x38.l configure -state normal;set CONFIG_ROSE [expr $CONFIG_ROSE&15];} else { .menu5.config.f.x38.y configure -state disabled;.menu5.config.f.x38.n configure -state disabled;.menu5.config.f.x38.m configure -state disabled;.menu5.config.f.x38.l configure -state disabled;set CONFIG_ROSE [expr $CONFIG_ROSE|16];}
|
1021 |
|
|
global CONFIG_BRIDGE; vfix CONFIG_BRIDGE
|
1022 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_EXPERIMENTAL == 1)} then { .menu5.config.f.x39.y configure -state normal;.menu5.config.f.x39.n configure -state normal;.menu5.config.f.x39.l configure -state normal;set CONFIG_BRIDGE [expr $CONFIG_BRIDGE&15];} else { .menu5.config.f.x39.y configure -state disabled;.menu5.config.f.x39.n configure -state disabled;.menu5.config.f.x39.l configure -state disabled;set CONFIG_BRIDGE [expr $CONFIG_BRIDGE|16];}
|
1023 |
|
|
if {($CONFIG_NET == 1)} then { .menu5.config.f.x40.y configure -state normal;.menu5.config.f.x40.n configure -state normal;.menu5.config.f.x40.l configure -state normal;set CONFIG_NETLINK [expr $CONFIG_NETLINK&15];} else { .menu5.config.f.x40.y configure -state disabled;.menu5.config.f.x40.n configure -state disabled;.menu5.config.f.x40.l configure -state disabled;set CONFIG_NETLINK [expr $CONFIG_NETLINK|16];}
|
1024 |
|
|
global CONFIG_RTNETLINK; vfix CONFIG_RTNETLINK
|
1025 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETLINK == 1)} then { .menu5.config.f.x41.y configure -state normal;.menu5.config.f.x41.n configure -state normal;.menu5.config.f.x41.l configure -state normal;set CONFIG_RTNETLINK [expr $CONFIG_RTNETLINK&15];} else { .menu5.config.f.x41.y configure -state disabled;.menu5.config.f.x41.n configure -state disabled;.menu5.config.f.x41.l configure -state disabled;set CONFIG_RTNETLINK [expr $CONFIG_RTNETLINK|16];}
|
1026 |
|
|
}
|
1027 |
|
|
|
1028 |
|
|
|
1029 |
|
|
menu_option menu6 6 "Network device support"
|
1030 |
|
|
proc menu6 {w title} {
|
1031 |
|
|
catch {destroy $w}
|
1032 |
|
|
toplevel $w -class Dialog
|
1033 |
|
|
wm withdraw $w
|
1034 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
1035 |
|
|
"Network device support" -relief raised
|
1036 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
1037 |
|
|
wm title $w "Network device support"
|
1038 |
|
|
|
1039 |
|
|
set oldFocus [focus]
|
1040 |
|
|
frame $w.f
|
1041 |
|
|
button $w.f.back -text "Main Menu" \
|
1042 |
|
|
-width 15 -command "destroy $w; focus $oldFocus; update_mainmenu $w"
|
1043 |
|
|
button $w.f.next -text "Next" \
|
1044 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu7 .menu7 \"$title\""
|
1045 |
|
|
button $w.f.prev -text "Prev" \
|
1046 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu5 .menu5 \"$title\""
|
1047 |
|
|
pack $w.f.back $w.f.next $w.f.prev -side left -expand on
|
1048 |
|
|
pack $w.f -pady 10 -side bottom -anchor w -fill x
|
1049 |
|
|
frame $w.topline -relief ridge -borderwidth 2 -height 2
|
1050 |
|
|
pack $w.topline -side top -fill x
|
1051 |
|
|
|
1052 |
|
|
frame $w.botline -relief ridge -borderwidth 2 -height 2
|
1053 |
|
|
pack $w.botline -side bottom -fill x
|
1054 |
|
|
|
1055 |
|
|
frame $w.config
|
1056 |
|
|
pack $w.config -fill y -expand on
|
1057 |
|
|
|
1058 |
|
|
scrollbar $w.config.vscroll -command "$w.config.canvas yview"
|
1059 |
|
|
pack $w.config.vscroll -side right -fill y
|
1060 |
|
|
|
1061 |
|
|
canvas $w.config.canvas -height 1\
|
1062 |
|
|
-relief flat -borderwidth 0 -yscrollcommand "$w.config.vscroll set" \
|
1063 |
|
|
-width [expr [winfo screenwidth .] * 1 / 2]
|
1064 |
|
|
frame $w.config.f
|
1065 |
|
|
pack $w.config.canvas -side right -fill y
|
1066 |
|
|
|
1067 |
|
|
|
1068 |
|
|
bool $w.config.f 6 0 "Network device support" CONFIG_NETDEVICES
|
1069 |
|
|
tristate $w.config.f 6 1 "Dummy net driver support" CONFIG_DUMMY
|
1070 |
|
|
tristate $w.config.f 6 2 "SLIP (serial line) support" CONFIG_SLIP
|
1071 |
|
|
bool $w.config.f 6 3 " CSLIP compressed headers" CONFIG_SLIP_COMPRESSED
|
1072 |
|
|
bool $w.config.f 6 4 " Keepalive and linefill" CONFIG_SLIP_SMART
|
1073 |
|
|
bool $w.config.f 6 5 " Six bit SLIP encapsulation" CONFIG_SLIP_MODE_SLIP6
|
1074 |
|
|
tristate $w.config.f 6 6 "PPP (point-to-point) support" CONFIG_PPP
|
1075 |
|
|
tristate $w.config.f 6 7 "EQL (serial line load balancing) support" CONFIG_EQUALIZER
|
1076 |
|
|
bool $w.config.f 6 8 "Open ethernet core" CONFIG_OETH
|
1077 |
|
|
|
1078 |
|
|
|
1079 |
|
|
|
1080 |
|
|
focus $w
|
1081 |
|
|
update_menu6 $w.config.f
|
1082 |
|
|
global winx; global winy
|
1083 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
1084 |
|
|
wm geometry $w +$winx+$winy
|
1085 |
|
|
update idletasks
|
1086 |
|
|
$w.config.canvas create window 0 0 -anchor nw -window $w.config.f
|
1087 |
|
|
|
1088 |
|
|
$w.config.canvas configure \
|
1089 |
|
|
-width [expr [winfo reqwidth $w.config.f] + 1]\
|
1090 |
|
|
-scrollregion "-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \
|
1091 |
|
|
[expr [winfo reqheight $w.config.f] + 1]"
|
1092 |
|
|
|
1093 |
|
|
set winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]
|
1094 |
|
|
set scry [expr [winfo screenh $w] / 2]
|
1095 |
|
|
set maxy [expr [winfo screenh $w] * 3 / 4]
|
1096 |
|
|
set canvtotal [expr [winfo reqh $w.config.f] + 2]
|
1097 |
|
|
if [expr $winy + $canvtotal < $maxy] {
|
1098 |
|
|
$w.config.canvas configure -height $canvtotal
|
1099 |
|
|
} else {
|
1100 |
|
|
$w.config.canvas configure -height [expr $scry - $winy]
|
1101 |
|
|
}
|
1102 |
|
|
update idletasks
|
1103 |
|
|
wm maxsize $w [winfo width $w] [winfo screenheight $w]
|
1104 |
|
|
wm minsize $w [winfo width $w] 100
|
1105 |
|
|
|
1106 |
|
|
wm deiconify $w
|
1107 |
|
|
}
|
1108 |
|
|
|
1109 |
|
|
|
1110 |
|
|
proc update_menu6 {w} {
|
1111 |
|
|
update_define
|
1112 |
|
|
global CONFIG_NET; vfix CONFIG_NET
|
1113 |
|
|
global CONFIG_NETDEVICES; vfix CONFIG_NETDEVICES
|
1114 |
|
|
if {($CONFIG_NET == 1)} then { .menu6.config.f.x0.y configure -state normal;.menu6.config.f.x0.n configure -state normal;.menu6.config.f.x0.l configure -state normal;set CONFIG_NETDEVICES [expr $CONFIG_NETDEVICES&15];} else { .menu6.config.f.x0.y configure -state disabled;.menu6.config.f.x0.n configure -state disabled;.menu6.config.f.x0.l configure -state disabled;set CONFIG_NETDEVICES [expr $CONFIG_NETDEVICES|16];}
|
1115 |
|
|
global CONFIG_DUMMY; vfix CONFIG_DUMMY
|
1116 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1)} then { .menu6.config.f.x1.y configure -state normal;.menu6.config.f.x1.n configure -state normal;.menu6.config.f.x1.m configure -state normal;.menu6.config.f.x1.l configure -state normal;set CONFIG_DUMMY [expr $CONFIG_DUMMY&15];} else { .menu6.config.f.x1.y configure -state disabled;.menu6.config.f.x1.n configure -state disabled;.menu6.config.f.x1.m configure -state disabled;.menu6.config.f.x1.l configure -state disabled;set CONFIG_DUMMY [expr $CONFIG_DUMMY|16];}
|
1117 |
|
|
global CONFIG_SLIP; vfix CONFIG_SLIP
|
1118 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1)} then { .menu6.config.f.x2.y configure -state normal;.menu6.config.f.x2.n configure -state normal;.menu6.config.f.x2.m configure -state normal;.menu6.config.f.x2.l configure -state normal;set CONFIG_SLIP [expr $CONFIG_SLIP&15];} else { .menu6.config.f.x2.y configure -state disabled;.menu6.config.f.x2.n configure -state disabled;.menu6.config.f.x2.m configure -state disabled;.menu6.config.f.x2.l configure -state disabled;set CONFIG_SLIP [expr $CONFIG_SLIP|16];}
|
1119 |
|
|
global CONFIG_SLIP_COMPRESSED; vfix CONFIG_SLIP_COMPRESSED
|
1120 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1) && ($CONFIG_SLIP != 0)} then { .menu6.config.f.x3.y configure -state normal;.menu6.config.f.x3.n configure -state normal;.menu6.config.f.x3.l configure -state normal;set CONFIG_SLIP_COMPRESSED [expr $CONFIG_SLIP_COMPRESSED&15];} else { .menu6.config.f.x3.y configure -state disabled;.menu6.config.f.x3.n configure -state disabled;.menu6.config.f.x3.l configure -state disabled;set CONFIG_SLIP_COMPRESSED [expr $CONFIG_SLIP_COMPRESSED|16];}
|
1121 |
|
|
global CONFIG_SLIP_SMART; vfix CONFIG_SLIP_SMART
|
1122 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1) && ($CONFIG_SLIP != 0)} then { .menu6.config.f.x4.y configure -state normal;.menu6.config.f.x4.n configure -state normal;.menu6.config.f.x4.l configure -state normal;set CONFIG_SLIP_SMART [expr $CONFIG_SLIP_SMART&15];} else { .menu6.config.f.x4.y configure -state disabled;.menu6.config.f.x4.n configure -state disabled;.menu6.config.f.x4.l configure -state disabled;set CONFIG_SLIP_SMART [expr $CONFIG_SLIP_SMART|16];}
|
1123 |
|
|
global CONFIG_SLIP_MODE_SLIP6; vfix CONFIG_SLIP_MODE_SLIP6
|
1124 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1) && ($CONFIG_SLIP != 0)} then { .menu6.config.f.x5.y configure -state normal;.menu6.config.f.x5.n configure -state normal;.menu6.config.f.x5.l configure -state normal;set CONFIG_SLIP_MODE_SLIP6 [expr $CONFIG_SLIP_MODE_SLIP6&15];} else { .menu6.config.f.x5.y configure -state disabled;.menu6.config.f.x5.n configure -state disabled;.menu6.config.f.x5.l configure -state disabled;set CONFIG_SLIP_MODE_SLIP6 [expr $CONFIG_SLIP_MODE_SLIP6|16];}
|
1125 |
|
|
global CONFIG_PPP; vfix CONFIG_PPP
|
1126 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1)} then { .menu6.config.f.x6.y configure -state normal;.menu6.config.f.x6.n configure -state normal;.menu6.config.f.x6.m configure -state normal;.menu6.config.f.x6.l configure -state normal;set CONFIG_PPP [expr $CONFIG_PPP&15];} else { .menu6.config.f.x6.y configure -state disabled;.menu6.config.f.x6.n configure -state disabled;.menu6.config.f.x6.m configure -state disabled;.menu6.config.f.x6.l configure -state disabled;set CONFIG_PPP [expr $CONFIG_PPP|16];}
|
1127 |
|
|
global CONFIG_EQUALIZER; vfix CONFIG_EQUALIZER
|
1128 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1)} then { .menu6.config.f.x7.y configure -state normal;.menu6.config.f.x7.n configure -state normal;.menu6.config.f.x7.m configure -state normal;.menu6.config.f.x7.l configure -state normal;set CONFIG_EQUALIZER [expr $CONFIG_EQUALIZER&15];} else { .menu6.config.f.x7.y configure -state disabled;.menu6.config.f.x7.n configure -state disabled;.menu6.config.f.x7.m configure -state disabled;.menu6.config.f.x7.l configure -state disabled;set CONFIG_EQUALIZER [expr $CONFIG_EQUALIZER|16];}
|
1129 |
|
|
global CONFIG_OETH; vfix CONFIG_OETH
|
1130 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1)} then { .menu6.config.f.x8.y configure -state normal;.menu6.config.f.x8.n configure -state normal;.menu6.config.f.x8.l configure -state normal;set CONFIG_OETH [expr $CONFIG_OETH&15];} else { .menu6.config.f.x8.y configure -state disabled;.menu6.config.f.x8.n configure -state disabled;.menu6.config.f.x8.l configure -state disabled;set CONFIG_OETH [expr $CONFIG_OETH|16];}
|
1131 |
|
|
}
|
1132 |
|
|
|
1133 |
|
|
|
1134 |
|
|
menu_option menu7 7 "Filesystems"
|
1135 |
|
|
proc menu7 {w title} {
|
1136 |
|
|
catch {destroy $w}
|
1137 |
|
|
toplevel $w -class Dialog
|
1138 |
|
|
wm withdraw $w
|
1139 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
1140 |
|
|
"Filesystems" -relief raised
|
1141 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
1142 |
|
|
wm title $w "Filesystems"
|
1143 |
|
|
|
1144 |
|
|
set oldFocus [focus]
|
1145 |
|
|
frame $w.f
|
1146 |
|
|
button $w.f.back -text "Main Menu" \
|
1147 |
|
|
-width 15 -command "destroy $w; focus $oldFocus; update_mainmenu $w"
|
1148 |
|
|
button $w.f.next -text "Next" \
|
1149 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu8 .menu8 \"$title\""
|
1150 |
|
|
button $w.f.prev -text "Prev" \
|
1151 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu6 .menu6 \"$title\""
|
1152 |
|
|
pack $w.f.back $w.f.next $w.f.prev -side left -expand on
|
1153 |
|
|
pack $w.f -pady 10 -side bottom -anchor w -fill x
|
1154 |
|
|
frame $w.topline -relief ridge -borderwidth 2 -height 2
|
1155 |
|
|
pack $w.topline -side top -fill x
|
1156 |
|
|
|
1157 |
|
|
frame $w.botline -relief ridge -borderwidth 2 -height 2
|
1158 |
|
|
pack $w.botline -side bottom -fill x
|
1159 |
|
|
|
1160 |
|
|
frame $w.config
|
1161 |
|
|
pack $w.config -fill y -expand on
|
1162 |
|
|
|
1163 |
|
|
scrollbar $w.config.vscroll -command "$w.config.canvas yview"
|
1164 |
|
|
pack $w.config.vscroll -side right -fill y
|
1165 |
|
|
|
1166 |
|
|
canvas $w.config.canvas -height 1\
|
1167 |
|
|
-relief flat -borderwidth 0 -yscrollcommand "$w.config.vscroll set" \
|
1168 |
|
|
-width [expr [winfo screenwidth .] * 1 / 2]
|
1169 |
|
|
frame $w.config.f
|
1170 |
|
|
pack $w.config.canvas -side right -fill y
|
1171 |
|
|
|
1172 |
|
|
|
1173 |
|
|
bool $w.config.f 7 0 "Quota support" CONFIG_QUOTA
|
1174 |
|
|
tristate $w.config.f 7 1 "Minix fs support" CONFIG_MINIX_FS
|
1175 |
|
|
tristate $w.config.f 7 2 "Extended fs support" CONFIG_EXT_FS
|
1176 |
|
|
tristate $w.config.f 7 3 "Second extended fs support" CONFIG_EXT2_FS
|
1177 |
|
|
tristate $w.config.f 7 4 "xiafs filesystem support" CONFIG_XIA_FS
|
1178 |
|
|
tristate $w.config.f 7 5 "Native language support (Needed for FAT and ISO9660)" CONFIG_NLS
|
1179 |
|
|
dep_tristate $w.config.f 7 6 "ISO9660 cdrom filesystem support" CONFIG_ISO9660_FS CONFIG_NLS
|
1180 |
|
|
dep_tristate $w.config.f 7 7 "DOS FAT fs support" CONFIG_FAT_FS CONFIG_NLS
|
1181 |
|
|
dep_tristate $w.config.f 7 8 "MSDOS fs support" CONFIG_MSDOS_FS CONFIG_FAT_FS
|
1182 |
|
|
dep_tristate $w.config.f 7 9 "umsdos: Unix like fs on top of std MSDOS FAT fs" CONFIG_UMSDOS_FS CONFIG_MSDOS_FS
|
1183 |
|
|
dep_tristate $w.config.f 7 10 "VFAT (Windows-95) fs support" CONFIG_VFAT_FS CONFIG_FAT_FS
|
1184 |
|
|
|
1185 |
|
|
|
1186 |
|
|
|
1187 |
|
|
focus $w
|
1188 |
|
|
update_menu7 $w.config.f
|
1189 |
|
|
global winx; global winy
|
1190 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
1191 |
|
|
wm geometry $w +$winx+$winy
|
1192 |
|
|
update idletasks
|
1193 |
|
|
$w.config.canvas create window 0 0 -anchor nw -window $w.config.f
|
1194 |
|
|
|
1195 |
|
|
$w.config.canvas configure \
|
1196 |
|
|
-width [expr [winfo reqwidth $w.config.f] + 1]\
|
1197 |
|
|
-scrollregion "-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \
|
1198 |
|
|
[expr [winfo reqheight $w.config.f] + 1]"
|
1199 |
|
|
|
1200 |
|
|
set winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]
|
1201 |
|
|
set scry [expr [winfo screenh $w] / 2]
|
1202 |
|
|
set maxy [expr [winfo screenh $w] * 3 / 4]
|
1203 |
|
|
set canvtotal [expr [winfo reqh $w.config.f] + 2]
|
1204 |
|
|
if [expr $winy + $canvtotal < $maxy] {
|
1205 |
|
|
$w.config.canvas configure -height $canvtotal
|
1206 |
|
|
} else {
|
1207 |
|
|
$w.config.canvas configure -height [expr $scry - $winy]
|
1208 |
|
|
}
|
1209 |
|
|
update idletasks
|
1210 |
|
|
wm maxsize $w [winfo width $w] [winfo screenheight $w]
|
1211 |
|
|
wm minsize $w [winfo width $w] 100
|
1212 |
|
|
|
1213 |
|
|
wm deiconify $w
|
1214 |
|
|
}
|
1215 |
|
|
|
1216 |
|
|
|
1217 |
|
|
proc update_menu7 {w} {
|
1218 |
|
|
update_define
|
1219 |
|
|
global CONFIG_NLS; vfix CONFIG_NLS
|
1220 |
|
|
global CONFIG_ISO9660_FS; vfix CONFIG_ISO9660_FS
|
1221 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1222 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu7.config.f.x6.y configure -state disabled;} else {.menu7.config.f.x6.y configure -state normal;}; .menu7.config.f.x6.n configure -state normal;.menu7.config.f.x6.m configure -state normal;.menu7.config.f.x6.l configure -state normal;set CONFIG_ISO9660_FS [expr $CONFIG_ISO9660_FS&15];} else { .menu7.config.f.x6.y configure -state disabled;.menu7.config.f.x6.n configure -state disabled;.menu7.config.f.x6.m configure -state disabled;.menu7.config.f.x6.l configure -state disabled;set CONFIG_ISO9660_FS [expr $CONFIG_ISO9660_FS|16];}
|
1223 |
|
|
global CONFIG_FAT_FS; vfix CONFIG_FAT_FS
|
1224 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1225 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu7.config.f.x7.y configure -state disabled;} else {.menu7.config.f.x7.y configure -state normal;}; .menu7.config.f.x7.n configure -state normal;.menu7.config.f.x7.m configure -state normal;.menu7.config.f.x7.l configure -state normal;set CONFIG_FAT_FS [expr $CONFIG_FAT_FS&15];} else { .menu7.config.f.x7.y configure -state disabled;.menu7.config.f.x7.n configure -state disabled;.menu7.config.f.x7.m configure -state disabled;.menu7.config.f.x7.l configure -state disabled;set CONFIG_FAT_FS [expr $CONFIG_FAT_FS|16];}
|
1226 |
|
|
global CONFIG_MSDOS_FS; vfix CONFIG_MSDOS_FS
|
1227 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_FAT_FS == 1 || $CONFIG_FAT_FS == 2)} then { global CONFIG_FAT_FS; vfix CONFIG_FAT_FS
|
1228 |
|
|
if { $CONFIG_FAT_FS != 1 && $CONFIG_FAT_FS != 0 } then {.menu7.config.f.x8.y configure -state disabled;} else {.menu7.config.f.x8.y configure -state normal;}; .menu7.config.f.x8.n configure -state normal;.menu7.config.f.x8.m configure -state normal;.menu7.config.f.x8.l configure -state normal;set CONFIG_MSDOS_FS [expr $CONFIG_MSDOS_FS&15];} else { .menu7.config.f.x8.y configure -state disabled;.menu7.config.f.x8.n configure -state disabled;.menu7.config.f.x8.m configure -state disabled;.menu7.config.f.x8.l configure -state disabled;set CONFIG_MSDOS_FS [expr $CONFIG_MSDOS_FS|16];}
|
1229 |
|
|
global CONFIG_UMSDOS_FS; vfix CONFIG_UMSDOS_FS
|
1230 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_MSDOS_FS == 1 || $CONFIG_MSDOS_FS == 2)} then { global CONFIG_MSDOS_FS; vfix CONFIG_MSDOS_FS
|
1231 |
|
|
if { $CONFIG_MSDOS_FS != 1 && $CONFIG_MSDOS_FS != 0 } then {.menu7.config.f.x9.y configure -state disabled;} else {.menu7.config.f.x9.y configure -state normal;}; .menu7.config.f.x9.n configure -state normal;.menu7.config.f.x9.m configure -state normal;.menu7.config.f.x9.l configure -state normal;set CONFIG_UMSDOS_FS [expr $CONFIG_UMSDOS_FS&15];} else { .menu7.config.f.x9.y configure -state disabled;.menu7.config.f.x9.n configure -state disabled;.menu7.config.f.x9.m configure -state disabled;.menu7.config.f.x9.l configure -state disabled;set CONFIG_UMSDOS_FS [expr $CONFIG_UMSDOS_FS|16];}
|
1232 |
|
|
global CONFIG_VFAT_FS; vfix CONFIG_VFAT_FS
|
1233 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_FAT_FS == 1 || $CONFIG_FAT_FS == 2)} then { global CONFIG_FAT_FS; vfix CONFIG_FAT_FS
|
1234 |
|
|
if { $CONFIG_FAT_FS != 1 && $CONFIG_FAT_FS != 0 } then {.menu7.config.f.x10.y configure -state disabled;} else {.menu7.config.f.x10.y configure -state normal;}; .menu7.config.f.x10.n configure -state normal;.menu7.config.f.x10.m configure -state normal;.menu7.config.f.x10.l configure -state normal;set CONFIG_VFAT_FS [expr $CONFIG_VFAT_FS&15];} else { .menu7.config.f.x10.y configure -state disabled;.menu7.config.f.x10.n configure -state disabled;.menu7.config.f.x10.m configure -state disabled;.menu7.config.f.x10.l configure -state disabled;set CONFIG_VFAT_FS [expr $CONFIG_VFAT_FS|16];}
|
1235 |
|
|
}
|
1236 |
|
|
|
1237 |
|
|
|
1238 |
|
|
menu_option menu8 8 "Select available code pages"
|
1239 |
|
|
proc menu8 {w title} {
|
1240 |
|
|
catch {destroy $w}
|
1241 |
|
|
toplevel $w -class Dialog
|
1242 |
|
|
wm withdraw $w
|
1243 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
1244 |
|
|
"Select available code pages" -relief raised
|
1245 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
1246 |
|
|
wm title $w "Select available code pages"
|
1247 |
|
|
|
1248 |
|
|
set oldFocus [focus]
|
1249 |
|
|
frame $w.f
|
1250 |
|
|
button $w.f.back -text "Main Menu" \
|
1251 |
|
|
-width 15 -command "destroy $w; focus $oldFocus; update_mainmenu $w"
|
1252 |
|
|
button $w.f.next -text "Next" \
|
1253 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu9 .menu9 \"$title\""
|
1254 |
|
|
button $w.f.prev -text "Prev" \
|
1255 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu7 .menu7 \"$title\""
|
1256 |
|
|
pack $w.f.back $w.f.next $w.f.prev -side left -expand on
|
1257 |
|
|
pack $w.f -pady 10 -side bottom -anchor w -fill x
|
1258 |
|
|
frame $w.topline -relief ridge -borderwidth 2 -height 2
|
1259 |
|
|
pack $w.topline -side top -fill x
|
1260 |
|
|
|
1261 |
|
|
frame $w.botline -relief ridge -borderwidth 2 -height 2
|
1262 |
|
|
pack $w.botline -side bottom -fill x
|
1263 |
|
|
|
1264 |
|
|
frame $w.config
|
1265 |
|
|
pack $w.config -fill y -expand on
|
1266 |
|
|
|
1267 |
|
|
scrollbar $w.config.vscroll -command "$w.config.canvas yview"
|
1268 |
|
|
pack $w.config.vscroll -side right -fill y
|
1269 |
|
|
|
1270 |
|
|
canvas $w.config.canvas -height 1\
|
1271 |
|
|
-relief flat -borderwidth 0 -yscrollcommand "$w.config.vscroll set" \
|
1272 |
|
|
-width [expr [winfo screenwidth .] * 1 / 2]
|
1273 |
|
|
frame $w.config.f
|
1274 |
|
|
pack $w.config.canvas -side right -fill y
|
1275 |
|
|
|
1276 |
|
|
|
1277 |
|
|
dep_tristate $w.config.f 8 0 "Codepage 437 (United States, Canada)" CONFIG_NLS_CODEPAGE_437 CONFIG_NLS
|
1278 |
|
|
dep_tristate $w.config.f 8 1 "Codepage 737 (Greek)" CONFIG_NLS_CODEPAGE_737 CONFIG_NLS
|
1279 |
|
|
dep_tristate $w.config.f 8 2 "Codepage 775 (Baltic Rim)" CONFIG_NLS_CODEPAGE_775 CONFIG_NLS
|
1280 |
|
|
dep_tristate $w.config.f 8 3 "Codepage 850 (Europe)" CONFIG_NLS_CODEPAGE_850 CONFIG_NLS
|
1281 |
|
|
dep_tristate $w.config.f 8 4 "Codepage 852 (Central/Eastern Europe)" CONFIG_NLS_CODEPAGE_852 CONFIG_NLS
|
1282 |
|
|
dep_tristate $w.config.f 8 5 "Codepage 855 (Cyrillic)" CONFIG_NLS_CODEPAGE_855 CONFIG_NLS
|
1283 |
|
|
dep_tristate $w.config.f 8 6 "Codepage 857 (Turkish)" CONFIG_NLS_CODEPAGE_857 CONFIG_NLS
|
1284 |
|
|
dep_tristate $w.config.f 8 7 "Codepage 860 (Portugese)" CONFIG_NLS_CODEPAGE_860 CONFIG_NLS
|
1285 |
|
|
dep_tristate $w.config.f 8 8 "Codepage 861 (Icelandic)" CONFIG_NLS_CODEPAGE_861 CONFIG_NLS
|
1286 |
|
|
dep_tristate $w.config.f 8 9 "Codepage 862 (Hebrew)" CONFIG_NLS_CODEPAGE_862 CONFIG_NLS
|
1287 |
|
|
dep_tristate $w.config.f 8 10 "Codepage 863 (Canadian French)" CONFIG_NLS_CODEPAGE_863 CONFIG_NLS
|
1288 |
|
|
dep_tristate $w.config.f 8 11 "Codepage 864 (Arabic)" CONFIG_NLS_CODEPAGE_864 CONFIG_NLS
|
1289 |
|
|
dep_tristate $w.config.f 8 12 "Codepage 865 (Nordic European)" CONFIG_NLS_CODEPAGE_865 CONFIG_NLS
|
1290 |
|
|
dep_tristate $w.config.f 8 13 "Codepage 866 (Cyrillic/Russian)" CONFIG_NLS_CODEPAGE_866 CONFIG_NLS
|
1291 |
|
|
dep_tristate $w.config.f 8 14 "Codepage 869 (Greek)" CONFIG_NLS_CODEPAGE_869 CONFIG_NLS
|
1292 |
|
|
dep_tristate $w.config.f 8 15 "Codepage 874 (Thai)" CONFIG_NLS_CODEPAGE_874 CONFIG_NLS
|
1293 |
|
|
dep_tristate $w.config.f 8 16 "NLS ISO 8859-1 (Latin 1; Western Europe)" CONFIG_NLS_ISO8859_1 CONFIG_NLS
|
1294 |
|
|
dep_tristate $w.config.f 8 17 "NLS ISO 8859-2 (Latin 2; Slavic/Central European)" CONFIG_NLS_ISO8859_2 CONFIG_NLS
|
1295 |
|
|
dep_tristate $w.config.f 8 18 "NLS ISO 8859-3 (Latin 3; Esperanto, Galician, Maltese, Turkish)" CONFIG_NLS_ISO8859_3 CONFIG_NLS
|
1296 |
|
|
dep_tristate $w.config.f 8 19 "NLS ISO 8859-4 (Latin 4; Estonian, Latvian, Lithuanian)" CONFIG_NLS_ISO8859_4 CONFIG_NLS
|
1297 |
|
|
dep_tristate $w.config.f 8 20 "NLS ISO 8859-5 (Cyrillic)" CONFIG_NLS_ISO8859_5 CONFIG_NLS
|
1298 |
|
|
dep_tristate $w.config.f 8 21 "NLS ISO 8859-6 (Arabic)" CONFIG_NLS_ISO8859_6 CONFIG_NLS
|
1299 |
|
|
dep_tristate $w.config.f 8 22 "NLS ISO 8859-7 (Modern Greek)" CONFIG_NLS_ISO8859_7 CONFIG_NLS
|
1300 |
|
|
dep_tristate $w.config.f 8 23 "NLS ISO 8859-8 (Hebrew)" CONFIG_NLS_ISO8859_8 CONFIG_NLS
|
1301 |
|
|
dep_tristate $w.config.f 8 24 "NLS ISO 8859-9 (Latin 5; Turkey)" CONFIG_NLS_ISO8859_9 CONFIG_NLS
|
1302 |
|
|
dep_tristate $w.config.f 8 25 "NLS ISO 8859-15 (Latin 9; Western European Languages with Euro)" CONFIG_NLS_ISO8859_15 CONFIG_NLS
|
1303 |
|
|
dep_tristate $w.config.f 8 26 "NLS KOI8-R (Russian)" CONFIG_NLS_KOI8_R CONFIG_NLS
|
1304 |
|
|
bool $w.config.f 8 27 "/proc filesystem support" CONFIG_PROC_FS
|
1305 |
|
|
tristate $w.config.f 8 28 "NFS filesystem support" CONFIG_NFS_FS
|
1306 |
|
|
bool $w.config.f 8 29 " Root file system on NFS" CONFIG_ROOT_NFS
|
1307 |
|
|
bool $w.config.f 8 30 " BOOTP support" CONFIG_RNFS_BOOTP
|
1308 |
|
|
bool $w.config.f 8 31 " RARP support" CONFIG_RNFS_RARP
|
1309 |
|
|
tristate $w.config.f 8 32 "SMB filesystem support (to mount WfW shares etc..)" CONFIG_SMB_FS
|
1310 |
|
|
bool $w.config.f 8 33 "SMB Win95 bug work-around" CONFIG_SMB_WIN95
|
1311 |
|
|
tristate $w.config.f 8 34 "NCP filesystem support (to mount NetWare volumes)" CONFIG_NCP_FS
|
1312 |
|
|
bool $w.config.f 8 35 " Packet singatures" CONFIG_NCPFS_PACKET_SIGNING
|
1313 |
|
|
bool $w.config.f 8 36 " Proprietary file locking" CONFIG_NCPFS_IOCTL_LOCKING
|
1314 |
|
|
bool $w.config.f 8 37 " Clear remove/delete inhibit when needed" CONFIG_NCPFS_STRONG
|
1315 |
|
|
bool $w.config.f 8 38 " Use NFS namespace if available" CONFIG_NCPFS_NFS_NS
|
1316 |
|
|
bool $w.config.f 8 39 " Use LONG (OS/2) namespace if available" CONFIG_NCPFS_OS2_NS
|
1317 |
|
|
bool $w.config.f 8 40 " Allow mounting of volume subdirectories" CONFIG_NCPFS_MOUNT_SUBDIR
|
1318 |
|
|
tristate $w.config.f 8 41 "OS/2 HPFS filesystem support (read only)" CONFIG_HPFS_FS
|
1319 |
|
|
tristate $w.config.f 8 42 "System V and Coherent filesystem support" CONFIG_SYSV_FS
|
1320 |
|
|
tristate $w.config.f 8 43 "Kernel automounter support (experimental)" CONFIG_AUTOFS_FS
|
1321 |
|
|
tristate $w.config.f 8 44 "Amiga FFS filesystem support (EXPERIMENTAL)" CONFIG_AFFS_FS
|
1322 |
|
|
tristate $w.config.f 8 45 "ROM filesystem support" CONFIG_ROMFS_FS
|
1323 |
|
|
tristate $w.config.f 8 46 "Journaling FLASH filesystem support" CONFIG_JFFS_FS
|
1324 |
|
|
tristate $w.config.f 8 47 "UFS filesystem support (read only)" CONFIG_UFS_FS
|
1325 |
|
|
bool $w.config.f 8 48 "BSD disklabel (FreeBSD partition tables) support" CONFIG_BSD_DISKLABEL
|
1326 |
|
|
bool $w.config.f 8 49 "SMD disklabel (Sun partition tables) support" CONFIG_SMD_DISKLABEL
|
1327 |
|
|
|
1328 |
|
|
|
1329 |
|
|
|
1330 |
|
|
focus $w
|
1331 |
|
|
update_menu8 $w.config.f
|
1332 |
|
|
global winx; global winy
|
1333 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
1334 |
|
|
wm geometry $w +$winx+$winy
|
1335 |
|
|
update idletasks
|
1336 |
|
|
$w.config.canvas create window 0 0 -anchor nw -window $w.config.f
|
1337 |
|
|
|
1338 |
|
|
$w.config.canvas configure \
|
1339 |
|
|
-width [expr [winfo reqwidth $w.config.f] + 1]\
|
1340 |
|
|
-scrollregion "-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \
|
1341 |
|
|
[expr [winfo reqheight $w.config.f] + 1]"
|
1342 |
|
|
|
1343 |
|
|
set winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]
|
1344 |
|
|
set scry [expr [winfo screenh $w] / 2]
|
1345 |
|
|
set maxy [expr [winfo screenh $w] * 3 / 4]
|
1346 |
|
|
set canvtotal [expr [winfo reqh $w.config.f] + 2]
|
1347 |
|
|
if [expr $winy + $canvtotal < $maxy] {
|
1348 |
|
|
$w.config.canvas configure -height $canvtotal
|
1349 |
|
|
} else {
|
1350 |
|
|
$w.config.canvas configure -height [expr $scry - $winy]
|
1351 |
|
|
}
|
1352 |
|
|
update idletasks
|
1353 |
|
|
wm maxsize $w [winfo width $w] [winfo screenheight $w]
|
1354 |
|
|
wm minsize $w [winfo width $w] 100
|
1355 |
|
|
|
1356 |
|
|
wm deiconify $w
|
1357 |
|
|
}
|
1358 |
|
|
|
1359 |
|
|
|
1360 |
|
|
proc update_menu8 {w} {
|
1361 |
|
|
update_define
|
1362 |
|
|
global CONFIG_NLS; vfix CONFIG_NLS
|
1363 |
|
|
global CONFIG_NLS_CODEPAGE_437; vfix CONFIG_NLS_CODEPAGE_437
|
1364 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1365 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x0.y configure -state disabled;} else {.menu8.config.f.x0.y configure -state normal;}; .menu8.config.f.x0.n configure -state normal;.menu8.config.f.x0.m configure -state normal;.menu8.config.f.x0.l configure -state normal;set CONFIG_NLS_CODEPAGE_437 [expr $CONFIG_NLS_CODEPAGE_437&15];} else { .menu8.config.f.x0.y configure -state disabled;.menu8.config.f.x0.n configure -state disabled;.menu8.config.f.x0.m configure -state disabled;.menu8.config.f.x0.l configure -state disabled;set CONFIG_NLS_CODEPAGE_437 [expr $CONFIG_NLS_CODEPAGE_437|16];}
|
1366 |
|
|
global CONFIG_NLS_CODEPAGE_737; vfix CONFIG_NLS_CODEPAGE_737
|
1367 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1368 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x1.y configure -state disabled;} else {.menu8.config.f.x1.y configure -state normal;}; .menu8.config.f.x1.n configure -state normal;.menu8.config.f.x1.m configure -state normal;.menu8.config.f.x1.l configure -state normal;set CONFIG_NLS_CODEPAGE_737 [expr $CONFIG_NLS_CODEPAGE_737&15];} else { .menu8.config.f.x1.y configure -state disabled;.menu8.config.f.x1.n configure -state disabled;.menu8.config.f.x1.m configure -state disabled;.menu8.config.f.x1.l configure -state disabled;set CONFIG_NLS_CODEPAGE_737 [expr $CONFIG_NLS_CODEPAGE_737|16];}
|
1369 |
|
|
global CONFIG_NLS_CODEPAGE_775; vfix CONFIG_NLS_CODEPAGE_775
|
1370 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1371 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x2.y configure -state disabled;} else {.menu8.config.f.x2.y configure -state normal;}; .menu8.config.f.x2.n configure -state normal;.menu8.config.f.x2.m configure -state normal;.menu8.config.f.x2.l configure -state normal;set CONFIG_NLS_CODEPAGE_775 [expr $CONFIG_NLS_CODEPAGE_775&15];} else { .menu8.config.f.x2.y configure -state disabled;.menu8.config.f.x2.n configure -state disabled;.menu8.config.f.x2.m configure -state disabled;.menu8.config.f.x2.l configure -state disabled;set CONFIG_NLS_CODEPAGE_775 [expr $CONFIG_NLS_CODEPAGE_775|16];}
|
1372 |
|
|
global CONFIG_NLS_CODEPAGE_850; vfix CONFIG_NLS_CODEPAGE_850
|
1373 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1374 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x3.y configure -state disabled;} else {.menu8.config.f.x3.y configure -state normal;}; .menu8.config.f.x3.n configure -state normal;.menu8.config.f.x3.m configure -state normal;.menu8.config.f.x3.l configure -state normal;set CONFIG_NLS_CODEPAGE_850 [expr $CONFIG_NLS_CODEPAGE_850&15];} else { .menu8.config.f.x3.y configure -state disabled;.menu8.config.f.x3.n configure -state disabled;.menu8.config.f.x3.m configure -state disabled;.menu8.config.f.x3.l configure -state disabled;set CONFIG_NLS_CODEPAGE_850 [expr $CONFIG_NLS_CODEPAGE_850|16];}
|
1375 |
|
|
global CONFIG_NLS_CODEPAGE_852; vfix CONFIG_NLS_CODEPAGE_852
|
1376 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1377 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x4.y configure -state disabled;} else {.menu8.config.f.x4.y configure -state normal;}; .menu8.config.f.x4.n configure -state normal;.menu8.config.f.x4.m configure -state normal;.menu8.config.f.x4.l configure -state normal;set CONFIG_NLS_CODEPAGE_852 [expr $CONFIG_NLS_CODEPAGE_852&15];} else { .menu8.config.f.x4.y configure -state disabled;.menu8.config.f.x4.n configure -state disabled;.menu8.config.f.x4.m configure -state disabled;.menu8.config.f.x4.l configure -state disabled;set CONFIG_NLS_CODEPAGE_852 [expr $CONFIG_NLS_CODEPAGE_852|16];}
|
1378 |
|
|
global CONFIG_NLS_CODEPAGE_855; vfix CONFIG_NLS_CODEPAGE_855
|
1379 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1380 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x5.y configure -state disabled;} else {.menu8.config.f.x5.y configure -state normal;}; .menu8.config.f.x5.n configure -state normal;.menu8.config.f.x5.m configure -state normal;.menu8.config.f.x5.l configure -state normal;set CONFIG_NLS_CODEPAGE_855 [expr $CONFIG_NLS_CODEPAGE_855&15];} else { .menu8.config.f.x5.y configure -state disabled;.menu8.config.f.x5.n configure -state disabled;.menu8.config.f.x5.m configure -state disabled;.menu8.config.f.x5.l configure -state disabled;set CONFIG_NLS_CODEPAGE_855 [expr $CONFIG_NLS_CODEPAGE_855|16];}
|
1381 |
|
|
global CONFIG_NLS_CODEPAGE_857; vfix CONFIG_NLS_CODEPAGE_857
|
1382 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1383 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x6.y configure -state disabled;} else {.menu8.config.f.x6.y configure -state normal;}; .menu8.config.f.x6.n configure -state normal;.menu8.config.f.x6.m configure -state normal;.menu8.config.f.x6.l configure -state normal;set CONFIG_NLS_CODEPAGE_857 [expr $CONFIG_NLS_CODEPAGE_857&15];} else { .menu8.config.f.x6.y configure -state disabled;.menu8.config.f.x6.n configure -state disabled;.menu8.config.f.x6.m configure -state disabled;.menu8.config.f.x6.l configure -state disabled;set CONFIG_NLS_CODEPAGE_857 [expr $CONFIG_NLS_CODEPAGE_857|16];}
|
1384 |
|
|
global CONFIG_NLS_CODEPAGE_860; vfix CONFIG_NLS_CODEPAGE_860
|
1385 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1386 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x7.y configure -state disabled;} else {.menu8.config.f.x7.y configure -state normal;}; .menu8.config.f.x7.n configure -state normal;.menu8.config.f.x7.m configure -state normal;.menu8.config.f.x7.l configure -state normal;set CONFIG_NLS_CODEPAGE_860 [expr $CONFIG_NLS_CODEPAGE_860&15];} else { .menu8.config.f.x7.y configure -state disabled;.menu8.config.f.x7.n configure -state disabled;.menu8.config.f.x7.m configure -state disabled;.menu8.config.f.x7.l configure -state disabled;set CONFIG_NLS_CODEPAGE_860 [expr $CONFIG_NLS_CODEPAGE_860|16];}
|
1387 |
|
|
global CONFIG_NLS_CODEPAGE_861; vfix CONFIG_NLS_CODEPAGE_861
|
1388 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1389 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x8.y configure -state disabled;} else {.menu8.config.f.x8.y configure -state normal;}; .menu8.config.f.x8.n configure -state normal;.menu8.config.f.x8.m configure -state normal;.menu8.config.f.x8.l configure -state normal;set CONFIG_NLS_CODEPAGE_861 [expr $CONFIG_NLS_CODEPAGE_861&15];} else { .menu8.config.f.x8.y configure -state disabled;.menu8.config.f.x8.n configure -state disabled;.menu8.config.f.x8.m configure -state disabled;.menu8.config.f.x8.l configure -state disabled;set CONFIG_NLS_CODEPAGE_861 [expr $CONFIG_NLS_CODEPAGE_861|16];}
|
1390 |
|
|
global CONFIG_NLS_CODEPAGE_862; vfix CONFIG_NLS_CODEPAGE_862
|
1391 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1392 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x9.y configure -state disabled;} else {.menu8.config.f.x9.y configure -state normal;}; .menu8.config.f.x9.n configure -state normal;.menu8.config.f.x9.m configure -state normal;.menu8.config.f.x9.l configure -state normal;set CONFIG_NLS_CODEPAGE_862 [expr $CONFIG_NLS_CODEPAGE_862&15];} else { .menu8.config.f.x9.y configure -state disabled;.menu8.config.f.x9.n configure -state disabled;.menu8.config.f.x9.m configure -state disabled;.menu8.config.f.x9.l configure -state disabled;set CONFIG_NLS_CODEPAGE_862 [expr $CONFIG_NLS_CODEPAGE_862|16];}
|
1393 |
|
|
global CONFIG_NLS_CODEPAGE_863; vfix CONFIG_NLS_CODEPAGE_863
|
1394 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1395 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x10.y configure -state disabled;} else {.menu8.config.f.x10.y configure -state normal;}; .menu8.config.f.x10.n configure -state normal;.menu8.config.f.x10.m configure -state normal;.menu8.config.f.x10.l configure -state normal;set CONFIG_NLS_CODEPAGE_863 [expr $CONFIG_NLS_CODEPAGE_863&15];} else { .menu8.config.f.x10.y configure -state disabled;.menu8.config.f.x10.n configure -state disabled;.menu8.config.f.x10.m configure -state disabled;.menu8.config.f.x10.l configure -state disabled;set CONFIG_NLS_CODEPAGE_863 [expr $CONFIG_NLS_CODEPAGE_863|16];}
|
1396 |
|
|
global CONFIG_NLS_CODEPAGE_864; vfix CONFIG_NLS_CODEPAGE_864
|
1397 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1398 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x11.y configure -state disabled;} else {.menu8.config.f.x11.y configure -state normal;}; .menu8.config.f.x11.n configure -state normal;.menu8.config.f.x11.m configure -state normal;.menu8.config.f.x11.l configure -state normal;set CONFIG_NLS_CODEPAGE_864 [expr $CONFIG_NLS_CODEPAGE_864&15];} else { .menu8.config.f.x11.y configure -state disabled;.menu8.config.f.x11.n configure -state disabled;.menu8.config.f.x11.m configure -state disabled;.menu8.config.f.x11.l configure -state disabled;set CONFIG_NLS_CODEPAGE_864 [expr $CONFIG_NLS_CODEPAGE_864|16];}
|
1399 |
|
|
global CONFIG_NLS_CODEPAGE_865; vfix CONFIG_NLS_CODEPAGE_865
|
1400 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1401 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x12.y configure -state disabled;} else {.menu8.config.f.x12.y configure -state normal;}; .menu8.config.f.x12.n configure -state normal;.menu8.config.f.x12.m configure -state normal;.menu8.config.f.x12.l configure -state normal;set CONFIG_NLS_CODEPAGE_865 [expr $CONFIG_NLS_CODEPAGE_865&15];} else { .menu8.config.f.x12.y configure -state disabled;.menu8.config.f.x12.n configure -state disabled;.menu8.config.f.x12.m configure -state disabled;.menu8.config.f.x12.l configure -state disabled;set CONFIG_NLS_CODEPAGE_865 [expr $CONFIG_NLS_CODEPAGE_865|16];}
|
1402 |
|
|
global CONFIG_NLS_CODEPAGE_866; vfix CONFIG_NLS_CODEPAGE_866
|
1403 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1404 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x13.y configure -state disabled;} else {.menu8.config.f.x13.y configure -state normal;}; .menu8.config.f.x13.n configure -state normal;.menu8.config.f.x13.m configure -state normal;.menu8.config.f.x13.l configure -state normal;set CONFIG_NLS_CODEPAGE_866 [expr $CONFIG_NLS_CODEPAGE_866&15];} else { .menu8.config.f.x13.y configure -state disabled;.menu8.config.f.x13.n configure -state disabled;.menu8.config.f.x13.m configure -state disabled;.menu8.config.f.x13.l configure -state disabled;set CONFIG_NLS_CODEPAGE_866 [expr $CONFIG_NLS_CODEPAGE_866|16];}
|
1405 |
|
|
global CONFIG_NLS_CODEPAGE_869; vfix CONFIG_NLS_CODEPAGE_869
|
1406 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1407 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x14.y configure -state disabled;} else {.menu8.config.f.x14.y configure -state normal;}; .menu8.config.f.x14.n configure -state normal;.menu8.config.f.x14.m configure -state normal;.menu8.config.f.x14.l configure -state normal;set CONFIG_NLS_CODEPAGE_869 [expr $CONFIG_NLS_CODEPAGE_869&15];} else { .menu8.config.f.x14.y configure -state disabled;.menu8.config.f.x14.n configure -state disabled;.menu8.config.f.x14.m configure -state disabled;.menu8.config.f.x14.l configure -state disabled;set CONFIG_NLS_CODEPAGE_869 [expr $CONFIG_NLS_CODEPAGE_869|16];}
|
1408 |
|
|
global CONFIG_NLS_CODEPAGE_874; vfix CONFIG_NLS_CODEPAGE_874
|
1409 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1410 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x15.y configure -state disabled;} else {.menu8.config.f.x15.y configure -state normal;}; .menu8.config.f.x15.n configure -state normal;.menu8.config.f.x15.m configure -state normal;.menu8.config.f.x15.l configure -state normal;set CONFIG_NLS_CODEPAGE_874 [expr $CONFIG_NLS_CODEPAGE_874&15];} else { .menu8.config.f.x15.y configure -state disabled;.menu8.config.f.x15.n configure -state disabled;.menu8.config.f.x15.m configure -state disabled;.menu8.config.f.x15.l configure -state disabled;set CONFIG_NLS_CODEPAGE_874 [expr $CONFIG_NLS_CODEPAGE_874|16];}
|
1411 |
|
|
global CONFIG_NLS_ISO8859_1; vfix CONFIG_NLS_ISO8859_1
|
1412 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1413 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x16.y configure -state disabled;} else {.menu8.config.f.x16.y configure -state normal;}; .menu8.config.f.x16.n configure -state normal;.menu8.config.f.x16.m configure -state normal;.menu8.config.f.x16.l configure -state normal;set CONFIG_NLS_ISO8859_1 [expr $CONFIG_NLS_ISO8859_1&15];} else { .menu8.config.f.x16.y configure -state disabled;.menu8.config.f.x16.n configure -state disabled;.menu8.config.f.x16.m configure -state disabled;.menu8.config.f.x16.l configure -state disabled;set CONFIG_NLS_ISO8859_1 [expr $CONFIG_NLS_ISO8859_1|16];}
|
1414 |
|
|
global CONFIG_NLS_ISO8859_2; vfix CONFIG_NLS_ISO8859_2
|
1415 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1416 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x17.y configure -state disabled;} else {.menu8.config.f.x17.y configure -state normal;}; .menu8.config.f.x17.n configure -state normal;.menu8.config.f.x17.m configure -state normal;.menu8.config.f.x17.l configure -state normal;set CONFIG_NLS_ISO8859_2 [expr $CONFIG_NLS_ISO8859_2&15];} else { .menu8.config.f.x17.y configure -state disabled;.menu8.config.f.x17.n configure -state disabled;.menu8.config.f.x17.m configure -state disabled;.menu8.config.f.x17.l configure -state disabled;set CONFIG_NLS_ISO8859_2 [expr $CONFIG_NLS_ISO8859_2|16];}
|
1417 |
|
|
global CONFIG_NLS_ISO8859_3; vfix CONFIG_NLS_ISO8859_3
|
1418 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1419 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x18.y configure -state disabled;} else {.menu8.config.f.x18.y configure -state normal;}; .menu8.config.f.x18.n configure -state normal;.menu8.config.f.x18.m configure -state normal;.menu8.config.f.x18.l configure -state normal;set CONFIG_NLS_ISO8859_3 [expr $CONFIG_NLS_ISO8859_3&15];} else { .menu8.config.f.x18.y configure -state disabled;.menu8.config.f.x18.n configure -state disabled;.menu8.config.f.x18.m configure -state disabled;.menu8.config.f.x18.l configure -state disabled;set CONFIG_NLS_ISO8859_3 [expr $CONFIG_NLS_ISO8859_3|16];}
|
1420 |
|
|
global CONFIG_NLS_ISO8859_4; vfix CONFIG_NLS_ISO8859_4
|
1421 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1422 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x19.y configure -state disabled;} else {.menu8.config.f.x19.y configure -state normal;}; .menu8.config.f.x19.n configure -state normal;.menu8.config.f.x19.m configure -state normal;.menu8.config.f.x19.l configure -state normal;set CONFIG_NLS_ISO8859_4 [expr $CONFIG_NLS_ISO8859_4&15];} else { .menu8.config.f.x19.y configure -state disabled;.menu8.config.f.x19.n configure -state disabled;.menu8.config.f.x19.m configure -state disabled;.menu8.config.f.x19.l configure -state disabled;set CONFIG_NLS_ISO8859_4 [expr $CONFIG_NLS_ISO8859_4|16];}
|
1423 |
|
|
global CONFIG_NLS_ISO8859_5; vfix CONFIG_NLS_ISO8859_5
|
1424 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1425 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x20.y configure -state disabled;} else {.menu8.config.f.x20.y configure -state normal;}; .menu8.config.f.x20.n configure -state normal;.menu8.config.f.x20.m configure -state normal;.menu8.config.f.x20.l configure -state normal;set CONFIG_NLS_ISO8859_5 [expr $CONFIG_NLS_ISO8859_5&15];} else { .menu8.config.f.x20.y configure -state disabled;.menu8.config.f.x20.n configure -state disabled;.menu8.config.f.x20.m configure -state disabled;.menu8.config.f.x20.l configure -state disabled;set CONFIG_NLS_ISO8859_5 [expr $CONFIG_NLS_ISO8859_5|16];}
|
1426 |
|
|
global CONFIG_NLS_ISO8859_6; vfix CONFIG_NLS_ISO8859_6
|
1427 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1428 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x21.y configure -state disabled;} else {.menu8.config.f.x21.y configure -state normal;}; .menu8.config.f.x21.n configure -state normal;.menu8.config.f.x21.m configure -state normal;.menu8.config.f.x21.l configure -state normal;set CONFIG_NLS_ISO8859_6 [expr $CONFIG_NLS_ISO8859_6&15];} else { .menu8.config.f.x21.y configure -state disabled;.menu8.config.f.x21.n configure -state disabled;.menu8.config.f.x21.m configure -state disabled;.menu8.config.f.x21.l configure -state disabled;set CONFIG_NLS_ISO8859_6 [expr $CONFIG_NLS_ISO8859_6|16];}
|
1429 |
|
|
global CONFIG_NLS_ISO8859_7; vfix CONFIG_NLS_ISO8859_7
|
1430 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1431 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x22.y configure -state disabled;} else {.menu8.config.f.x22.y configure -state normal;}; .menu8.config.f.x22.n configure -state normal;.menu8.config.f.x22.m configure -state normal;.menu8.config.f.x22.l configure -state normal;set CONFIG_NLS_ISO8859_7 [expr $CONFIG_NLS_ISO8859_7&15];} else { .menu8.config.f.x22.y configure -state disabled;.menu8.config.f.x22.n configure -state disabled;.menu8.config.f.x22.m configure -state disabled;.menu8.config.f.x22.l configure -state disabled;set CONFIG_NLS_ISO8859_7 [expr $CONFIG_NLS_ISO8859_7|16];}
|
1432 |
|
|
global CONFIG_NLS_ISO8859_8; vfix CONFIG_NLS_ISO8859_8
|
1433 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1434 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x23.y configure -state disabled;} else {.menu8.config.f.x23.y configure -state normal;}; .menu8.config.f.x23.n configure -state normal;.menu8.config.f.x23.m configure -state normal;.menu8.config.f.x23.l configure -state normal;set CONFIG_NLS_ISO8859_8 [expr $CONFIG_NLS_ISO8859_8&15];} else { .menu8.config.f.x23.y configure -state disabled;.menu8.config.f.x23.n configure -state disabled;.menu8.config.f.x23.m configure -state disabled;.menu8.config.f.x23.l configure -state disabled;set CONFIG_NLS_ISO8859_8 [expr $CONFIG_NLS_ISO8859_8|16];}
|
1435 |
|
|
global CONFIG_NLS_ISO8859_9; vfix CONFIG_NLS_ISO8859_9
|
1436 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1437 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x24.y configure -state disabled;} else {.menu8.config.f.x24.y configure -state normal;}; .menu8.config.f.x24.n configure -state normal;.menu8.config.f.x24.m configure -state normal;.menu8.config.f.x24.l configure -state normal;set CONFIG_NLS_ISO8859_9 [expr $CONFIG_NLS_ISO8859_9&15];} else { .menu8.config.f.x24.y configure -state disabled;.menu8.config.f.x24.n configure -state disabled;.menu8.config.f.x24.m configure -state disabled;.menu8.config.f.x24.l configure -state disabled;set CONFIG_NLS_ISO8859_9 [expr $CONFIG_NLS_ISO8859_9|16];}
|
1438 |
|
|
global CONFIG_NLS_ISO8859_15; vfix CONFIG_NLS_ISO8859_15
|
1439 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1440 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x25.y configure -state disabled;} else {.menu8.config.f.x25.y configure -state normal;}; .menu8.config.f.x25.n configure -state normal;.menu8.config.f.x25.m configure -state normal;.menu8.config.f.x25.l configure -state normal;set CONFIG_NLS_ISO8859_15 [expr $CONFIG_NLS_ISO8859_15&15];} else { .menu8.config.f.x25.y configure -state disabled;.menu8.config.f.x25.n configure -state disabled;.menu8.config.f.x25.m configure -state disabled;.menu8.config.f.x25.l configure -state disabled;set CONFIG_NLS_ISO8859_15 [expr $CONFIG_NLS_ISO8859_15|16];}
|
1441 |
|
|
global CONFIG_NLS_KOI8_R; vfix CONFIG_NLS_KOI8_R
|
1442 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { global CONFIG_NLS; vfix CONFIG_NLS
|
1443 |
|
|
if { $CONFIG_NLS != 1 && $CONFIG_NLS != 0 } then {.menu8.config.f.x26.y configure -state disabled;} else {.menu8.config.f.x26.y configure -state normal;}; .menu8.config.f.x26.n configure -state normal;.menu8.config.f.x26.m configure -state normal;.menu8.config.f.x26.l configure -state normal;set CONFIG_NLS_KOI8_R [expr $CONFIG_NLS_KOI8_R&15];} else { .menu8.config.f.x26.y configure -state disabled;.menu8.config.f.x26.n configure -state disabled;.menu8.config.f.x26.m configure -state disabled;.menu8.config.f.x26.l configure -state disabled;set CONFIG_NLS_KOI8_R [expr $CONFIG_NLS_KOI8_R|16];}
|
1444 |
|
|
global CONFIG_INET; vfix CONFIG_INET
|
1445 |
|
|
global CONFIG_NFS_FS; vfix CONFIG_NFS_FS
|
1446 |
|
|
if {($CONFIG_INET == 1)} then { .menu8.config.f.x28.y configure -state normal;.menu8.config.f.x28.n configure -state normal;.menu8.config.f.x28.m configure -state normal;.menu8.config.f.x28.l configure -state normal;set CONFIG_NFS_FS [expr $CONFIG_NFS_FS&15];} else { .menu8.config.f.x28.y configure -state disabled;.menu8.config.f.x28.n configure -state disabled;.menu8.config.f.x28.m configure -state disabled;.menu8.config.f.x28.l configure -state disabled;set CONFIG_NFS_FS [expr $CONFIG_NFS_FS|16];}
|
1447 |
|
|
global CONFIG_ROOT_NFS; vfix CONFIG_ROOT_NFS
|
1448 |
|
|
if {($CONFIG_INET == 1) && ($CONFIG_NFS_FS == 1)} then { .menu8.config.f.x29.y configure -state normal;.menu8.config.f.x29.n configure -state normal;.menu8.config.f.x29.l configure -state normal;set CONFIG_ROOT_NFS [expr $CONFIG_ROOT_NFS&15];} else { .menu8.config.f.x29.y configure -state disabled;.menu8.config.f.x29.n configure -state disabled;.menu8.config.f.x29.l configure -state disabled;set CONFIG_ROOT_NFS [expr $CONFIG_ROOT_NFS|16];}
|
1449 |
|
|
global CONFIG_RNFS_BOOTP; vfix CONFIG_RNFS_BOOTP
|
1450 |
|
|
if {($CONFIG_INET == 1) && ($CONFIG_NFS_FS == 1) && ($CONFIG_ROOT_NFS == 1)} then { .menu8.config.f.x30.y configure -state normal;.menu8.config.f.x30.n configure -state normal;.menu8.config.f.x30.l configure -state normal;set CONFIG_RNFS_BOOTP [expr $CONFIG_RNFS_BOOTP&15];} else { .menu8.config.f.x30.y configure -state disabled;.menu8.config.f.x30.n configure -state disabled;.menu8.config.f.x30.l configure -state disabled;set CONFIG_RNFS_BOOTP [expr $CONFIG_RNFS_BOOTP|16];}
|
1451 |
|
|
global CONFIG_RNFS_RARP; vfix CONFIG_RNFS_RARP
|
1452 |
|
|
if {($CONFIG_INET == 1) && ($CONFIG_NFS_FS == 1) && ($CONFIG_ROOT_NFS == 1)} then { .menu8.config.f.x31.y configure -state normal;.menu8.config.f.x31.n configure -state normal;.menu8.config.f.x31.l configure -state normal;set CONFIG_RNFS_RARP [expr $CONFIG_RNFS_RARP&15];} else { .menu8.config.f.x31.y configure -state disabled;.menu8.config.f.x31.n configure -state disabled;.menu8.config.f.x31.l configure -state disabled;set CONFIG_RNFS_RARP [expr $CONFIG_RNFS_RARP|16];}
|
1453 |
|
|
global CONFIG_SMB_FS; vfix CONFIG_SMB_FS
|
1454 |
|
|
if {($CONFIG_INET == 1)} then { .menu8.config.f.x32.y configure -state normal;.menu8.config.f.x32.n configure -state normal;.menu8.config.f.x32.m configure -state normal;.menu8.config.f.x32.l configure -state normal;set CONFIG_SMB_FS [expr $CONFIG_SMB_FS&15];} else { .menu8.config.f.x32.y configure -state disabled;.menu8.config.f.x32.n configure -state disabled;.menu8.config.f.x32.m configure -state disabled;.menu8.config.f.x32.l configure -state disabled;set CONFIG_SMB_FS [expr $CONFIG_SMB_FS|16];}
|
1455 |
|
|
global CONFIG_SMB_WIN95; vfix CONFIG_SMB_WIN95
|
1456 |
|
|
if {($CONFIG_INET == 1) && ($CONFIG_SMB_FS != 0)} then { .menu8.config.f.x33.y configure -state normal;.menu8.config.f.x33.n configure -state normal;.menu8.config.f.x33.l configure -state normal;set CONFIG_SMB_WIN95 [expr $CONFIG_SMB_WIN95&15];} else { .menu8.config.f.x33.y configure -state disabled;.menu8.config.f.x33.n configure -state disabled;.menu8.config.f.x33.l configure -state disabled;set CONFIG_SMB_WIN95 [expr $CONFIG_SMB_WIN95|16];}
|
1457 |
|
|
global CONFIG_IPX; vfix CONFIG_IPX
|
1458 |
|
|
global CONFIG_NCP_FS; vfix CONFIG_NCP_FS
|
1459 |
|
|
if {($CONFIG_IPX != 0)} then { .menu8.config.f.x34.y configure -state normal;.menu8.config.f.x34.n configure -state normal;.menu8.config.f.x34.m configure -state normal;.menu8.config.f.x34.l configure -state normal;set CONFIG_NCP_FS [expr $CONFIG_NCP_FS&15];} else { .menu8.config.f.x34.y configure -state disabled;.menu8.config.f.x34.n configure -state disabled;.menu8.config.f.x34.m configure -state disabled;.menu8.config.f.x34.l configure -state disabled;set CONFIG_NCP_FS [expr $CONFIG_NCP_FS|16];}
|
1460 |
|
|
global CONFIG_NCPFS_PACKET_SIGNING; vfix CONFIG_NCPFS_PACKET_SIGNING
|
1461 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { .menu8.config.f.x35.y configure -state normal;.menu8.config.f.x35.n configure -state normal;.menu8.config.f.x35.l configure -state normal;set CONFIG_NCPFS_PACKET_SIGNING [expr $CONFIG_NCPFS_PACKET_SIGNING&15];} else { .menu8.config.f.x35.y configure -state disabled;.menu8.config.f.x35.n configure -state disabled;.menu8.config.f.x35.l configure -state disabled;set CONFIG_NCPFS_PACKET_SIGNING [expr $CONFIG_NCPFS_PACKET_SIGNING|16];}
|
1462 |
|
|
global CONFIG_NCPFS_IOCTL_LOCKING; vfix CONFIG_NCPFS_IOCTL_LOCKING
|
1463 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { .menu8.config.f.x36.y configure -state normal;.menu8.config.f.x36.n configure -state normal;.menu8.config.f.x36.l configure -state normal;set CONFIG_NCPFS_IOCTL_LOCKING [expr $CONFIG_NCPFS_IOCTL_LOCKING&15];} else { .menu8.config.f.x36.y configure -state disabled;.menu8.config.f.x36.n configure -state disabled;.menu8.config.f.x36.l configure -state disabled;set CONFIG_NCPFS_IOCTL_LOCKING [expr $CONFIG_NCPFS_IOCTL_LOCKING|16];}
|
1464 |
|
|
global CONFIG_NCPFS_STRONG; vfix CONFIG_NCPFS_STRONG
|
1465 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { .menu8.config.f.x37.y configure -state normal;.menu8.config.f.x37.n configure -state normal;.menu8.config.f.x37.l configure -state normal;set CONFIG_NCPFS_STRONG [expr $CONFIG_NCPFS_STRONG&15];} else { .menu8.config.f.x37.y configure -state disabled;.menu8.config.f.x37.n configure -state disabled;.menu8.config.f.x37.l configure -state disabled;set CONFIG_NCPFS_STRONG [expr $CONFIG_NCPFS_STRONG|16];}
|
1466 |
|
|
global CONFIG_NCPFS_NFS_NS; vfix CONFIG_NCPFS_NFS_NS
|
1467 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { .menu8.config.f.x38.y configure -state normal;.menu8.config.f.x38.n configure -state normal;.menu8.config.f.x38.l configure -state normal;set CONFIG_NCPFS_NFS_NS [expr $CONFIG_NCPFS_NFS_NS&15];} else { .menu8.config.f.x38.y configure -state disabled;.menu8.config.f.x38.n configure -state disabled;.menu8.config.f.x38.l configure -state disabled;set CONFIG_NCPFS_NFS_NS [expr $CONFIG_NCPFS_NFS_NS|16];}
|
1468 |
|
|
global CONFIG_NCPFS_OS2_NS; vfix CONFIG_NCPFS_OS2_NS
|
1469 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { .menu8.config.f.x39.y configure -state normal;.menu8.config.f.x39.n configure -state normal;.menu8.config.f.x39.l configure -state normal;set CONFIG_NCPFS_OS2_NS [expr $CONFIG_NCPFS_OS2_NS&15];} else { .menu8.config.f.x39.y configure -state disabled;.menu8.config.f.x39.n configure -state disabled;.menu8.config.f.x39.l configure -state disabled;set CONFIG_NCPFS_OS2_NS [expr $CONFIG_NCPFS_OS2_NS|16];}
|
1470 |
|
|
global CONFIG_NCPFS_MOUNT_SUBDIR; vfix CONFIG_NCPFS_MOUNT_SUBDIR
|
1471 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { .menu8.config.f.x40.y configure -state normal;.menu8.config.f.x40.n configure -state normal;.menu8.config.f.x40.l configure -state normal;set CONFIG_NCPFS_MOUNT_SUBDIR [expr $CONFIG_NCPFS_MOUNT_SUBDIR&15];} else { .menu8.config.f.x40.y configure -state disabled;.menu8.config.f.x40.n configure -state disabled;.menu8.config.f.x40.l configure -state disabled;set CONFIG_NCPFS_MOUNT_SUBDIR [expr $CONFIG_NCPFS_MOUNT_SUBDIR|16];}
|
1472 |
|
|
global CONFIG_EXPERIMENTAL; vfix CONFIG_EXPERIMENTAL
|
1473 |
|
|
global CONFIG_AUTOFS_FS; vfix CONFIG_AUTOFS_FS
|
1474 |
|
|
if {($CONFIG_EXPERIMENTAL == 1)} then { .menu8.config.f.x43.y configure -state normal;.menu8.config.f.x43.n configure -state normal;.menu8.config.f.x43.m configure -state normal;.menu8.config.f.x43.l configure -state normal;set CONFIG_AUTOFS_FS [expr $CONFIG_AUTOFS_FS&15];} else { .menu8.config.f.x43.y configure -state disabled;.menu8.config.f.x43.n configure -state disabled;.menu8.config.f.x43.m configure -state disabled;.menu8.config.f.x43.l configure -state disabled;set CONFIG_AUTOFS_FS [expr $CONFIG_AUTOFS_FS|16];}
|
1475 |
|
|
global CONFIG_AFFS_FS; vfix CONFIG_AFFS_FS
|
1476 |
|
|
if {($CONFIG_EXPERIMENTAL == 1)} then { .menu8.config.f.x44.y configure -state normal;.menu8.config.f.x44.n configure -state normal;.menu8.config.f.x44.m configure -state normal;.menu8.config.f.x44.l configure -state normal;set CONFIG_AFFS_FS [expr $CONFIG_AFFS_FS&15];} else { .menu8.config.f.x44.y configure -state disabled;.menu8.config.f.x44.n configure -state disabled;.menu8.config.f.x44.m configure -state disabled;.menu8.config.f.x44.l configure -state disabled;set CONFIG_AFFS_FS [expr $CONFIG_AFFS_FS|16];}
|
1477 |
|
|
global CONFIG_UFS_FS; vfix CONFIG_UFS_FS
|
1478 |
|
|
global CONFIG_BSD_DISKLABEL; vfix CONFIG_BSD_DISKLABEL
|
1479 |
|
|
if {($CONFIG_UFS_FS != 0)} then { .menu8.config.f.x48.y configure -state normal;.menu8.config.f.x48.n configure -state normal;.menu8.config.f.x48.l configure -state normal;set CONFIG_BSD_DISKLABEL [expr $CONFIG_BSD_DISKLABEL&15];} else { .menu8.config.f.x48.y configure -state disabled;.menu8.config.f.x48.n configure -state disabled;.menu8.config.f.x48.l configure -state disabled;set CONFIG_BSD_DISKLABEL [expr $CONFIG_BSD_DISKLABEL|16];}
|
1480 |
|
|
global CONFIG_SMD_DISKLABEL; vfix CONFIG_SMD_DISKLABEL
|
1481 |
|
|
if {($CONFIG_UFS_FS != 0)} then { .menu8.config.f.x49.y configure -state normal;.menu8.config.f.x49.n configure -state normal;.menu8.config.f.x49.l configure -state normal;set CONFIG_SMD_DISKLABEL [expr $CONFIG_SMD_DISKLABEL&15];} else { .menu8.config.f.x49.y configure -state disabled;.menu8.config.f.x49.n configure -state disabled;.menu8.config.f.x49.l configure -state disabled;set CONFIG_SMD_DISKLABEL [expr $CONFIG_SMD_DISKLABEL|16];}
|
1482 |
|
|
}
|
1483 |
|
|
|
1484 |
|
|
|
1485 |
|
|
menu_option menu9 9 "Character devices"
|
1486 |
|
|
proc menu9 {w title} {
|
1487 |
|
|
catch {destroy $w}
|
1488 |
|
|
toplevel $w -class Dialog
|
1489 |
|
|
wm withdraw $w
|
1490 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
1491 |
|
|
"Character devices" -relief raised
|
1492 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
1493 |
|
|
wm title $w "Character devices"
|
1494 |
|
|
|
1495 |
|
|
set oldFocus [focus]
|
1496 |
|
|
frame $w.f
|
1497 |
|
|
button $w.f.back -text "Main Menu" \
|
1498 |
|
|
-width 15 -command "destroy $w; focus $oldFocus; update_mainmenu $w"
|
1499 |
|
|
button $w.f.next -text "Next" \
|
1500 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu10 .menu10 \"$title\""
|
1501 |
|
|
button $w.f.prev -text "Prev" \
|
1502 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu8 .menu8 \"$title\""
|
1503 |
|
|
pack $w.f.back $w.f.next $w.f.prev -side left -expand on
|
1504 |
|
|
pack $w.f -pady 10 -side bottom -anchor w -fill x
|
1505 |
|
|
frame $w.topline -relief ridge -borderwidth 2 -height 2
|
1506 |
|
|
pack $w.topline -side top -fill x
|
1507 |
|
|
|
1508 |
|
|
frame $w.botline -relief ridge -borderwidth 2 -height 2
|
1509 |
|
|
pack $w.botline -side bottom -fill x
|
1510 |
|
|
|
1511 |
|
|
frame $w.config
|
1512 |
|
|
pack $w.config -fill y -expand on
|
1513 |
|
|
|
1514 |
|
|
scrollbar $w.config.vscroll -command "$w.config.canvas yview"
|
1515 |
|
|
pack $w.config.vscroll -side right -fill y
|
1516 |
|
|
|
1517 |
|
|
canvas $w.config.canvas -height 1\
|
1518 |
|
|
-relief flat -borderwidth 0 -yscrollcommand "$w.config.vscroll set" \
|
1519 |
|
|
-width [expr [winfo screenwidth .] * 1 / 2]
|
1520 |
|
|
frame $w.config.f
|
1521 |
|
|
pack $w.config.canvas -side right -fill y
|
1522 |
|
|
|
1523 |
|
|
|
1524 |
|
|
bool $w.config.f 9 0 "Serial support" CONFIG_SERIAL
|
1525 |
|
|
bool $w.config.f 9 1 "Watchdog Timer Support" CONFIG_WATCHDOG
|
1526 |
|
|
bool $w.config.f 9 2 "PS/2 Keyboard" CONFIG_KEYBOARD
|
1527 |
|
|
|
1528 |
|
|
|
1529 |
|
|
|
1530 |
|
|
focus $w
|
1531 |
|
|
update_menu9 $w.config.f
|
1532 |
|
|
global winx; global winy
|
1533 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
1534 |
|
|
wm geometry $w +$winx+$winy
|
1535 |
|
|
update idletasks
|
1536 |
|
|
$w.config.canvas create window 0 0 -anchor nw -window $w.config.f
|
1537 |
|
|
|
1538 |
|
|
$w.config.canvas configure \
|
1539 |
|
|
-width [expr [winfo reqwidth $w.config.f] + 1]\
|
1540 |
|
|
-scrollregion "-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \
|
1541 |
|
|
[expr [winfo reqheight $w.config.f] + 1]"
|
1542 |
|
|
|
1543 |
|
|
set winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]
|
1544 |
|
|
set scry [expr [winfo screenh $w] / 2]
|
1545 |
|
|
set maxy [expr [winfo screenh $w] * 3 / 4]
|
1546 |
|
|
set canvtotal [expr [winfo reqh $w.config.f] + 2]
|
1547 |
|
|
if [expr $winy + $canvtotal < $maxy] {
|
1548 |
|
|
$w.config.canvas configure -height $canvtotal
|
1549 |
|
|
} else {
|
1550 |
|
|
$w.config.canvas configure -height [expr $scry - $winy]
|
1551 |
|
|
}
|
1552 |
|
|
update idletasks
|
1553 |
|
|
wm maxsize $w [winfo width $w] [winfo screenheight $w]
|
1554 |
|
|
wm minsize $w [winfo width $w] 100
|
1555 |
|
|
|
1556 |
|
|
wm deiconify $w
|
1557 |
|
|
}
|
1558 |
|
|
|
1559 |
|
|
|
1560 |
|
|
proc update_menu9 {w} {
|
1561 |
|
|
update_define
|
1562 |
|
|
}
|
1563 |
|
|
|
1564 |
|
|
|
1565 |
|
|
menu_option menu10 10 "Kernel hacking"
|
1566 |
|
|
proc menu10 {w title} {
|
1567 |
|
|
catch {destroy $w}
|
1568 |
|
|
toplevel $w -class Dialog
|
1569 |
|
|
wm withdraw $w
|
1570 |
|
|
message $w.m -width 400 -aspect 300 -text \
|
1571 |
|
|
"Kernel hacking" -relief raised
|
1572 |
|
|
pack $w.m -pady 10 -side top -padx 10
|
1573 |
|
|
wm title $w "Kernel hacking"
|
1574 |
|
|
|
1575 |
|
|
set oldFocus [focus]
|
1576 |
|
|
frame $w.f
|
1577 |
|
|
button $w.f.back -text "Main Menu" \
|
1578 |
|
|
-width 15 -command "destroy $w; focus $oldFocus; update_mainmenu $w"
|
1579 |
|
|
button $w.f.next -text "Next" \
|
1580 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu11 .menu11 \"$title\""
|
1581 |
|
|
$w.f.next configure -state disabled
|
1582 |
|
|
button $w.f.prev -text "Prev" \
|
1583 |
|
|
-width 15 -command " destroy $w; focus $oldFocus; menu9 .menu9 \"$title\""
|
1584 |
|
|
pack $w.f.back $w.f.next $w.f.prev -side left -expand on
|
1585 |
|
|
pack $w.f -pady 10 -side bottom -anchor w -fill x
|
1586 |
|
|
frame $w.topline -relief ridge -borderwidth 2 -height 2
|
1587 |
|
|
pack $w.topline -side top -fill x
|
1588 |
|
|
|
1589 |
|
|
frame $w.botline -relief ridge -borderwidth 2 -height 2
|
1590 |
|
|
pack $w.botline -side bottom -fill x
|
1591 |
|
|
|
1592 |
|
|
frame $w.config
|
1593 |
|
|
pack $w.config -fill y -expand on
|
1594 |
|
|
|
1595 |
|
|
scrollbar $w.config.vscroll -command "$w.config.canvas yview"
|
1596 |
|
|
pack $w.config.vscroll -side right -fill y
|
1597 |
|
|
|
1598 |
|
|
canvas $w.config.canvas -height 1\
|
1599 |
|
|
-relief flat -borderwidth 0 -yscrollcommand "$w.config.vscroll set" \
|
1600 |
|
|
-width [expr [winfo screenwidth .] * 1 / 2]
|
1601 |
|
|
frame $w.config.f
|
1602 |
|
|
pack $w.config.canvas -side right -fill y
|
1603 |
|
|
|
1604 |
|
|
|
1605 |
|
|
bool $w.config.f 10 0 "Kernel profiling support" CONFIG_PROFILE
|
1606 |
|
|
int $w.config.f 10 1 " Profile shift count" CONFIG_PROFILE_SHIFT
|
1607 |
|
|
|
1608 |
|
|
|
1609 |
|
|
|
1610 |
|
|
focus $w
|
1611 |
|
|
update_menu10 $w.config.f
|
1612 |
|
|
global winx; global winy
|
1613 |
|
|
set winx [expr [winfo x .]+30]; set winy [expr [winfo y .]+30]
|
1614 |
|
|
wm geometry $w +$winx+$winy
|
1615 |
|
|
update idletasks
|
1616 |
|
|
$w.config.canvas create window 0 0 -anchor nw -window $w.config.f
|
1617 |
|
|
|
1618 |
|
|
$w.config.canvas configure \
|
1619 |
|
|
-width [expr [winfo reqwidth $w.config.f] + 1]\
|
1620 |
|
|
-scrollregion "-1 -1 [expr [winfo reqwidth $w.config.f] + 1] \
|
1621 |
|
|
[expr [winfo reqheight $w.config.f] + 1]"
|
1622 |
|
|
|
1623 |
|
|
set winy [expr [winfo reqh $w] - [winfo reqh $w.config.canvas]]
|
1624 |
|
|
set scry [expr [winfo screenh $w] / 2]
|
1625 |
|
|
set maxy [expr [winfo screenh $w] * 3 / 4]
|
1626 |
|
|
set canvtotal [expr [winfo reqh $w.config.f] + 2]
|
1627 |
|
|
if [expr $winy + $canvtotal < $maxy] {
|
1628 |
|
|
$w.config.canvas configure -height $canvtotal
|
1629 |
|
|
} else {
|
1630 |
|
|
$w.config.canvas configure -height [expr $scry - $winy]
|
1631 |
|
|
}
|
1632 |
|
|
update idletasks
|
1633 |
|
|
wm maxsize $w [winfo width $w] [winfo screenheight $w]
|
1634 |
|
|
wm minsize $w [winfo width $w] 100
|
1635 |
|
|
|
1636 |
|
|
wm deiconify $w
|
1637 |
|
|
}
|
1638 |
|
|
|
1639 |
|
|
|
1640 |
|
|
proc update_menu10 {w} {
|
1641 |
|
|
update_define
|
1642 |
|
|
global CONFIG_PROFILE; vfix CONFIG_PROFILE
|
1643 |
|
|
global CONFIG_PROFILE_SHIFT; vfix CONFIG_PROFILE_SHIFT
|
1644 |
|
|
if {($CONFIG_PROFILE == 1)} then { .menu10.config.f.x1.x configure -state normal -fore [ cget .ref -foreground ]; .menu10.config.f.x1.l configure -state normal; } else { .menu10.config.f.x1.x configure -state disabled -fore [ cget .ref -disabledforeground ];.menu10.config.f.x1.l configure -state disabled;}
|
1645 |
|
|
}
|
1646 |
|
|
|
1647 |
|
|
|
1648 |
|
|
proc update_mainmenu {w} {
|
1649 |
|
|
global CONFIG_NET; vfix CONFIG_NET
|
1650 |
|
|
if {($CONFIG_NET == 1)} then { .f0.x5 configure -state normal } else { .f0.x5 configure -state disabled }
|
1651 |
|
|
if {($CONFIG_NET == 1)} then { .f0.x6 configure -state normal } else { .f0.x6 configure -state disabled }
|
1652 |
|
|
global CONFIG_NLS; vfix CONFIG_NLS
|
1653 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { .f0.x8 configure -state normal } else { .f0.x8 configure -state disabled }
|
1654 |
|
|
}
|
1655 |
|
|
|
1656 |
|
|
|
1657 |
|
|
set CONFIG_EXPERIMENTAL 0
|
1658 |
|
|
set tmpvar_0 "(not set)"
|
1659 |
|
|
set CONFIG_OR32 0
|
1660 |
|
|
set CONFIG_GEN 0
|
1661 |
|
|
set tmpvar_1 "(not set)"
|
1662 |
|
|
set CONFIG_RAMKERNEL 0
|
1663 |
|
|
set CONFIG_ROMKERNEL 0
|
1664 |
|
|
set CONFIG_PCI 0
|
1665 |
|
|
set CONFIG_PCIDEVLIST 0
|
1666 |
|
|
set CONFIG_NET 0
|
1667 |
|
|
set CONFIG_SYSVIPC 0
|
1668 |
|
|
set CONFIG_REDUCED_MEMORY 0
|
1669 |
|
|
set CONFIG_BINFMT_FLAT 0
|
1670 |
|
|
set CONFIG_BINFMT_ELF 0
|
1671 |
|
|
set CONFIG_KERNEL_ELF 0
|
1672 |
|
|
set CONFIG_CONSOLE 0
|
1673 |
|
|
set CONFIG_SERIAL_ECHO 0
|
1674 |
|
|
set CONFIG_FRAMEBUFFER 0
|
1675 |
|
|
set CONFIG_BLK_DEV_BLKMEM 0
|
1676 |
|
|
set CONFIG_BLK_DEV_IDE 0
|
1677 |
|
|
set CONFIG_BLK_DEV_IDECD 0
|
1678 |
|
|
set CONFIG_BLK_DEV_IDETAPE 0
|
1679 |
|
|
set CONFIG_BLK_DEV_IDEFLOPPY 0
|
1680 |
|
|
set CONFIG_BLK_DEV_LOOP 0
|
1681 |
|
|
set CONFIG_BLK_DEV_MD 0
|
1682 |
|
|
set CONFIG_MD_LINEAR 0
|
1683 |
|
|
set CONFIG_MD_STRIPED 0
|
1684 |
|
|
set CONFIG_BLK_DEV_RAM 0
|
1685 |
|
|
set CONFIG_RD_RELEASE_BLOCKS 0
|
1686 |
|
|
set CONFIG_BLK_DEV_INITRD 0
|
1687 |
|
|
set CONFIG_DEV_FLASH 0
|
1688 |
|
|
set CONFIG_BLK_DEV_FLASH 0
|
1689 |
|
|
set CONFIG_CHR_DEV_FLASH 0
|
1690 |
|
|
set CONFIG_FIREWALL 0
|
1691 |
|
|
set CONFIG_NET_ALIAS 0
|
1692 |
|
|
set CONFIG_INET 0
|
1693 |
|
|
set CONFIG_IP_FORWARD 0
|
1694 |
|
|
set CONFIG_IP_MULTICAST 0
|
1695 |
|
|
set CONFIG_SYN_COOKIES 0
|
1696 |
|
|
set CONFIG_IP_FIREWALL 0
|
1697 |
|
|
set CONFIG_IP_FIREWALL_VERBOSE 0
|
1698 |
|
|
set CONFIG_IP_MASQUERADE 0
|
1699 |
|
|
set CONFIG_IP_MASQUERADE_IPAUTOFW 0
|
1700 |
|
|
set CONFIG_IP_MASQUERADE_IPPORTFW 0
|
1701 |
|
|
set CONFIG_IP_MASQUERADE_PPTP 0
|
1702 |
|
|
set CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT 0
|
1703 |
|
|
set DEBUG_IP_MASQUERADE_PPTP 0
|
1704 |
|
|
set DEBUG_IP_MASQUERADE_PPTP_VERBOSE 0
|
1705 |
|
|
set CONFIG_IP_MASQUERADE_IPSEC 0
|
1706 |
|
|
set CONFIG_IP_MASQUERADE_IPSEC_EXPIRE 30
|
1707 |
|
|
set CONFIG_IP_MASQUERADE_IPSEC_NOGUESS 0
|
1708 |
|
|
set DEBUG_IP_MASQUERADE_IPSEC 0
|
1709 |
|
|
set DEBUG_IP_MASQUERADE_IPSEC_VERBOSE 0
|
1710 |
|
|
set CONFIG_IP_MASQUERADE_ICMP 0
|
1711 |
|
|
set CONFIG_IP_TRANSPARENT_PROXY 0
|
1712 |
|
|
set CONFIG_IP_ALWAYS_DEFRAG 0
|
1713 |
|
|
set CONFIG_IP_ACCT 0
|
1714 |
|
|
set CONFIG_IP_ROUTER 0
|
1715 |
|
|
set CONFIG_NET_IPIP 0
|
1716 |
|
|
set CONFIG_IP_MROUTE 0
|
1717 |
|
|
set CONFIG_IP_ALIAS 0
|
1718 |
|
|
set CONFIG_ARPD 0
|
1719 |
|
|
set CONFIG_INET_PCTCP 0
|
1720 |
|
|
set CONFIG_INET_RARP 0
|
1721 |
|
|
set CONFIG_NO_PATH_MTU_DISCOVERY 0
|
1722 |
|
|
set CONFIG_IP_NOSR 0
|
1723 |
|
|
set CONFIG_SKB_LARGE 0
|
1724 |
|
|
set CONFIG_IPX 0
|
1725 |
|
|
set CONFIG_ATALK 0
|
1726 |
|
|
set CONFIG_AX25 0
|
1727 |
|
|
set CONFIG_NETROM 0
|
1728 |
|
|
set CONFIG_ROSE 0
|
1729 |
|
|
set CONFIG_BRIDGE 0
|
1730 |
|
|
set CONFIG_NETLINK 0
|
1731 |
|
|
set CONFIG_RTNETLINK 0
|
1732 |
|
|
set CONFIG_NETDEVICES 0
|
1733 |
|
|
set CONFIG_DUMMY 0
|
1734 |
|
|
set CONFIG_SLIP 0
|
1735 |
|
|
set CONFIG_SLIP_COMPRESSED 0
|
1736 |
|
|
set CONFIG_SLIP_SMART 0
|
1737 |
|
|
set CONFIG_SLIP_MODE_SLIP6 0
|
1738 |
|
|
set CONFIG_PPP 0
|
1739 |
|
|
set CONFIG_EQUALIZER 0
|
1740 |
|
|
set CONFIG_OETH 0
|
1741 |
|
|
set CONFIG_QUOTA 0
|
1742 |
|
|
set CONFIG_MINIX_FS 0
|
1743 |
|
|
set CONFIG_EXT_FS 0
|
1744 |
|
|
set CONFIG_EXT2_FS 0
|
1745 |
|
|
set CONFIG_XIA_FS 0
|
1746 |
|
|
set CONFIG_NLS 0
|
1747 |
|
|
set CONFIG_ISO9660_FS 0
|
1748 |
|
|
set CONFIG_FAT_FS 0
|
1749 |
|
|
set CONFIG_MSDOS_FS 0
|
1750 |
|
|
set CONFIG_UMSDOS_FS 0
|
1751 |
|
|
set CONFIG_VFAT_FS 0
|
1752 |
|
|
set CONFIG_NLS_CODEPAGE_437 0
|
1753 |
|
|
set CONFIG_NLS_CODEPAGE_737 0
|
1754 |
|
|
set CONFIG_NLS_CODEPAGE_775 0
|
1755 |
|
|
set CONFIG_NLS_CODEPAGE_850 0
|
1756 |
|
|
set CONFIG_NLS_CODEPAGE_852 0
|
1757 |
|
|
set CONFIG_NLS_CODEPAGE_855 0
|
1758 |
|
|
set CONFIG_NLS_CODEPAGE_857 0
|
1759 |
|
|
set CONFIG_NLS_CODEPAGE_860 0
|
1760 |
|
|
set CONFIG_NLS_CODEPAGE_861 0
|
1761 |
|
|
set CONFIG_NLS_CODEPAGE_862 0
|
1762 |
|
|
set CONFIG_NLS_CODEPAGE_863 0
|
1763 |
|
|
set CONFIG_NLS_CODEPAGE_864 0
|
1764 |
|
|
set CONFIG_NLS_CODEPAGE_865 0
|
1765 |
|
|
set CONFIG_NLS_CODEPAGE_866 0
|
1766 |
|
|
set CONFIG_NLS_CODEPAGE_869 0
|
1767 |
|
|
set CONFIG_NLS_CODEPAGE_874 0
|
1768 |
|
|
set CONFIG_NLS_ISO8859_1 0
|
1769 |
|
|
set CONFIG_NLS_ISO8859_2 0
|
1770 |
|
|
set CONFIG_NLS_ISO8859_3 0
|
1771 |
|
|
set CONFIG_NLS_ISO8859_4 0
|
1772 |
|
|
set CONFIG_NLS_ISO8859_5 0
|
1773 |
|
|
set CONFIG_NLS_ISO8859_6 0
|
1774 |
|
|
set CONFIG_NLS_ISO8859_7 0
|
1775 |
|
|
set CONFIG_NLS_ISO8859_8 0
|
1776 |
|
|
set CONFIG_NLS_ISO8859_9 0
|
1777 |
|
|
set CONFIG_NLS_ISO8859_15 0
|
1778 |
|
|
set CONFIG_NLS_KOI8_R 0
|
1779 |
|
|
set CONFIG_PROC_FS 0
|
1780 |
|
|
set CONFIG_NFS_FS 0
|
1781 |
|
|
set CONFIG_ROOT_NFS 0
|
1782 |
|
|
set CONFIG_RNFS_BOOTP 0
|
1783 |
|
|
set CONFIG_RNFS_RARP 0
|
1784 |
|
|
set CONFIG_SMB_FS 0
|
1785 |
|
|
set CONFIG_SMB_WIN95 0
|
1786 |
|
|
set CONFIG_NCP_FS 0
|
1787 |
|
|
set CONFIG_NCPFS_PACKET_SIGNING 0
|
1788 |
|
|
set CONFIG_NCPFS_IOCTL_LOCKING 0
|
1789 |
|
|
set CONFIG_NCPFS_STRONG 0
|
1790 |
|
|
set CONFIG_NCPFS_NFS_NS 0
|
1791 |
|
|
set CONFIG_NCPFS_OS2_NS 0
|
1792 |
|
|
set CONFIG_NCPFS_MOUNT_SUBDIR 0
|
1793 |
|
|
set CONFIG_HPFS_FS 0
|
1794 |
|
|
set CONFIG_SYSV_FS 0
|
1795 |
|
|
set CONFIG_AUTOFS_FS 0
|
1796 |
|
|
set CONFIG_AFFS_FS 0
|
1797 |
|
|
set CONFIG_ROMFS_FS 0
|
1798 |
|
|
set CONFIG_JFFS_FS 0
|
1799 |
|
|
set CONFIG_UFS_FS 0
|
1800 |
|
|
set CONFIG_BSD_DISKLABEL 0
|
1801 |
|
|
set CONFIG_SMD_DISKLABEL 0
|
1802 |
|
|
set CONFIG_SERIAL 0
|
1803 |
|
|
set CONFIG_WATCHDOG 0
|
1804 |
|
|
set CONFIG_KEYBOARD 0
|
1805 |
|
|
set CONFIG_PROFILE 0
|
1806 |
|
|
set CONFIG_PROFILE_SHIFT 2
|
1807 |
|
|
proc writeconfig {file1 file2} {
|
1808 |
|
|
set cfg [open $file1 w]
|
1809 |
|
|
set autocfg [open $file2 w]
|
1810 |
|
|
set notmod 1
|
1811 |
|
|
set notset 0
|
1812 |
|
|
puts $cfg "#"
|
1813 |
|
|
puts $cfg "# Automatically generated make config: don't edit"
|
1814 |
|
|
puts $cfg "#"
|
1815 |
|
|
puts $autocfg "/*"
|
1816 |
|
|
puts $autocfg " * Automatically generated C config: don't edit"
|
1817 |
|
|
puts $autocfg " */"
|
1818 |
|
|
global CONFIG_UCLINUX
|
1819 |
|
|
write_tristate $cfg $autocfg CONFIG_UCLINUX $CONFIG_UCLINUX $notmod
|
1820 |
|
|
write_comment $cfg $autocfg "Code maturity level options"
|
1821 |
|
|
global CONFIG_EXPERIMENTAL
|
1822 |
|
|
write_tristate $cfg $autocfg CONFIG_EXPERIMENTAL $CONFIG_EXPERIMENTAL $notmod
|
1823 |
|
|
write_comment $cfg $autocfg "Platform dependant setup"
|
1824 |
|
|
global tmpvar_0
|
1825 |
|
|
if { $tmpvar_0 == "OR32" } then { write_tristate $cfg $autocfg CONFIG_OR32 1 $notmod }
|
1826 |
|
|
write_comment $cfg $autocfg "Platform"
|
1827 |
|
|
global CONFIG_GEN
|
1828 |
|
|
if {($tmpvar_0 == "OR32")} then { write_tristate $cfg $autocfg CONFIG_GEN $CONFIG_GEN $notmod }
|
1829 |
|
|
global tmpvar_1
|
1830 |
|
|
if { $tmpvar_1 == "RAM" } then { write_tristate $cfg $autocfg CONFIG_RAMKERNEL 1 $notmod }
|
1831 |
|
|
if { $tmpvar_1 == "ROM" } then { write_tristate $cfg $autocfg CONFIG_ROMKERNEL 1 $notmod }
|
1832 |
|
|
write_comment $cfg $autocfg "General setup"
|
1833 |
|
|
global CONFIG_PCI
|
1834 |
|
|
write_tristate $cfg $autocfg CONFIG_PCI $CONFIG_PCI $notmod
|
1835 |
|
|
global CONFIG_PCIDEVLIST
|
1836 |
|
|
if {($CONFIG_PCI == 1)} then { write_tristate $cfg $autocfg CONFIG_PCIDEVLIST $CONFIG_PCIDEVLIST $notmod }
|
1837 |
|
|
global CONFIG_NET
|
1838 |
|
|
write_tristate $cfg $autocfg CONFIG_NET $CONFIG_NET $notmod
|
1839 |
|
|
global CONFIG_SYSVIPC
|
1840 |
|
|
write_tristate $cfg $autocfg CONFIG_SYSVIPC $CONFIG_SYSVIPC $notmod
|
1841 |
|
|
global CONFIG_REDUCED_MEMORY
|
1842 |
|
|
write_tristate $cfg $autocfg CONFIG_REDUCED_MEMORY $CONFIG_REDUCED_MEMORY $notmod
|
1843 |
|
|
global CONFIG_BINFMT_FLAT
|
1844 |
|
|
write_tristate $cfg $autocfg CONFIG_BINFMT_FLAT $CONFIG_BINFMT_FLAT $notmod
|
1845 |
|
|
global CONFIG_BINFMT_ELF
|
1846 |
|
|
write_tristate $cfg $autocfg CONFIG_BINFMT_ELF $CONFIG_BINFMT_ELF $notmod
|
1847 |
|
|
global CONFIG_KERNEL_ELF
|
1848 |
|
|
write_tristate $cfg $autocfg CONFIG_KERNEL_ELF $CONFIG_KERNEL_ELF $notmod
|
1849 |
|
|
global CONFIG_CONSOLE
|
1850 |
|
|
write_tristate $cfg $autocfg CONFIG_CONSOLE $CONFIG_CONSOLE $notmod
|
1851 |
|
|
global CONFIG_SERIAL_ECHO
|
1852 |
|
|
if {($CONFIG_CONSOLE == 1)} then { write_tristate $cfg $autocfg CONFIG_SERIAL_ECHO $CONFIG_SERIAL_ECHO $notmod }
|
1853 |
|
|
global CONFIG_FRAMEBUFFER
|
1854 |
|
|
if {($CONFIG_CONSOLE == 1)} then { write_tristate $cfg $autocfg CONFIG_FRAMEBUFFER $CONFIG_FRAMEBUFFER $notmod }
|
1855 |
|
|
write_comment $cfg $autocfg "Floppy, IDE, and other block devices"
|
1856 |
|
|
global CONFIG_BLK_DEV_BLKMEM
|
1857 |
|
|
write_tristate $cfg $autocfg CONFIG_BLK_DEV_BLKMEM $CONFIG_BLK_DEV_BLKMEM $notmod
|
1858 |
|
|
global CONFIG_BLK_DEV_IDE
|
1859 |
|
|
write_tristate $cfg $autocfg CONFIG_BLK_DEV_IDE $CONFIG_BLK_DEV_IDE $notmod
|
1860 |
|
|
global CONFIG_BLK_DEV_IDECD
|
1861 |
|
|
if {($CONFIG_BLK_DEV_IDE == 1)} then { write_tristate $cfg $autocfg CONFIG_BLK_DEV_IDECD $CONFIG_BLK_DEV_IDECD $notmod }
|
1862 |
|
|
global CONFIG_BLK_DEV_IDETAPE
|
1863 |
|
|
if {($CONFIG_BLK_DEV_IDE == 1)} then { write_tristate $cfg $autocfg CONFIG_BLK_DEV_IDETAPE $CONFIG_BLK_DEV_IDETAPE $notmod }
|
1864 |
|
|
global CONFIG_BLK_DEV_IDEFLOPPY
|
1865 |
|
|
if {($CONFIG_BLK_DEV_IDE == 1)} then { write_tristate $cfg $autocfg CONFIG_BLK_DEV_IDEFLOPPY $CONFIG_BLK_DEV_IDEFLOPPY $notmod }
|
1866 |
|
|
write_comment $cfg $autocfg "Additional Block/FLASH Devices"
|
1867 |
|
|
global CONFIG_BLK_DEV_LOOP
|
1868 |
|
|
write_tristate $cfg $autocfg CONFIG_BLK_DEV_LOOP $CONFIG_BLK_DEV_LOOP $notmod
|
1869 |
|
|
global CONFIG_BLK_DEV_MD
|
1870 |
|
|
write_tristate $cfg $autocfg CONFIG_BLK_DEV_MD $CONFIG_BLK_DEV_MD $notmod
|
1871 |
|
|
global CONFIG_MD_LINEAR
|
1872 |
|
|
if {($CONFIG_BLK_DEV_MD == 1)} then { write_tristate $cfg $autocfg CONFIG_MD_LINEAR $CONFIG_MD_LINEAR $notmod }
|
1873 |
|
|
global CONFIG_MD_STRIPED
|
1874 |
|
|
if {($CONFIG_BLK_DEV_MD == 1)} then { write_tristate $cfg $autocfg CONFIG_MD_STRIPED $CONFIG_MD_STRIPED $notmod }
|
1875 |
|
|
global CONFIG_BLK_DEV_RAM
|
1876 |
|
|
write_tristate $cfg $autocfg CONFIG_BLK_DEV_RAM $CONFIG_BLK_DEV_RAM $notmod
|
1877 |
|
|
global CONFIG_RD_RELEASE_BLOCKS
|
1878 |
|
|
if {($CONFIG_BLK_DEV_RAM == 1)} then { write_tristate $cfg $autocfg CONFIG_RD_RELEASE_BLOCKS $CONFIG_RD_RELEASE_BLOCKS $notmod }
|
1879 |
|
|
global CONFIG_BLK_DEV_INITRD
|
1880 |
|
|
if {($CONFIG_BLK_DEV_RAM == 1)} then { write_tristate $cfg $autocfg CONFIG_BLK_DEV_INITRD $CONFIG_BLK_DEV_INITRD $notmod }
|
1881 |
|
|
global CONFIG_DEV_FLASH
|
1882 |
|
|
write_tristate $cfg $autocfg CONFIG_DEV_FLASH $CONFIG_DEV_FLASH $notmod
|
1883 |
|
|
global CONFIG_BLK_DEV_FLASH
|
1884 |
|
|
if {($CONFIG_DEV_FLASH == 1)} then { write_tristate $cfg $autocfg CONFIG_BLK_DEV_FLASH $CONFIG_BLK_DEV_FLASH $notmod }
|
1885 |
|
|
global CONFIG_CHR_DEV_FLASH
|
1886 |
|
|
if {($CONFIG_DEV_FLASH == 1)} then { write_tristate $cfg $autocfg CONFIG_CHR_DEV_FLASH $CONFIG_CHR_DEV_FLASH $notmod }
|
1887 |
|
|
if {($CONFIG_NET == 1)} then {write_comment $cfg $autocfg "Networking options"}
|
1888 |
|
|
global CONFIG_FIREWALL
|
1889 |
|
|
if {($CONFIG_NET == 1)} then { write_tristate $cfg $autocfg CONFIG_FIREWALL $CONFIG_FIREWALL $notmod }
|
1890 |
|
|
global CONFIG_NET_ALIAS
|
1891 |
|
|
if {($CONFIG_NET == 1)} then { write_tristate $cfg $autocfg CONFIG_NET_ALIAS $CONFIG_NET_ALIAS $notmod }
|
1892 |
|
|
global CONFIG_INET
|
1893 |
|
|
if {($CONFIG_NET == 1)} then { write_tristate $cfg $autocfg CONFIG_INET $CONFIG_INET $notmod }
|
1894 |
|
|
global CONFIG_IP_FORWARD
|
1895 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_FORWARD $CONFIG_IP_FORWARD $notmod }
|
1896 |
|
|
global CONFIG_IP_MULTICAST
|
1897 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_MULTICAST $CONFIG_IP_MULTICAST $notmod }
|
1898 |
|
|
global CONFIG_SYN_COOKIES
|
1899 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_SYN_COOKIES $CONFIG_SYN_COOKIES $notmod }
|
1900 |
|
|
global CONFIG_IP_FIREWALL
|
1901 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_FIREWALL $CONFIG_IP_FIREWALL $notmod }
|
1902 |
|
|
global CONFIG_IP_FIREWALL_VERBOSE
|
1903 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_FIREWALL_VERBOSE $CONFIG_IP_FIREWALL_VERBOSE $notmod }
|
1904 |
|
|
global CONFIG_IP_MASQUERADE
|
1905 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_MASQUERADE $CONFIG_IP_MASQUERADE $notmod }
|
1906 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0)} then {write_comment $cfg $autocfg "Protocol-specific masquerading support will be built as modules."}
|
1907 |
|
|
global CONFIG_IP_MASQUERADE_IPAUTOFW
|
1908 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_MASQUERADE_IPAUTOFW $CONFIG_IP_MASQUERADE_IPAUTOFW $notmod }
|
1909 |
|
|
global CONFIG_IP_MASQUERADE_IPPORTFW
|
1910 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_MASQUERADE_IPPORTFW $CONFIG_IP_MASQUERADE_IPPORTFW $notmod }
|
1911 |
|
|
global CONFIG_IP_MASQUERADE_PPTP
|
1912 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_MASQUERADE_PPTP $CONFIG_IP_MASQUERADE_PPTP $notmod }
|
1913 |
|
|
global CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT
|
1914 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_PPTP == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT $CONFIG_IP_MASQUERADE_PPTP_MULTICLIENT $notmod }
|
1915 |
|
|
global DEBUG_IP_MASQUERADE_PPTP
|
1916 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_PPTP == 1)} then { write_tristate $cfg $autocfg DEBUG_IP_MASQUERADE_PPTP $DEBUG_IP_MASQUERADE_PPTP $notmod }
|
1917 |
|
|
global DEBUG_IP_MASQUERADE_PPTP_VERBOSE
|
1918 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_PPTP == 1) && ($DEBUG_IP_MASQUERADE_PPTP == 1)} then { write_tristate $cfg $autocfg DEBUG_IP_MASQUERADE_PPTP_VERBOSE $DEBUG_IP_MASQUERADE_PPTP_VERBOSE $notmod }
|
1919 |
|
|
global CONFIG_IP_MASQUERADE_IPSEC
|
1920 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_MASQUERADE_IPSEC $CONFIG_IP_MASQUERADE_IPSEC $notmod }
|
1921 |
|
|
global CONFIG_IP_MASQUERADE_IPSEC_EXPIRE
|
1922 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_IPSEC == 1)} then { write_int $cfg $autocfg CONFIG_IP_MASQUERADE_IPSEC_EXPIRE $CONFIG_IP_MASQUERADE_IPSEC_EXPIRE $notmod }
|
1923 |
|
|
global CONFIG_IP_MASQUERADE_IPSEC_NOGUESS
|
1924 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_IPSEC == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_MASQUERADE_IPSEC_NOGUESS $CONFIG_IP_MASQUERADE_IPSEC_NOGUESS $notmod }
|
1925 |
|
|
global DEBUG_IP_MASQUERADE_IPSEC
|
1926 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_IPSEC == 1)} then { write_tristate $cfg $autocfg DEBUG_IP_MASQUERADE_IPSEC $DEBUG_IP_MASQUERADE_IPSEC $notmod }
|
1927 |
|
|
global DEBUG_IP_MASQUERADE_IPSEC_VERBOSE
|
1928 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_IP_MASQUERADE_IPSEC == 1) && ($DEBUG_IP_MASQUERADE_IPSEC == 1)} then { write_tristate $cfg $autocfg DEBUG_IP_MASQUERADE_IPSEC_VERBOSE $DEBUG_IP_MASQUERADE_IPSEC_VERBOSE $notmod }
|
1929 |
|
|
global CONFIG_IP_MASQUERADE_ICMP
|
1930 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_IP_MASQUERADE != 0)} then { write_tristate $cfg $autocfg CONFIG_IP_MASQUERADE_ICMP $CONFIG_IP_MASQUERADE_ICMP $notmod }
|
1931 |
|
|
global CONFIG_IP_TRANSPARENT_PROXY
|
1932 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1) && ($CONFIG_EXPERIMENTAL == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_TRANSPARENT_PROXY $CONFIG_IP_TRANSPARENT_PROXY $notmod }
|
1933 |
|
|
global CONFIG_IP_ALWAYS_DEFRAG
|
1934 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_FIREWALL == 1) && ($CONFIG_IP_FIREWALL == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_ALWAYS_DEFRAG $CONFIG_IP_ALWAYS_DEFRAG $notmod }
|
1935 |
|
|
global CONFIG_IP_ACCT
|
1936 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_ACCT $CONFIG_IP_ACCT $notmod }
|
1937 |
|
|
global CONFIG_IP_ROUTER
|
1938 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_ROUTER $CONFIG_IP_ROUTER $notmod }
|
1939 |
|
|
global CONFIG_NET_IPIP
|
1940 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_NET_IPIP $CONFIG_NET_IPIP $notmod }
|
1941 |
|
|
global CONFIG_IP_MROUTE
|
1942 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_IP_MULTICAST == 1) && ($CONFIG_EXPERIMENTAL == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_MROUTE $CONFIG_IP_MROUTE $notmod }
|
1943 |
|
|
global CONFIG_IP_ALIAS
|
1944 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_NET_ALIAS == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_ALIAS $CONFIG_IP_ALIAS $notmod }
|
1945 |
|
|
global CONFIG_ARPD
|
1946 |
|
|
global CONFIG_NETLINK; vfix CONFIG_NETLINK
|
1947 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1) && ($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_NETLINK == 1)} then { write_tristate $cfg $autocfg CONFIG_ARPD $CONFIG_ARPD $notmod }
|
1948 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then {write_comment $cfg $autocfg "(it is safe to leave these untouched)"}
|
1949 |
|
|
global CONFIG_INET_PCTCP
|
1950 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_INET_PCTCP $CONFIG_INET_PCTCP $notmod }
|
1951 |
|
|
global CONFIG_INET_RARP
|
1952 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_INET_RARP $CONFIG_INET_RARP $notmod }
|
1953 |
|
|
global CONFIG_NO_PATH_MTU_DISCOVERY
|
1954 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_NO_PATH_MTU_DISCOVERY $CONFIG_NO_PATH_MTU_DISCOVERY $notmod }
|
1955 |
|
|
global CONFIG_IP_NOSR
|
1956 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_IP_NOSR $CONFIG_IP_NOSR $notmod }
|
1957 |
|
|
global CONFIG_SKB_LARGE
|
1958 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_SKB_LARGE $CONFIG_SKB_LARGE $notmod }
|
1959 |
|
|
if {($CONFIG_NET == 1)} then {write_comment $cfg $autocfg " "}
|
1960 |
|
|
global CONFIG_IPX
|
1961 |
|
|
if {($CONFIG_NET == 1)} then { write_tristate $cfg $autocfg CONFIG_IPX $CONFIG_IPX $notmod }
|
1962 |
|
|
global CONFIG_ATALK
|
1963 |
|
|
if {($CONFIG_NET == 1)} then { write_tristate $cfg $autocfg CONFIG_ATALK $CONFIG_ATALK $notmod }
|
1964 |
|
|
global CONFIG_AX25
|
1965 |
|
|
if {($CONFIG_NET == 1)} then { write_tristate $cfg $autocfg CONFIG_AX25 $CONFIG_AX25 $notmod }
|
1966 |
|
|
global CONFIG_NETROM
|
1967 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_AX25 != 0) && ($CONFIG_AX25 == 1 || $CONFIG_AX25 == 2)} then { write_tristate $cfg $autocfg CONFIG_NETROM $CONFIG_NETROM $CONFIG_AX25 }
|
1968 |
|
|
global CONFIG_ROSE
|
1969 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_AX25 != 0) && ($CONFIG_AX25 == 1 || $CONFIG_AX25 == 2)} then { write_tristate $cfg $autocfg CONFIG_ROSE $CONFIG_ROSE $CONFIG_AX25 }
|
1970 |
|
|
global CONFIG_BRIDGE
|
1971 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_EXPERIMENTAL == 1)} then { write_tristate $cfg $autocfg CONFIG_BRIDGE $CONFIG_BRIDGE $notmod }
|
1972 |
|
|
if {($CONFIG_NET == 1)} then { write_tristate $cfg $autocfg CONFIG_NETLINK $CONFIG_NETLINK $notmod }
|
1973 |
|
|
global CONFIG_RTNETLINK
|
1974 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETLINK == 1)} then { write_tristate $cfg $autocfg CONFIG_RTNETLINK $CONFIG_RTNETLINK $notmod }
|
1975 |
|
|
if {($CONFIG_NET == 1)} then {write_comment $cfg $autocfg "Network device support"}
|
1976 |
|
|
global CONFIG_NETDEVICES
|
1977 |
|
|
if {($CONFIG_NET == 1)} then { write_tristate $cfg $autocfg CONFIG_NETDEVICES $CONFIG_NETDEVICES $notmod }
|
1978 |
|
|
global CONFIG_DUMMY
|
1979 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1)} then { write_tristate $cfg $autocfg CONFIG_DUMMY $CONFIG_DUMMY $notmod }
|
1980 |
|
|
global CONFIG_SLIP
|
1981 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1)} then { write_tristate $cfg $autocfg CONFIG_SLIP $CONFIG_SLIP $notmod }
|
1982 |
|
|
global CONFIG_SLIP_COMPRESSED
|
1983 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1) && ($CONFIG_SLIP != 0)} then { write_tristate $cfg $autocfg CONFIG_SLIP_COMPRESSED $CONFIG_SLIP_COMPRESSED $notmod }
|
1984 |
|
|
global CONFIG_SLIP_SMART
|
1985 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1) && ($CONFIG_SLIP != 0)} then { write_tristate $cfg $autocfg CONFIG_SLIP_SMART $CONFIG_SLIP_SMART $notmod }
|
1986 |
|
|
global CONFIG_SLIP_MODE_SLIP6
|
1987 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1) && ($CONFIG_SLIP != 0)} then { write_tristate $cfg $autocfg CONFIG_SLIP_MODE_SLIP6 $CONFIG_SLIP_MODE_SLIP6 $notmod }
|
1988 |
|
|
global CONFIG_PPP
|
1989 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1)} then { write_tristate $cfg $autocfg CONFIG_PPP $CONFIG_PPP $notmod }
|
1990 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1) && ( ! $CONFIG_PPP == 0)} then {write_comment $cfg $autocfg "CCP compressors for PPP are only built as modules."}
|
1991 |
|
|
global CONFIG_EQUALIZER
|
1992 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1)} then { write_tristate $cfg $autocfg CONFIG_EQUALIZER $CONFIG_EQUALIZER $notmod }
|
1993 |
|
|
global CONFIG_OETH
|
1994 |
|
|
if {($CONFIG_NET == 1) && ($CONFIG_NETDEVICES == 1)} then { write_tristate $cfg $autocfg CONFIG_OETH $CONFIG_OETH $notmod }
|
1995 |
|
|
write_comment $cfg $autocfg "Filesystems"
|
1996 |
|
|
global CONFIG_QUOTA
|
1997 |
|
|
write_tristate $cfg $autocfg CONFIG_QUOTA $CONFIG_QUOTA $notmod
|
1998 |
|
|
global CONFIG_MINIX_FS
|
1999 |
|
|
write_tristate $cfg $autocfg CONFIG_MINIX_FS $CONFIG_MINIX_FS $notmod
|
2000 |
|
|
global CONFIG_EXT_FS
|
2001 |
|
|
write_tristate $cfg $autocfg CONFIG_EXT_FS $CONFIG_EXT_FS $notmod
|
2002 |
|
|
global CONFIG_EXT2_FS
|
2003 |
|
|
write_tristate $cfg $autocfg CONFIG_EXT2_FS $CONFIG_EXT2_FS $notmod
|
2004 |
|
|
global CONFIG_XIA_FS
|
2005 |
|
|
write_tristate $cfg $autocfg CONFIG_XIA_FS $CONFIG_XIA_FS $notmod
|
2006 |
|
|
global CONFIG_NLS
|
2007 |
|
|
write_tristate $cfg $autocfg CONFIG_NLS $CONFIG_NLS $notmod
|
2008 |
|
|
global CONFIG_ISO9660_FS
|
2009 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_ISO9660_FS $CONFIG_ISO9660_FS $CONFIG_NLS }
|
2010 |
|
|
global CONFIG_FAT_FS
|
2011 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_FAT_FS $CONFIG_FAT_FS $CONFIG_NLS }
|
2012 |
|
|
global CONFIG_MSDOS_FS
|
2013 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_FAT_FS == 1 || $CONFIG_FAT_FS == 2)} then { write_tristate $cfg $autocfg CONFIG_MSDOS_FS $CONFIG_MSDOS_FS $CONFIG_FAT_FS }
|
2014 |
|
|
global CONFIG_UMSDOS_FS
|
2015 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_MSDOS_FS == 1 || $CONFIG_MSDOS_FS == 2)} then { write_tristate $cfg $autocfg CONFIG_UMSDOS_FS $CONFIG_UMSDOS_FS $CONFIG_MSDOS_FS }
|
2016 |
|
|
global CONFIG_VFAT_FS
|
2017 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_FAT_FS == 1 || $CONFIG_FAT_FS == 2)} then { write_tristate $cfg $autocfg CONFIG_VFAT_FS $CONFIG_VFAT_FS $CONFIG_FAT_FS }
|
2018 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then {write_comment $cfg $autocfg "Select available code pages"}
|
2019 |
|
|
global CONFIG_NLS_CODEPAGE_437
|
2020 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_437 $CONFIG_NLS_CODEPAGE_437 $CONFIG_NLS }
|
2021 |
|
|
global CONFIG_NLS_CODEPAGE_737
|
2022 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_737 $CONFIG_NLS_CODEPAGE_737 $CONFIG_NLS }
|
2023 |
|
|
global CONFIG_NLS_CODEPAGE_775
|
2024 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_775 $CONFIG_NLS_CODEPAGE_775 $CONFIG_NLS }
|
2025 |
|
|
global CONFIG_NLS_CODEPAGE_850
|
2026 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_850 $CONFIG_NLS_CODEPAGE_850 $CONFIG_NLS }
|
2027 |
|
|
global CONFIG_NLS_CODEPAGE_852
|
2028 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_852 $CONFIG_NLS_CODEPAGE_852 $CONFIG_NLS }
|
2029 |
|
|
global CONFIG_NLS_CODEPAGE_855
|
2030 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_855 $CONFIG_NLS_CODEPAGE_855 $CONFIG_NLS }
|
2031 |
|
|
global CONFIG_NLS_CODEPAGE_857
|
2032 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_857 $CONFIG_NLS_CODEPAGE_857 $CONFIG_NLS }
|
2033 |
|
|
global CONFIG_NLS_CODEPAGE_860
|
2034 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_860 $CONFIG_NLS_CODEPAGE_860 $CONFIG_NLS }
|
2035 |
|
|
global CONFIG_NLS_CODEPAGE_861
|
2036 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_861 $CONFIG_NLS_CODEPAGE_861 $CONFIG_NLS }
|
2037 |
|
|
global CONFIG_NLS_CODEPAGE_862
|
2038 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_862 $CONFIG_NLS_CODEPAGE_862 $CONFIG_NLS }
|
2039 |
|
|
global CONFIG_NLS_CODEPAGE_863
|
2040 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_863 $CONFIG_NLS_CODEPAGE_863 $CONFIG_NLS }
|
2041 |
|
|
global CONFIG_NLS_CODEPAGE_864
|
2042 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_864 $CONFIG_NLS_CODEPAGE_864 $CONFIG_NLS }
|
2043 |
|
|
global CONFIG_NLS_CODEPAGE_865
|
2044 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_865 $CONFIG_NLS_CODEPAGE_865 $CONFIG_NLS }
|
2045 |
|
|
global CONFIG_NLS_CODEPAGE_866
|
2046 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_866 $CONFIG_NLS_CODEPAGE_866 $CONFIG_NLS }
|
2047 |
|
|
global CONFIG_NLS_CODEPAGE_869
|
2048 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_869 $CONFIG_NLS_CODEPAGE_869 $CONFIG_NLS }
|
2049 |
|
|
global CONFIG_NLS_CODEPAGE_874
|
2050 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_CODEPAGE_874 $CONFIG_NLS_CODEPAGE_874 $CONFIG_NLS }
|
2051 |
|
|
global CONFIG_NLS_ISO8859_1
|
2052 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_ISO8859_1 $CONFIG_NLS_ISO8859_1 $CONFIG_NLS }
|
2053 |
|
|
global CONFIG_NLS_ISO8859_2
|
2054 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_ISO8859_2 $CONFIG_NLS_ISO8859_2 $CONFIG_NLS }
|
2055 |
|
|
global CONFIG_NLS_ISO8859_3
|
2056 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_ISO8859_3 $CONFIG_NLS_ISO8859_3 $CONFIG_NLS }
|
2057 |
|
|
global CONFIG_NLS_ISO8859_4
|
2058 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_ISO8859_4 $CONFIG_NLS_ISO8859_4 $CONFIG_NLS }
|
2059 |
|
|
global CONFIG_NLS_ISO8859_5
|
2060 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_ISO8859_5 $CONFIG_NLS_ISO8859_5 $CONFIG_NLS }
|
2061 |
|
|
global CONFIG_NLS_ISO8859_6
|
2062 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_ISO8859_6 $CONFIG_NLS_ISO8859_6 $CONFIG_NLS }
|
2063 |
|
|
global CONFIG_NLS_ISO8859_7
|
2064 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_ISO8859_7 $CONFIG_NLS_ISO8859_7 $CONFIG_NLS }
|
2065 |
|
|
global CONFIG_NLS_ISO8859_8
|
2066 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_ISO8859_8 $CONFIG_NLS_ISO8859_8 $CONFIG_NLS }
|
2067 |
|
|
global CONFIG_NLS_ISO8859_9
|
2068 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_ISO8859_9 $CONFIG_NLS_ISO8859_9 $CONFIG_NLS }
|
2069 |
|
|
global CONFIG_NLS_ISO8859_15
|
2070 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_ISO8859_15 $CONFIG_NLS_ISO8859_15 $CONFIG_NLS }
|
2071 |
|
|
global CONFIG_NLS_KOI8_R
|
2072 |
|
|
if {($CONFIG_NLS == 1 || $CONFIG_NLS == 2) && ($CONFIG_NLS == 1 || $CONFIG_NLS == 2)} then { write_tristate $cfg $autocfg CONFIG_NLS_KOI8_R $CONFIG_NLS_KOI8_R $CONFIG_NLS }
|
2073 |
|
|
global CONFIG_PROC_FS
|
2074 |
|
|
write_tristate $cfg $autocfg CONFIG_PROC_FS $CONFIG_PROC_FS $notmod
|
2075 |
|
|
global CONFIG_NFS_FS
|
2076 |
|
|
if {($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_NFS_FS $CONFIG_NFS_FS $notmod }
|
2077 |
|
|
global CONFIG_ROOT_NFS
|
2078 |
|
|
if {($CONFIG_INET == 1) && ($CONFIG_NFS_FS == 1)} then { write_tristate $cfg $autocfg CONFIG_ROOT_NFS $CONFIG_ROOT_NFS $notmod }
|
2079 |
|
|
global CONFIG_RNFS_BOOTP
|
2080 |
|
|
if {($CONFIG_INET == 1) && ($CONFIG_NFS_FS == 1) && ($CONFIG_ROOT_NFS == 1)} then { write_tristate $cfg $autocfg CONFIG_RNFS_BOOTP $CONFIG_RNFS_BOOTP $notmod }
|
2081 |
|
|
global CONFIG_RNFS_RARP
|
2082 |
|
|
if {($CONFIG_INET == 1) && ($CONFIG_NFS_FS == 1) && ($CONFIG_ROOT_NFS == 1)} then { write_tristate $cfg $autocfg CONFIG_RNFS_RARP $CONFIG_RNFS_RARP $notmod }
|
2083 |
|
|
global CONFIG_SMB_FS
|
2084 |
|
|
if {($CONFIG_INET == 1)} then { write_tristate $cfg $autocfg CONFIG_SMB_FS $CONFIG_SMB_FS $notmod }
|
2085 |
|
|
global CONFIG_SMB_WIN95
|
2086 |
|
|
if {($CONFIG_INET == 1) && ($CONFIG_SMB_FS != 0)} then { write_tristate $cfg $autocfg CONFIG_SMB_WIN95 $CONFIG_SMB_WIN95 $notmod }
|
2087 |
|
|
global CONFIG_NCP_FS
|
2088 |
|
|
if {($CONFIG_IPX != 0)} then { write_tristate $cfg $autocfg CONFIG_NCP_FS $CONFIG_NCP_FS $notmod }
|
2089 |
|
|
global CONFIG_NCPFS_PACKET_SIGNING
|
2090 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { write_tristate $cfg $autocfg CONFIG_NCPFS_PACKET_SIGNING $CONFIG_NCPFS_PACKET_SIGNING $notmod }
|
2091 |
|
|
global CONFIG_NCPFS_IOCTL_LOCKING
|
2092 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { write_tristate $cfg $autocfg CONFIG_NCPFS_IOCTL_LOCKING $CONFIG_NCPFS_IOCTL_LOCKING $notmod }
|
2093 |
|
|
global CONFIG_NCPFS_STRONG
|
2094 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { write_tristate $cfg $autocfg CONFIG_NCPFS_STRONG $CONFIG_NCPFS_STRONG $notmod }
|
2095 |
|
|
global CONFIG_NCPFS_NFS_NS
|
2096 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { write_tristate $cfg $autocfg CONFIG_NCPFS_NFS_NS $CONFIG_NCPFS_NFS_NS $notmod }
|
2097 |
|
|
global CONFIG_NCPFS_OS2_NS
|
2098 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { write_tristate $cfg $autocfg CONFIG_NCPFS_OS2_NS $CONFIG_NCPFS_OS2_NS $notmod }
|
2099 |
|
|
global CONFIG_NCPFS_MOUNT_SUBDIR
|
2100 |
|
|
if {($CONFIG_IPX != 0) && ($CONFIG_NCP_FS != 0)} then { write_tristate $cfg $autocfg CONFIG_NCPFS_MOUNT_SUBDIR $CONFIG_NCPFS_MOUNT_SUBDIR $notmod }
|
2101 |
|
|
global CONFIG_HPFS_FS
|
2102 |
|
|
write_tristate $cfg $autocfg CONFIG_HPFS_FS $CONFIG_HPFS_FS $notmod
|
2103 |
|
|
global CONFIG_SYSV_FS
|
2104 |
|
|
write_tristate $cfg $autocfg CONFIG_SYSV_FS $CONFIG_SYSV_FS $notmod
|
2105 |
|
|
global CONFIG_AUTOFS_FS
|
2106 |
|
|
if {($CONFIG_EXPERIMENTAL == 1)} then { write_tristate $cfg $autocfg CONFIG_AUTOFS_FS $CONFIG_AUTOFS_FS $notmod }
|
2107 |
|
|
global CONFIG_AFFS_FS
|
2108 |
|
|
if {($CONFIG_EXPERIMENTAL == 1)} then { write_tristate $cfg $autocfg CONFIG_AFFS_FS $CONFIG_AFFS_FS $notmod }
|
2109 |
|
|
global CONFIG_AMIGA_PARTITION
|
2110 |
|
|
if {($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_AFFS_FS != 0)} then {write_tristate $cfg $autocfg CONFIG_AMIGA_PARTITION 1 $notmod }
|
2111 |
|
|
global CONFIG_ROMFS_FS
|
2112 |
|
|
write_tristate $cfg $autocfg CONFIG_ROMFS_FS $CONFIG_ROMFS_FS $notmod
|
2113 |
|
|
global CONFIG_JFFS_FS
|
2114 |
|
|
write_tristate $cfg $autocfg CONFIG_JFFS_FS $CONFIG_JFFS_FS $notmod
|
2115 |
|
|
global CONFIG_UFS_FS
|
2116 |
|
|
write_tristate $cfg $autocfg CONFIG_UFS_FS $CONFIG_UFS_FS $notmod
|
2117 |
|
|
global CONFIG_BSD_DISKLABEL
|
2118 |
|
|
if {($CONFIG_UFS_FS != 0)} then { write_tristate $cfg $autocfg CONFIG_BSD_DISKLABEL $CONFIG_BSD_DISKLABEL $notmod }
|
2119 |
|
|
global CONFIG_SMD_DISKLABEL
|
2120 |
|
|
if {($CONFIG_UFS_FS != 0)} then { write_tristate $cfg $autocfg CONFIG_SMD_DISKLABEL $CONFIG_SMD_DISKLABEL $notmod }
|
2121 |
|
|
write_comment $cfg $autocfg "Character devices"
|
2122 |
|
|
global CONFIG_SERIAL
|
2123 |
|
|
write_tristate $cfg $autocfg CONFIG_SERIAL $CONFIG_SERIAL $notmod
|
2124 |
|
|
global CONFIG_WATCHDOG
|
2125 |
|
|
write_tristate $cfg $autocfg CONFIG_WATCHDOG $CONFIG_WATCHDOG $notmod
|
2126 |
|
|
global CONFIG_KEYBOARD
|
2127 |
|
|
write_tristate $cfg $autocfg CONFIG_KEYBOARD $CONFIG_KEYBOARD $notmod
|
2128 |
|
|
write_comment $cfg $autocfg "Kernel hacking"
|
2129 |
|
|
global CONFIG_PROFILE
|
2130 |
|
|
write_tristate $cfg $autocfg CONFIG_PROFILE $CONFIG_PROFILE $notmod
|
2131 |
|
|
global CONFIG_PROFILE_SHIFT
|
2132 |
|
|
if {($CONFIG_PROFILE == 1)} then { write_int $cfg $autocfg CONFIG_PROFILE_SHIFT $CONFIG_PROFILE_SHIFT $notmod }
|
2133 |
|
|
close $cfg
|
2134 |
|
|
close $autocfg
|
2135 |
|
|
}
|
2136 |
|
|
|
2137 |
|
|
|
2138 |
|
|
proc clear_choices { } {
|
2139 |
|
|
global CONFIG_OR32; set CONFIG_OR32 0
|
2140 |
|
|
global CONFIG_RAMKERNEL; set CONFIG_RAMKERNEL 0
|
2141 |
|
|
global CONFIG_ROMKERNEL; set CONFIG_ROMKERNEL 0
|
2142 |
|
|
}
|
2143 |
|
|
|
2144 |
|
|
|
2145 |
|
|
proc update_choices { } {
|
2146 |
|
|
global tmpvar_0
|
2147 |
|
|
global CONFIG_OR32
|
2148 |
|
|
if { $CONFIG_OR32 == 1 } then { set tmpvar_0 "OR32" }
|
2149 |
|
|
global tmpvar_1
|
2150 |
|
|
global CONFIG_RAMKERNEL
|
2151 |
|
|
if { $CONFIG_RAMKERNEL == 1 } then { set tmpvar_1 "RAM" }
|
2152 |
|
|
global CONFIG_ROMKERNEL
|
2153 |
|
|
if { $CONFIG_ROMKERNEL == 1 } then { set tmpvar_1 "ROM" }
|
2154 |
|
|
}
|
2155 |
|
|
|
2156 |
|
|
|
2157 |
|
|
proc update_define { } {
|
2158 |
|
|
global CONFIG_UCLINUX; set CONFIG_UCLINUX 0
|
2159 |
|
|
global CONFIG_AMIGA_PARTITION; set CONFIG_AMIGA_PARTITION 0
|
2160 |
|
|
set CONFIG_UCLINUX 1
|
2161 |
|
|
global CONFIG_EXPERIMENTAL; vfix CONFIG_EXPERIMENTAL
|
2162 |
|
|
global CONFIG_AFFS_FS; vfix CONFIG_AFFS_FS
|
2163 |
|
|
if {($CONFIG_EXPERIMENTAL == 1) && ($CONFIG_AFFS_FS != 0)} then { set CONFIG_AMIGA_PARTITION 1 }
|
2164 |
|
|
}
|
2165 |
|
|
|
2166 |
|
|
|
2167 |
|
|
set defaults "arch/or32/defconfig"
|
2168 |
|
|
|
2169 |
|
|
pack .header -side top -padx 10 -pady 10 -expand on
|
2170 |
|
|
pack .f0 -side top -padx 15 -pady 10 -fill y -expand on
|
2171 |
|
|
|
2172 |
|
|
#
|
2173 |
|
|
# Misc buttons to save/restore state and so forth.
|
2174 |
|
|
#
|
2175 |
|
|
frame .f0_bot
|
2176 |
|
|
frame .f0_bot.r
|
2177 |
|
|
frame .f0_bot.l
|
2178 |
|
|
|
2179 |
|
|
#
|
2180 |
|
|
# Read the user's settings from .config. These will override whatever is
|
2181 |
|
|
# in config.in. Don't do this if the user specified a -D to force
|
2182 |
|
|
# the defaults.
|
2183 |
|
|
#
|
2184 |
|
|
if { [file readable .config] == 1} then {
|
2185 |
|
|
if { $argc > 0 } then {
|
2186 |
|
|
if { [lindex $argv 0] != "-D" } then {
|
2187 |
|
|
read_config .config
|
2188 |
|
|
}
|
2189 |
|
|
else
|
2190 |
|
|
{
|
2191 |
|
|
read_config $defaults
|
2192 |
|
|
}
|
2193 |
|
|
} else {
|
2194 |
|
|
read_config .config
|
2195 |
|
|
}
|
2196 |
|
|
} else {
|
2197 |
|
|
read_config $defaults
|
2198 |
|
|
}
|
2199 |
|
|
|
2200 |
|
|
update_mainmenu .f0
|
2201 |
|
|
|
2202 |
|
|
button .f0_bot.r.save -text "Save and Exit" -width 25 -command {
|
2203 |
|
|
writeconfig .config include/linux/autoconf.h; wrapup .wrap }
|
2204 |
|
|
|
2205 |
|
|
button .f0_bot.r.quit -text "Quit Without Saving" -width 25 \
|
2206 |
|
|
-command { maybe_exit .maybe }
|
2207 |
|
|
|
2208 |
|
|
button .f0_bot.l.store -text "Store Configuration to File" -width 25 -command {
|
2209 |
|
|
load_configfile .load "Save Configuration in file" write_config_file
|
2210 |
|
|
}
|
2211 |
|
|
|
2212 |
|
|
button .f0_bot.l.load -text "Load Configuration from File" -width 25 -command {
|
2213 |
|
|
load_configfile .load "Load Configuration from file" read_config_file
|
2214 |
|
|
}
|
2215 |
|
|
|
2216 |
|
|
pack .f0_bot.r.save .f0_bot.r.quit -padx 25 -ipadx 10 -ipady 2 -expand on
|
2217 |
|
|
pack .f0_bot.l.load .f0_bot.l.store -padx 25 -ipadx 10 -ipady 2 -expand on
|
2218 |
|
|
|
2219 |
|
|
pack .f0_bot.r -side left -padx 15 -pady 10 -expand on -fill y
|
2220 |
|
|
pack .f0_bot.l -side right -padx 15 -pady 10 -expand on -fill y
|
2221 |
|
|
|
2222 |
|
|
pack .f0_bot -fill both -expand on
|
2223 |
|
|
|
2224 |
|
|
#
|
2225 |
|
|
# If we cannot write our config files, disable the write button.
|
2226 |
|
|
#
|
2227 |
|
|
if { [file exists .config] == 1 } then {
|
2228 |
|
|
if { [file writable .config] == 0 } then {
|
2229 |
|
|
.f0_bot.r.save configure -state disabled
|
2230 |
|
|
}
|
2231 |
|
|
} else {
|
2232 |
|
|
if { [file writable .] == 0 } then {
|
2233 |
|
|
.f0_bot.r.save configure -state disabled
|
2234 |
|
|
}
|
2235 |
|
|
}
|
2236 |
|
|
|
2237 |
|
|
if { [file exists include/linux/autoconf.h] == 1 } then {
|
2238 |
|
|
if { [file writable include/linux/autoconf.h] == 0 } then {
|
2239 |
|
|
.f0_bot.r.save configure -state disabled
|
2240 |
|
|
}
|
2241 |
|
|
} else {
|
2242 |
|
|
if { [file writable include/linux/] == 0 } then {
|
2243 |
|
|
.f0_bot.r.save configure -state disabled
|
2244 |
|
|
}
|
2245 |
|
|
}
|