summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_smart.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-04-23 02:52:09 -0500
committerChris Buechler <cmb@pfsense.org>2016-04-23 02:52:09 -0500
commitdf5c2c73cee730192fa05fd31d270172f70baa91 (patch)
treec980b949bf0f67febb020d90e88b7efa2c4ec5df /src/usr/local/www/diag_smart.php
parentfe86a6630336536fe8d49047793868516711d960 (diff)
downloadpfsense-df5c2c73cee730192fa05fd31d270172f70baa91.zip
pfsense-df5c2c73cee730192fa05fd31d270172f70baa91.tar.gz
Add Hyper-V support to system_identify_specific_platform, and disable S.M.A.R.T. actions in Hyper-V guests. Ticket #6147
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