mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51: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
|
||||
|
||||
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
|
||||
mtu = ut.trim(sys.exec("cat /sys/class/net/" .. ifname .. "/mtu | tr -d '\n'"))
|
||||
mtu = uci:get("openmptcprouter",interface,"mtu") or ""
|
||||
end
|
||||
|
||||
local data = {
|
||||
|
|
Loading…
Reference in a new issue