mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Fix uci omr-bypass
This commit is contained in:
parent
65adb4ec9e
commit
b0894b2d46
1 changed files with 9 additions and 9 deletions
18
luci-app-omr-bypass/root/etc/uci-defaults/41_omr-bypass
Normal file → Executable file
18
luci-app-omr-bypass/root/etc/uci-defaults/41_omr-bypass
Normal file → Executable file
|
@ -54,15 +54,15 @@ if [ "$(uci -q get ucitrack.@shadowsocks-libev[-1].affects | grep omr-bypass)" !
|
||||||
del_list ucitrack.@shadowsocks-libev[-1].affects=omr-bypass
|
del_list ucitrack.@shadowsocks-libev[-1].affects=omr-bypass
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
s=firewall.omr-bypass
|
|
||||||
uci get "$s" >/dev/null || {
|
if [ "$(uci -q get firewall.omr-bypass)" = "" ]; then
|
||||||
uci batch <<-EOF
|
uci -q batch <<-EOF >/dev/null
|
||||||
set $s=include
|
set firewall.omr-bypass=include
|
||||||
set $s.path=/etc/firewall.omr-bypass
|
set firewall.omr-bypass.path=/etc/firewall.omr-bypass
|
||||||
set $s.reload=1
|
set firewall.omr-bypass.reload=1
|
||||||
commit firewall
|
commit firewall
|
||||||
EOF
|
EOF
|
||||||
}
|
fi
|
||||||
|
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue