fix modversion.jim

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1856 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2014-04-27 14:49:46 +00:00
parent cd3cbf186c
commit c76e6638a4
4 changed files with 19 additions and 16 deletions

View File

@ -1,7 +1,7 @@
Package: webif
Priority: optional
Section: web
Version: 1.0.11-3
Version: 1.0.11-4
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: webif-channelicons(>=1.1.10),mongoose(>=3.0.11),jim(>=0.75-1),jim-oo,jim-sqlite3(>=0.75),jim-cgi(>=0.7),jim-binary(>=0.75),service-control(>=1.2),busybox(>=1.20.2-1),lsof,epg(>=1.0.13),hmt(>=1.1.14),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.05),ffmpeg,id3v2,multienv(>=1.6)

View File

@ -1,9 +1,9 @@
#!/mod/bin/jimsh
source /mod/webif/lib/setup
httpheader "text/plain"
httpheader
foreach f [dict keys $env] {
puts "$f = $env($f)"
}
puts "<pre>"
parray env
puts "</pre>"

View File

@ -9,15 +9,18 @@ if {$modbuild > 0} {
append modver " (build $modbuild)"
}
puts "<font class=blood style=\"font-size: 0.9em; float: right; clear: right\">
Web interface version: [system pkgver webif]<br>
if {[dict exists $env SERVER_SOFTWARE]} {
set wstype "Lighttpd"
} else {
set wstype "Mongoose"
}
puts "<span class=blood style=\"font-size: 0.9em; float: right; clear: right\">
Web interface version: [system pkgver webif] ($wstype)<br>
Custom firmware version: $modver
"
if {![catch {set fhtcpversion [system fhtcpversion]}]} {
puts "<br>Humax Version: $fhtcpversion"
}
if {![catch {set kernelver [system kernelver]}]} {
puts "<br>Kernel Version: $kernelver"
}
puts "</font>"
catch {set fhtcpversion [system fhtcpversion]}
catch {set kernelver [system kernelver]}
puts "<br>Humax Version: $fhtcpversion (kernel $kernelver)"
puts "</span>"

View File

@ -82,7 +82,7 @@ proc {system kernelver} {} {
"Mar 6 07:27:02 KST 2013" { format "HDR_1.03.06(a)" }
"May 8 14:32:30 KST 2013" { format "HDR_1.03.06(b)" }
"Dec 10 14:36:54 KST 2013" { format "HDR_1.03.11" }
"Fri Feb 7 14:15:02 KST 2014 " { format "HDR_1.03.12" }
"Feb 7 14:15:02 KST 2014 " { format "HDR_1.03.12" }
# HD
"Oct 11 21:14:31 KST 2010" { format "HD_1.01.12" }
@ -93,7 +93,7 @@ proc {system kernelver} {} {
"Jul 5 19:41:17 KST 2012 " { format "HD_1.02.29" }
"Oct 13 12:48:09 KST 2012" { format "HD_1.02.31" }
- { format "Unknown - $ver" }
default { format "Unknown - $ver" }
}]
}