From 66e5d4f28e070e0280e5b2a97030c8d60d9ad664 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 1 Dec 2016 15:43:12 -0500 Subject: Print a message about SMART not working on uFW/SG-1000 (smartmontools is not available there) --- src/usr/local/www/diag_smart.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/usr/local/www/diag_smart.php') diff --git a/src/usr/local/www/diag_smart.php b/src/usr/local/www/diag_smart.php index 9858fd4..7b110e8 100644 --- a/src/usr/local/www/diag_smart.php +++ b/src/usr/local/www/diag_smart.php @@ -101,8 +101,8 @@ $tab_array[1] = array(gettext("Config"), ($action == 'config'), $_SERVER['PHP_SE display_top_tabs($tab_array); $specplatform = system_identify_specific_platform(); -if ($specplatform['name'] == "Hyper-V") { - echo gettext("S.M.A.R.T. is not supported in Hyper-V guests."); +if (($specplatform['name'] == "Hyper-V") || ($specplatform['name'] == "uFW")) { + echo sprintf(gettext("S.M.A.R.T. is not supported on this system (%s)."), $specplatform['descr']); include("foot.inc"); exit; } -- cgit v1.1