From e666711eeb207466cda35b44cb2eeeffbdbda36c Mon Sep 17 00:00:00 2001 From: hummypkg Date: Sun, 25 Nov 2012 00:22:18 +0000 Subject: [PATCH] various changes git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1250 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 4 +-- var/mongoose/cgi-bin/browse/clipboard.jim | 6 +++-- var/mongoose/cgi-bin/opkg.jim | 3 +++ var/mongoose/html/diag/diag.jim | 22 ++++++++++++++--- var/mongoose/html/diag/script.js | 9 ++++--- var/mongoose/html/services.shtml | 10 +++++++- var/mongoose/include/restart.jim | 7 +++++- var/mongoose/lib/pkg.class | 30 +++++++++++++++++++++++ 8 files changed, 79 insertions(+), 12 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index fa3ba34..2e0f896 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,9 +1,9 @@ Package: webif Priority: optional Section: web -Version: 0.10.1 +Version: 0.10.1-1 Architecture: mipsel Maintainer: af123@hummypkg.org.uk -Depends: webif-channelicons(>=1.0.3),mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.7),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.1.2),smartmontools +Depends: webif-channelicons(>=1.0.3),mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.7),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.1.2),smartmontools,tmenu(>=1.02) Suggests: ffmpeg Description: An evolving web interface for the Humax. diff --git a/var/mongoose/cgi-bin/browse/clipboard.jim b/var/mongoose/cgi-bin/browse/clipboard.jim index 333e96d..294b327 100755 --- a/var/mongoose/cgi-bin/browse/clipboard.jim +++ b/var/mongoose/cgi-bin/browse/clipboard.jim @@ -110,9 +110,11 @@ switch $action { } } else { if {$mode eq "cut"} { - catch {file rename $path "$dir/[file tail $f]"} + catch {file rename $path \ + "$dir/[file tail $path]"} } else { - catch {file copy $path "$dir/[file tail $f]"} + catch {file copy $path \ + "$dir/[file tail $path]"} } } } diff --git a/var/mongoose/cgi-bin/opkg.jim b/var/mongoose/cgi-bin/opkg.jim index 7fb713b..583f8ef 100755 --- a/var/mongoose/cgi-bin/opkg.jim +++ b/var/mongoose/cgi-bin/opkg.jim @@ -30,6 +30,9 @@ if {$cmd eq "update" || $cmd eq "upgrade"} { chunk "Updating package meta information\r\n" pkg fetchmeta chunk "Done.\r\n" + chunk "Updating diagnostic meta information\r\n" + pkg fetchdiagmeta + chunk "Done.\r\n" } end_chunked diff --git a/var/mongoose/html/diag/diag.jim b/var/mongoose/html/diag/diag.jim index bb986d2..133a15b 100755 --- a/var/mongoose/html/diag/diag.jim +++ b/var/mongoose/html/diag/diag.jim @@ -2,11 +2,13 @@ package require cgi source /mod/webif/lib/setup -require pretty_size system.class +require pretty_size system.class pkg.class puts "Content-Type: text/html" puts "" +pkg loaddiagmeta + set smv [system modversion 1] header @@ -21,10 +23,24 @@ puts { Run Diagnostic: - +
+ +
+ + diff --git a/var/mongoose/html/diag/script.js b/var/mongoose/html/diag/script.js index 349ed0a..d59c3c2 100644 --- a/var/mongoose/html/diag/script.js +++ b/var/mongoose/html/diag/script.js @@ -4,11 +4,14 @@ $(function() { $('button').button(); $('#rundiag').click(function() { + var val = $('#diagsel').val(); + if (val == '0') + val = $('#seq').val(); $('#results') .slideDown() - .text('\n\nRunning diagnostic, please wait...\n\n') - .load('rundiag.jim?diag=' + - encodeURIComponent($('#seq').val()), function() { + .html('

' + + 'Running diagnostic, please wait...') + .load('rundiag.jim?diag=' + encodeURIComponent(val), function() { $('#results').wrapInner('
');
 	    });
 });
diff --git a/var/mongoose/html/services.shtml b/var/mongoose/html/services.shtml
index 6b541b2..d713c21 100644
--- a/var/mongoose/html/services.shtml
+++ b/var/mongoose/html/services.shtml
@@ -1,14 +1,22 @@
 
 
 
+