1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-24 06:44:21 +00:00
openmptcprouter-feeds/omr-quota/files/etc/uci-defaults/omr-quota

14 lines
362 B
Text
Raw Normal View History

#!/bin/sh
2019-04-18 07:11:57 +00:00
uci -q batch <<-EOF >/dev/null
2018-11-12 08:37:33 +00:00
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
2019-04-18 07:11:57 +00:00
uci -q batch <<-EOF >/dev/null
2018-11-12 08:37:33 +00:00
add_list ucitrack.@network[-1].affects="omr-quota"
commit ucitrack
EOF
fi
2018-11-12 08:37:33 +00:00
exit 0