diff --git a/packages/lime-system/files/usr/lib/lua/lime/network.lua b/packages/lime-system/files/usr/lib/lua/lime/network.lua index ba5b89b76..bcdaf8f03 100644 --- a/packages/lime-system/files/usr/lib/lua/lime/network.lua +++ b/packages/lime-system/files/usr/lib/lua/lime/network.lua @@ -214,7 +214,7 @@ function network.clean() end function network._get_lower(dev) - local lower_if_path = utils.unsafe_shell("ls -d /sys/class/net/" .. dev .. "/lower*") + local lower_if_path = utils.unsafe_shell("ls /sys/class/net/" .. dev .. "/ | grep ^lower") local lower_if_table = utils.split(lower_if_path, "_") local lower_if = lower_if_table[#lower_if_table] return lower_if and lower_if:gsub("\n", "")