(util.inc) fix grep: writing output: Broken pipe when running get_interface_list

This commit is contained in:
Ad Schellevis 2016-08-04 20:53:17 +02:00
parent 90a6bb777e
commit ee6a807688

View File

@ -965,7 +965,7 @@ function get_interface_list($only_active = false)
}
$dmesg_arr = array();
exec("/sbin/dmesg |grep $ifname | head -n1", $dmesg_arr);
exec("/sbin/dmesg |grep $ifname", $dmesg_arr);
preg_match_all("/<(.*?)>/i", $dmesg_arr[0], $dmesg);
if (isset($dmesg[1][0])) {
$toput['dmesg'] = $dmesg[1][0];