webif/var/mongoose/include/model.jim
hummypkg 8f3971cf76 updates
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif@171 2a923420-c742-0410-a762-8d5b09965624
2011-06-09 21:16:30 +00:00

16 lines
265 B
Plaintext
Executable File

#!/mod/bin/jimsh
if {[catch {set fp [open /etc/model r]}]} {
set model {HD[R]}
} else {
set model [string trim [read $fp]]
close $fp
}
if {[catch {set hostname [string trim [exec hostname]]}]} {
set hostname "humax"
}
puts "Humax $model Fox T2 ($hostname)"