From de1d8a14920d2a0ec62520fcc0f30e79aea48c8f Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 9 May 2016 08:42:45 +0200 Subject: [PATCH] (dashboard, widget api) fix https://github.com/opnsense/core/commit/82fd7db543ca69ca04dcfc3089496748e77f1a6d#commitcomment-17392735 --- src/www/widgets/api/plugins/system.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/widgets/api/plugins/system.inc b/src/www/widgets/api/plugins/system.inc index a60b05c66..dfe52285e 100644 --- a/src/www/widgets/api/plugins/system.inc +++ b/src/www/widgets/api/plugins/system.inc @@ -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];