git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1708 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2013-10-23 20:38:25 +00:00
parent 4fc05273e1
commit a505022d39
3 changed files with 5 additions and 4 deletions

View File

@ -71,6 +71,7 @@ foreach tw [$db query {
"ITV3" { set mux "COM4/SDN" }
"Dave" { set mux "COM5/ARQ A" }
"Film4" { set mux "COM6/ARQ B" }
"BBC News HD" { set mux "COM7/ARQ C" }
"Movies4Men" { set mux "Local" }
}
}

View File

@ -4,7 +4,7 @@ source /mod/webif/lib/setup
require system.class ts.class
proc scan {dir} {
puts "Fixing $dir..."
puts "Resetting unwatched count on $dir..."
file stat "$dir/" st
if {$st(dev) != $::rootdev} { return }

View File

@ -35,7 +35,7 @@ class settings {
settings method hostname {{name ""}} {
if {$name == ""} {
# Get
if {[catch {set fd [open "/var/lib/humaxtv/mod/hostname" r]}]} {
if {[catch {set fd [open "/var/lib/humaxtv/hostname" r]}]} {
set name "humax"
} else {
set name [string trim [read $fd]]
@ -45,10 +45,10 @@ settings method hostname {{name ""}} {
} else {
# Set
if [string is alnum -strict $name] {
set fd [open "/var/lib/humaxtv/mod/hostname" w]
set fd [open "/var/lib/humaxtv/hostname" w]
puts $fd $name
close $fd
exec hostname -F /var/lib/humaxtv/mod/hostname
exec hostname -F /var/lib/humaxtv/hostname
}
}
}