mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Support wan1 to wan4
This commit is contained in:
parent
7d035a949b
commit
f2c9e12676
5 changed files with 115 additions and 12 deletions
|
@ -25,6 +25,26 @@ if [ "$(uci -q get qos.wan1)" = "" ]; then
|
|||
set qos.@classify[-1].comments='Steam'
|
||||
commit qos
|
||||
EOF
|
||||
if [ "$(uci -q get network.wan3)" != "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set qos.wan3=interface
|
||||
set qos.wan3.classgroup="Default"
|
||||
set qos.wan3.enabled="0"
|
||||
set qos.wan3.upload="4000"
|
||||
set qos.wan3.download="100000"
|
||||
commit qos
|
||||
EOF
|
||||
fi
|
||||
if [ "$(uci -q get network.wan4)" != "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set qos.wan4=interface
|
||||
set qos.wan4.classgroup="Default"
|
||||
set qos.wan4.enabled="0"
|
||||
set qos.wan4.upload="4000"
|
||||
set qos.wan4.download="100000"
|
||||
commit qos
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
rm -f /tmp/luci-indexcache
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue