mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
13 lines
352 B
Bash
Executable file
13 lines
352 B
Bash
Executable file
#!/bin/sh
|
|
uci -q batch <<-EOF
|
|
delete ucitrack.@omr-quota[-1]
|
|
add ucitrack omr-quota
|
|
set ucitrack.@omr-quota[-1].init="omr-quota"
|
|
commit ucitrack
|
|
EOF
|
|
if [ "$(uci -q get ucitrack.@network[-1].affects | grep omr-quota)" = "" ]; then
|
|
uci -q batch <<-EOF
|
|
add_list ucitrack.@network[-1].affects="omr-quota"
|
|
commit ucitrack
|
|
EOF
|
|
fi
|