mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add quota support and small others changes
This commit is contained in:
parent
6fe07f493b
commit
b549503be7
23 changed files with 397 additions and 59 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set luci.diag=external
|
||||
set luci.diag.ping="openmptcprouter.com"
|
||||
set luci.diag.dns="openmptcprouter.com"
|
||||
set luci.diag.route="openmptcprouter.com"
|
||||
|
|
19
openmptcprouter/files/etc/uci-defaults/1960-omr-qos
Executable file
19
openmptcprouter/files/etc/uci-defaults/1960-omr-qos
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete qos.wan
|
||||
set qos.wan1=interface
|
||||
set qos.wan1.classgroup="Default"
|
||||
set qos.wan1.enabled="0"
|
||||
set qos.wan1.upload="128"
|
||||
set qos.wan1.download="1024"
|
||||
set qos.wan2=interface
|
||||
set qos.wan2.classgroup="Default"
|
||||
set qos.wan2.enabled="0"
|
||||
set qos.wan2.upload="128"
|
||||
set qos.wan2.download="1024"
|
||||
commit qos
|
||||
EOF
|
||||
rm -f /tmp/luci-indexcache
|
||||
|
||||
exit 0
|
12
openmptcprouter/files/etc/uci-defaults/1970-omr-vnstat
Executable file
12
openmptcprouter/files/etc/uci-defaults/1970-omr-vnstat
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete vnstat.@vnstat[-1]
|
||||
add vnstat vnstat
|
||||
set vnstat.@vnstat[-1].interface="wan1"
|
||||
add_list vnstat.@vnstat[-1].interface="wan2"
|
||||
commit vnstat
|
||||
EOF
|
||||
rm -f /tmp/luci-indexcache
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue