Commit ee6a8076 authored by Ad Schellevis's avatar Ad Schellevis

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

parent 90a6bb77
......@@ -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];
......
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