diff --git a/sysutils/smart/Makefile b/sysutils/smart/Makefile index 0a23fbb94..7950b318d 100644 --- a/sysutils/smart/Makefile +++ b/sysutils/smart/Makefile @@ -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 diff --git a/sysutils/smart/src/www/diag_smart.php b/sysutils/smart/src/www/diag_smart.php index b43cd2bc6..302702c2b 100644 --- a/sysutils/smart/src/www/diag_smart.php +++ b/sysutils/smart/src/www/diag_smart.php @@ -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) { ?>
@@ -302,6 +304,9 @@ switch($action) {