luci/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/40_luci-shadowsocks-libev
Richard Yu b83374b340 luci-app-shadowsocks-libev: port to client side
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2019-11-04 10:14:15 +08:00

13 lines
286 B
Bash

#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete ucitrack.@shadowsocks-libev[-1]
add ucitrack shadowsocks-libev
set ucitrack.@shadowsocks-libev[-1].init=shadowsocks-libev
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
mkdir -p /etc/shadowsocks-libev
/etc/init.d/rpcd reload
exit 0