mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
sysutils/smart: merge version 1.2 from master
This commit is contained in:
parent
d5f43ce358
commit
6d51bdc742
2 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
PLUGIN_NAME= smart
|
||||
PLUGIN_VERSION= 1.1
|
||||
PLUGIN_VERSION= 1.2
|
||||
PLUGIN_COMMENT= SMART tools
|
||||
PLUGIN_DEPENDS= smartmontools
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
|
|
|||
|
|
@ -137,6 +137,8 @@ switch($action) {
|
|||
|
||||
// Get all AD* and DA* (IDE and SCSI) devices currently installed and stores them in the $devs array
|
||||
exec("ls /dev | grep '^\(ad\|da\|ada\)[0-9]\{1,2\}$'", $devs);
|
||||
|
||||
if (count($devs) > 0) {
|
||||
?>
|
||||
|
||||
<div class="content-box tab-content table-responsive">
|
||||
|
|
@ -302,6 +304,9 @@ switch($action) {
|
|||
</section>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
echo gettext("No SMART devices.");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue