enable cfw reset

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@762 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2012-02-23 22:06:39 +00:00
parent 3afef45f86
commit d8914e2311
5 changed files with 46 additions and 11 deletions

View File

@ -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

View File

@ -1,7 +0,0 @@
#!/bin/sh
echo "Content-Type: text/plain"
echo
/bin/rm -rf /mod/*

View File

@ -0,0 +1,7 @@
#!/bin/sh
echo "Content-Type: text/plain"
echo
touch /var/lib/humaxtv/mod/_RESET_CUSTOM_FIRMWARE_ENVIRONMENT

View File

@ -43,12 +43,34 @@ puts {
<tr>
<td colspan=2>
<button id=runreset style="width: 100%">
<button id=runreset style="width: 100%"
}
if {[system modversion 1] < 200} {
puts -nonewline " disabled class=ui-state-disabled"
}
puts {
>
Remove all custom firmware packages and settings
</button>
}
if {[system modversion 1] < 200} {
puts {
<div class=footnote style="text-align: center">
(This option will return with firmware 2.00)
(Install custom firmware v2.00 to enable this option)
</div>
}
}
puts {
<div id=resetdone class="hidden blood">
Restart your Humax with the remote control.<br>
Allow it to turn off completely before restarting.<br>
</div>
</td>
</tr>

View File

@ -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();
});
});
});