Explorar o código

Update 'DiskInfo/opr.php'

Yeung Alan %!s(int64=6) %!d(string=hai) anos
pai
achega
32cc7f5c6f
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      DiskInfo/opr.php

+ 5 - 0
DiskInfo/opr.php

@@ -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');