Commit de1d8a14 authored by Ad Schellevis's avatar Ad Schellevis
parent ed5c0dde
......@@ -118,7 +118,7 @@ function system_api_disk()
$result['devices'] = array();
exec("/bin/df -Tht ufs,tmpfs,zfs,cd9660", $disk_info);
foreach ($disk_info as $line) {
if (strpos($line,'/dev/') !== false) {
if (strpos($line,'Mounted on') === false) {
$parts = preg_split('/\s+/', $line);
$diskItem = array();
$diskItem['device'] = $parts[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment