#!/mod/bin/jimsh

source /mod/webif/lib/setup
require system.class

set modver [system modversion]
set modbuild [system modbuild]
if {$modbuild > 0} {
	append modver " (build $modbuild)"
}

puts "<span class=versions>
	Web interface version: [system pkgver webif]<br>
	Custom firmware version: $modver
"
catch {set fhtcpversion [system fhtcpversion]}
catch {set kernelver [system kernelver]}
puts "<br>Humax Version: $fhtcpversion (kernel $kernelver)"
puts "<br>Loader Version: [system loaderver]"
puts "<br>System ID: [system systemid]"
puts "<br>Serial Number: [system serialno]"
if {$mws::pagetag eq "Diagnostics"} {
	puts "<br>Encryption Key: [system encryptionkey]"
}
puts "<br>Last Boot Reason: [system lastbootreason]"

puts "</span>"

