sysutils/smart: merge version 1.2 from master

This commit is contained in:
Franco Fichtner 2017-11-19 08:44:08 +01:00
parent d5f43ce358
commit 6d51bdc742
2 changed files with 6 additions and 1 deletions

View file

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

View file

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