mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
Add Extended info (smartctl -x) for os-smart plugin. (#4508)
This commit is contained in:
parent
cbc910d318
commit
09cfdf639a
2 changed files with 3 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ class ServiceController extends ApiControllerBase
|
|||
return array("message" => "Invalid device name");
|
||||
}
|
||||
|
||||
$valid_info_types = array("i", "H", "c", "A", "a");
|
||||
$valid_info_types = array("i", "H", "c", "A", "a", "x");
|
||||
|
||||
if (!in_array($type, $valid_info_types)) {
|
||||
return array("message" => "Invalid info type");
|
||||
|
|
|
|||
|
|
@ -138,7 +138,8 @@
|
|||
<label><input type="radio" name="type" value="H" checked="checked" />{{ lang._('Health') }}</label>
|
||||
<label><input type="radio" name="type" value="c" />{{ lang._('SMART Capabilities') }}</label>
|
||||
<label><input type="radio" name="type" value="A" />{{ lang._('Attributes') }}</label>
|
||||
<label><input type="radio" name="type" value="a" />{{ lang._('All') }}</label>
|
||||
<label><input type="radio" name="type" value="a" />{{ lang._('All') }}</label>
|
||||
<label><input type="radio" name="type" value="x" />{{ lang._('Extended') }}</label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Reference in a new issue