mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Small changes
This commit is contained in:
parent
b542314d36
commit
0bf5cedb7c
2 changed files with 9 additions and 5 deletions
|
@ -737,6 +737,9 @@ function interfaces_status()
|
||||||
end
|
end
|
||||||
|
|
||||||
local mtu = uci:get("openmptcprouter",interface,"mtu") or ""
|
local mtu = uci:get("openmptcprouter",interface,"mtu") or ""
|
||||||
|
if mtu == "" then
|
||||||
|
mtu = ut.trim(sys.exec("cat /sys/class/net/" .. ifname .. "/mtu | tr -d '\n'"))
|
||||||
|
end
|
||||||
|
|
||||||
local data = {
|
local data = {
|
||||||
label = section["label"] or interface,
|
label = section["label"] or interface,
|
||||||
|
|
|
@ -22,8 +22,9 @@ if [ "$(uci -q get qos.serverin.target)" = "" ]; then
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
if [ "$(uci -q ucitrack.@network[-1].affects | grep openmptcprouter)" = "" ]; then
|
if [ "$(uci -q ucitrack.@network[-1].affects | grep openmptcprouter)" = "" ]; then
|
||||||
uci -q batch <<-EOF
|
uci -q batch <<-EOF
|
||||||
add_list ucitrack.@network[-1].affects="openmptcprouter"
|
add_list ucitrack.@network[-1].affects="openmptcprouter"
|
||||||
commit ucitrack
|
commit ucitrack
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
uci -q set openmptcprouter.vps=vps
|
Loading…
Add table
Add a link
Reference in a new issue