diff options
Diffstat (limited to 'src/usr/local/www/diag_smart.php')
-rw-r--r-- | src/usr/local/www/diag_smart.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_smart.php b/src/usr/local/www/diag_smart.php index 97f54fa..49674c2 100644 --- a/src/usr/local/www/diag_smart.php +++ b/src/usr/local/www/diag_smart.php @@ -31,7 +31,7 @@ require_once("guiconfig.inc"); // What page, aka. action is being wanted // If they "get" a page but don't pass all arguments, smartctl will throw an error -$action = (isset($_POST['action']) ? $_POST['action'] : $_GET['action']); +$action = $_POST['action']; $pgtitle = array(gettext("Diagnostics"), gettext("S.M.A.R.T. Status")); $pglinks = array("", "@self", "@self"); @@ -41,6 +41,7 @@ if ($action != 'config') { } else { $pgtitle[] = gettext('Config'); } + $smartctl = "/usr/local/sbin/smartctl"; $valid_test_types = array("offline", "short", "long", "conveyance"); |