diff --git a/CONTROL/control b/CONTROL/control index 450a6758..e975bcef 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 1.3.3-1 +Version: 1.3.3-2 Architecture: mipsel Maintainer: af123@hpkg.tv Depends: tcpfix,webif-channelicons(>=1.1.24),lighttpd(>=1.4.39-1),jim(>=0.77),jim-oo(>=0.77),jim-sqlite3(>=0.76),jim-cgi(>=0.7-1),jim-binary(>=0.76),service-control(>=2.3),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.3),hmt(>=2.0.10),ssmtp,cron-daemon(>=1.18.3-3),at(>=3.1.18),anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.1.9),webif-charts(>=1.2-1),stripts(>=1.2.5-3),tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7),hwctl,nugget(>=0.95),sqlite3(>=3.15.1) diff --git a/webif/html/diag/disk.jim b/webif/html/diag/disk.jim index 59308355..2d8e21f9 100755 --- a/webif/html/diag/disk.jim +++ b/webif/html/diag/disk.jim @@ -100,8 +100,10 @@ foreach line [split [exec /bin/smartctl -A $device] "\n"] { regsub -all -- {[[:space:]]+} $line " " line regsub -all -- {^[[:space:]]+} $line "" line if {[incr i] < 8} continue + if {$line eq ""} continue lassign [split $line] \ id name flags val worst thresh type updated when rval + if {$id eq ""} continue set class normal switch $id { 5 { @@ -125,6 +127,7 @@ foreach line [split [exec /bin/smartctl -A $device] "\n"] { set class redshade } set left "" + if {$flags eq ""} { set flags 0 } if {$id ni $nolife && [expr $flags & 0x18] == 0x10 && $val == $worst && $val <= 100 && $thresh < 100} { diff --git a/webif/lib/setup b/webif/lib/setup index c27c4627..6a0195c0 100644 --- a/webif/lib/setup +++ b/webif/lib/setup @@ -55,7 +55,10 @@ if {![exists -proc require]} { proc ::mws::setpagetitle {} { global env if {[info exists ::mws::pagetitle]} return - if {![dict exists $env REQUEST_URI]} return + if {![dict exists $env REQUEST_URI]} { + set ::mws::pagetitle "CLI" + return + } if {![info exists ::mws::pagetag]} { switch -glob -- $env(REQUEST_URI) { "/sched/*" { set ::mws::pagetag "Schedule" }