mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
(util.inc) fix grep: writing output: Broken pipe when running get_interface_list
This commit is contained in:
parent
90a6bb777e
commit
ee6a807688
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user