From 6d51bdc7423eae10c8b0a2f51e7a519784828e2a Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 19 Nov 2017 08:44:08 +0100 Subject: [PATCH] sysutils/smart: merge version 1.2 from master --- sysutils/smart/Makefile | 2 +- sysutils/smart/src/www/diag_smart.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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) {