16 lines
265 B
Plaintext
16 lines
265 B
Plaintext
|
#!/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)"
|
||
|
|