|
|
@@ -1,5 +1,10 @@
|
|
|
<?php
|
|
|
header("Access-Control-Allow-Origin: *");
|
|
|
+// WARNING the smartctl binary seem is corrupted
|
|
|
+// you need smartctl 7.0.0 above to support JSON output
|
|
|
+// or you can choose to install by apt
|
|
|
+// in here are hard coded to static code for ease for debug
|
|
|
+// you should uncomment before use it
|
|
|
|
|
|
if($_GET["opr"] == "scan"){
|
|
|
//echo shell_exec('./smartctl_i386 --scan -j');
|