1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 19:11:51 +00:00
openmptcprouter-feeds/luci-app-openmptcprouter/root/etc/uci-defaults/openmptcprouter

29 lines
No EOL
785 B
Bash
Executable file

#!/bin/sh
uci -q batch <<-EOF
delete ucitrack.@openmptcprouter[-1]
add ucitrack openmptcprouter
set ucitrack.@openmptcprouter[-1].init=openmptcprouter
commit ucitrack
EOF
if [ "$(uci -q get qos.serverin)" = "" ]; then
uci -q batch <<-EOF
set qos.serverin=classify
set qos.serverin.target='Priority'
set qos.serverout=classify
set qos.serverout.target='Priority'
commit qos
EOF
fi
if [ "$(uci -q get qos.serverin.target)" = "" ]; then
uci -q batch <<-EOF
set qos.serverin.target='Priority'
set qos.serverout.target='Priority'
commit qos
EOF
fi
if [ "$(uci -q ucitrack.@network[-1].affects | grep openmptcprouter)" = "" ]; then
uci -q batch <<-EOF
add_list ucitrack.@network[-1].affects="openmptcprouter"
commit ucitrack
EOF
fi