Developing lightweight computation at the DSG edge

Commit 96fd3679 authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

Import "Remove unneeded greps introduced in...

Import "Remove unneeded greps introduced in commit:5bee2835 to optimize.".
parents 855206a7 4d731c09
......@@ -168,7 +168,7 @@ end
function qmpinfo.get_ipv4()
local ipv4 = {}
local ipv4_raw = util.exec("ip -4 a | grep inet | grep -v bmx6_ | awk '{print $2}'")
local ipv4_raw = util.exec("ip -4 a | awk '/inet/&&!/bmx6_/{print $2}'")
for _,v in ipairs(util.split(ipv4_raw)) do
if #util.trim(v) > 1 then
table.insert(ipv4,util.trim(v))
......
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