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:
parent
b5ff7c70b0
commit
32bd34c930
1 changed files with 2 additions and 2 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue