immortalwrt/package/lienol/luci-app-ssr-python-pro-server/root/etc/uci-defaults/luci-app-ssr-python-pro-server
2020-02-24 13:55:07 +08:00

22 lines
611 B
Bash
Executable File

#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete firewall.ssr_python_pro_server
set firewall.ssr_python_pro_server=include
set firewall.ssr_python_pro_server.type=script
set firewall.ssr_python_pro_server.path=/usr/share/ssr_python_pro_server/firewall.include
set firewall.ssr_python_pro_server.reload=1
EOF
uci -q batch <<-EOF >/dev/null
delete ucitrack.@ssr_python_pro_server[-1]
add ucitrack ssr_python_pro_server
set ucitrack.@ssr_python_pro_server[-1].init=ssr_python_pro_server
commit ucitrack
EOF
chmod a+x /usr/share/ssr_python_pro_server/* >/dev/null 2>&1
rm -f /tmp/luci-indexcache
exit 0