#!/bin/sh

uci -q batch <<-EOF >/dev/null
	delete firewall.shadowsocksr
	set firewall.shadowsocksr=include
	set firewall.shadowsocksr.type=script
	set firewall.shadowsocksr.path=/etc/shadowsocksr.include
	set firewall.shadowsocksr.reload=1
	commit firewall
EOF

/etc/init.d/shadowsocksr stop
/etc/init.d/shadowsocksr disable

rm -f /tmp/luci-indexcache
exit 0
