
######################################################################
# Advanced Settings

puts -nonewline "
	<h4>Advanced Settings</h4>
	<div>
	<fieldset style=\"display: inline\">
	<legend> Advanced Settings </legend>
	<table>
"

setting_toggle "Show development and advanced packages?" "pkgdev" $pkgdev

if {[system nuggeted]} {
	setting_toggle "Real-time scheduling?" "rtschedule" $rtschedule
}

puts -nonewline "
	<tr>
	<form class=auto id=logsize method=get action=$env(SCRIPT_NAME)>
		<th class=key>Rotate logs when they exceed</th>
		<td><select name=logsize
		    class=\"text ui-widget-content ui-corner-all\">
"
set sizes { 102400 262144 524288 1048576 1572864 2097152 }
foreach size $sizes {
	puts -nonewline "<option value=$size"
	if {$logsize == $size} { puts -nonewline " selected" }
	puts ">[pretty_size $size]"
}
puts "
		</select>
		<small>
		<input value=\"set\" type=submit>
		</small>
		<div id=logsize_output></div>
		</td>
	</form>
	</tr>
"

setting_number logkeep "How many rotated logs to keep" $logkeep \
    1 100

if {[system modversion 1] >= 214} {
	setting_toggle "Disable telnet menu?" "xtelnet" \
	    [file exists /mod/boot/xtelnet] 0 1
}

puts "
	</table>
	</fieldset>
	</div>
"

