summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_smart.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/diag_smart.php')
-rw-r--r--src/usr/local/www/diag_smart.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/usr/local/www/diag_smart.php b/src/usr/local/www/diag_smart.php
index 1bb0a37..baeef54 100644
--- a/src/usr/local/www/diag_smart.php
+++ b/src/usr/local/www/diag_smart.php
@@ -126,6 +126,13 @@ $tab_array[0] = array(htmlspecialchars(gettext("Information & Tests")), ($action
$tab_array[1] = array(gettext("Config"), ($action == 'config'), $_SERVER['PHP_SELF'] . "?action=config");
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.");
+ include("foot.inc");
+ exit;
+}
+
switch ($action) {
// Testing devices
case 'test':
OpenPOWER on IntegriCloud