2012-02-22 19:09:46 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
|
|
|
package require cgi
|
2012-05-21 20:23:41 +00:00
|
|
|
source /mod/webif/lib/setup
|
2012-11-25 00:22:18 +00:00
|
|
|
require pretty_size system.class pkg.class
|
2012-02-22 19:09:46 +00:00
|
|
|
|
|
|
|
puts "Content-Type: text/html"
|
|
|
|
puts ""
|
|
|
|
|
2012-11-25 00:22:18 +00:00
|
|
|
pkg loaddiagmeta
|
|
|
|
|
2012-11-05 22:36:04 +00:00
|
|
|
set smv [system modversion 1]
|
|
|
|
|
2012-02-22 19:09:46 +00:00
|
|
|
header
|
|
|
|
|
|
|
|
puts {
|
|
|
|
<script type=text/javascript src=/js/enadis.js></script>
|
|
|
|
<script type=text/javascript src=script.js></script>
|
|
|
|
|
|
|
|
<fieldset class=cleft>
|
|
|
|
<legend>Utilities</legend>
|
|
|
|
<table>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Run Diagnostic:</td>
|
2012-11-25 00:22:18 +00:00
|
|
|
<td class=va><span class=cleft>
|
|
|
|
<select name=diagsel id=diagsel class="text ui-widget-content ui-corner-all">
|
|
|
|
<option value=0>-- Select diag or type name in box below --
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach diag [array names ::diagmeta] {
|
|
|
|
puts "<option value=\"$diag\">$diag\n"
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {
|
|
|
|
</select><br>
|
|
|
|
<input name=seq id=seq autocorrect=off autocapitalize=off
|
|
|
|
value="general" size=30 maxlength=50
|
2012-02-22 19:09:46 +00:00
|
|
|
class="text ui-widget-content ui-corner-all">
|
2012-11-25 00:22:18 +00:00
|
|
|
</span>
|
|
|
|
<span class="left va">
|
2012-02-22 19:09:46 +00:00
|
|
|
<button id=rundiag>Run Diagnostic</button>
|
2012-11-25 00:22:18 +00:00
|
|
|
</span>
|
2012-02-22 19:09:46 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Package:</td>
|
|
|
|
<td><input name=fopkg id=fopkg autocorrect=off autocapitalize=off
|
|
|
|
value='' size=30 maxlength=50
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
<button id=runfopkg>Force re-install</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2012-04-05 20:59:08 +00:00
|
|
|
<tr><td colspan=2 style="height: 10px"></td></tr>
|
|
|
|
|
2012-04-05 20:30:40 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan=2 align=center>
|
|
|
|
<button id=runedit style="width: 48%">File Editor</button>
|
|
|
|
<button id=dbinfo style="width: 48%">Database Browser</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2012-02-22 19:09:46 +00:00
|
|
|
<tr>
|
2012-04-05 20:59:08 +00:00
|
|
|
<td colspan=2 align=center>
|
2012-11-09 21:56:36 +00:00
|
|
|
}
|
|
|
|
if {[system model] eq "HDR"} {
|
|
|
|
puts { <button id=diskdiag style="width: 48%">Hard Disc</button> }
|
|
|
|
}
|
|
|
|
puts {
|
2012-04-05 20:59:08 +00:00
|
|
|
<button id=channelinfo style="width: 48%">Channel Information</button>
|
2012-02-22 19:09:46 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2012-04-08 23:26:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if {[system model] eq "HDR"} {
|
|
|
|
puts {
|
|
|
|
<tr>
|
|
|
|
<td colspan=2 align=center>
|
|
|
|
<button id=dlna style="width: 48%">DLNA Server</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {
|
|
|
|
|
2012-04-05 20:59:08 +00:00
|
|
|
<tr><td colspan=2 style="height: 10px"></td></tr>
|
|
|
|
|
2012-03-11 00:26:14 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan=2>
|
|
|
|
<button id=reboot style="width: 100%">Reboot System</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2012-02-22 19:09:46 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan=2>
|
2012-02-23 22:06:39 +00:00
|
|
|
<button id=runreset style="width: 100%"
|
|
|
|
}
|
|
|
|
|
2012-11-05 22:36:04 +00:00
|
|
|
if {$smv < 200} {
|
2012-02-23 22:06:39 +00:00
|
|
|
puts -nonewline " disabled class=ui-state-disabled"
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {
|
|
|
|
>
|
2012-02-22 19:09:46 +00:00
|
|
|
Remove all custom firmware packages and settings
|
|
|
|
</button>
|
2012-02-23 22:06:39 +00:00
|
|
|
}
|
|
|
|
|
2012-11-05 22:36:04 +00:00
|
|
|
if {$smv < 200} {
|
2012-02-23 22:06:39 +00:00
|
|
|
puts {
|
2012-02-22 19:09:46 +00:00
|
|
|
<div class=footnote style="text-align: center">
|
2012-02-23 22:06:39 +00:00
|
|
|
(Install custom firmware v2.00 to enable this option)
|
2012-02-22 19:09:46 +00:00
|
|
|
</div>
|
2012-02-23 22:06:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
2012-02-22 19:09:46 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2012-11-05 22:36:04 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan=2>
|
|
|
|
<button id=runrma style="width: 100%"
|
|
|
|
}
|
|
|
|
|
|
|
|
if {$smv < 213} {
|
|
|
|
puts -nonewline " disabled class=ui-state-disabled"
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {
|
|
|
|
>
|
|
|
|
Set Return-to-manufacturer (RMA) Mode
|
|
|
|
</button>
|
|
|
|
}
|
|
|
|
|
|
|
|
if {$smv < 213} {
|
|
|
|
puts {
|
|
|
|
<div class=footnote style="text-align: center">
|
|
|
|
(Install custom firmware v2.13 to enable this option)
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2012-02-22 19:09:46 +00:00
|
|
|
</table>
|
2012-04-05 20:59:08 +00:00
|
|
|
<span class=also style="padding-left: 5px">
|
|
|
|
View:
|
2012-04-05 20:30:40 +00:00
|
|
|
<a href=/jim/ref.html target=_blank>Jim Reference Manual</a> |
|
|
|
|
<a href=/jim/oo.html target=_blank>OO</a> |
|
|
|
|
<a href=/jim/sqlite.html target=_blank>Sqlite</a>
|
2012-04-05 20:59:08 +00:00
|
|
|
</span>
|
2012-02-22 19:09:46 +00:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class=left>
|
|
|
|
<legend>View Log Files</legend>
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach file [lsort [concat \
|
|
|
|
[glob -nocomplain /var/log/*.log] \
|
|
|
|
[glob -nocomplain /mod/tmp/*.log] \
|
2012-10-30 18:58:54 +00:00
|
|
|
[glob -nocomplain /mnt/hd3/*.log] \
|
2012-02-22 19:09:46 +00:00
|
|
|
]] {
|
|
|
|
puts "<a href=# class=log file=\"$file\">
|
|
|
|
<img border=0 height=14 src=/images/421_1_00_CH_Title_2R_Arrow.png>
|
|
|
|
[file tail $file]</a> ([pretty_size [file size $file]]) <br>"
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<div style="margin-top: 2em; display: none; float: left; clear: left"
|
|
|
|
id=results></div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
footer
|
|
|
|
|