diff --git a/CONTROL/control b/CONTROL/control index af68684..2c74dd3 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.9.3-3 +Version: 0.9.3-4 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: 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.6),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file diff --git a/var/mongoose/cgi-bin/cfwreset b/var/mongoose/cgi-bin/cfwreset deleted file mode 100755 index 0507f8e..0000000 --- a/var/mongoose/cgi-bin/cfwreset +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -echo "Content-Type: text/plain" -echo - -/bin/rm -rf /mod/* - diff --git a/var/mongoose/cgi-bin/cfwreset.cgi b/var/mongoose/cgi-bin/cfwreset.cgi new file mode 100755 index 0000000..9ebfce4 --- /dev/null +++ b/var/mongoose/cgi-bin/cfwreset.cgi @@ -0,0 +1,7 @@ +#!/bin/sh + +echo "Content-Type: text/plain" +echo + +touch /var/lib/humaxtv/mod/_RESET_CUSTOM_FIRMWARE_ENVIRONMENT + diff --git a/var/mongoose/html/diag/diag.jim b/var/mongoose/html/diag/diag.jim index 85e7c39..269ee94 100755 --- a/var/mongoose/html/diag/diag.jim +++ b/var/mongoose/html/diag/diag.jim @@ -43,12 +43,34 @@ puts { - +} + +if {[system modversion 1] < 200} { + puts {
-(This option will return with firmware 2.00) +(Install custom firmware v2.00 to enable this option)
+ } +} + +puts { + + + diff --git a/var/mongoose/html/diag/script.js b/var/mongoose/html/diag/script.js index 6497f9d..0f3f8d7 100644 --- a/var/mongoose/html/diag/script.js +++ b/var/mongoose/html/diag/script.js @@ -39,7 +39,20 @@ $('#runedit').click(function(e) { window.location = '/edit/edit.jim'; }); -$('#runreset').disable(); +$('#runreset').click(function(e) { + e.preventDefault(); + if (!confirm('Are you sure? This will completely remove all packages and settings.')) + return; + if (!confirm('Are you really sure?')) + return; + if (!confirm('One last time, are you sure?')) + return; + $.get('/cgi-bin/cfwreset.cgi', function() { + $('button').disable(); + $('#resetdone').slideDown(); + }); +}); }); +