diff options
author | Richard Yu <yurichard3839@gmail.com> | 2019-11-04 10:02:03 +0800 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2019-11-04 10:14:15 +0800 |
commit | b83374b3401d33f1f1bc40bbb367991cc34cc918 (patch) | |
tree | 0207830ab0118912fe8d2fa86c35641f4384c925 /applications/luci-app-shadowsocks-libev/root | |
parent | 4e9f2d3f1ef21262e8c009579d235d355fbd467a (diff) |
luci-app-shadowsocks-libev: port to client side
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Diffstat (limited to 'applications/luci-app-shadowsocks-libev/root')
2 files changed, 17 insertions, 0 deletions
diff --git a/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/40_luci-shadowsocks-libev b/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/40_luci-shadowsocks-libev index 6f30fa77b..4cc9abcee 100644 --- a/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/40_luci-shadowsocks-libev +++ b/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/40_luci-shadowsocks-libev @@ -8,4 +8,6 @@ uci -q batch <<-EOF >/dev/null EOF rm -f /tmp/luci-indexcache +mkdir -p /etc/shadowsocks-libev +/etc/init.d/rpcd reload exit 0 diff --git a/applications/luci-app-shadowsocks-libev/root/usr/share/rpcd/acl.d/luci-app-shadowsocks-libev.json b/applications/luci-app-shadowsocks-libev/root/usr/share/rpcd/acl.d/luci-app-shadowsocks-libev.json new file mode 100644 index 000000000..eb56fd12a --- /dev/null +++ b/applications/luci-app-shadowsocks-libev/root/usr/share/rpcd/acl.d/luci-app-shadowsocks-libev.json @@ -0,0 +1,15 @@ +{ + "luci-app-shadowsocks-libev": { + "description": "Grant service list access to LuCI app shadowsocks-libev", + "read": { + "ubus": { + "service": [ "list" ] + } + }, + "write": { + "file": { + "/etc/shadowsocks-libev/*": [ "write" ] + } + } + } +} |