1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 11:01:50 +00:00

Fix MTU display

This commit is contained in:
Ycarus 2019-05-20 00:26:06 +02:00
parent b5ff7c70b0
commit 32bd34c930

View file

@ -1089,9 +1089,9 @@ function interfaces_status()
end end
end end
local mtu = uci:get("openmptcprouter",interface,"mtu") or "" local mtu = ut.trim(sys.exec("cat /sys/class/net/" .. ifname .. "/mtu | tr -d '\n'"))
if mtu == "" and ifname ~= nil then if mtu == "" and ifname ~= nil then
mtu = ut.trim(sys.exec("cat /sys/class/net/" .. ifname .. "/mtu | tr -d '\n'")) mtu = uci:get("openmptcprouter",interface,"mtu") or ""
end end
local data = { local data = {