immortalwrt/package/ctcgfw/luci-app-koolproxyR/files/etc/uci-defaults/luci-koolproxy

18 lines
399 B
Plaintext
Raw Normal View History

2019-09-22 12:46:08 +08:00
#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete ucitrack.@koolproxy[-1]
add ucitrack koolproxy
set ucitrack.@koolproxy[-1].init=koolproxy
commit ucitrack
delete firewall.koolproxy
set firewall.koolproxy=include
set firewall.koolproxy.type=script
set firewall.koolproxy.path=/var/etc/koolproxy.include
set firewall.koolproxy.reload=1
commit firewall
EOF
rm -f /tmp/luci-indexcache
exit 0