summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-shadowsocks-libev/root/etc
diff options
context:
space:
mode:
authorJian Chang <aa65535@live.com>2015-07-03 15:17:38 +0800
committerJian Chang <aa65535@live.com>2015-07-03 15:17:38 +0800
commit74501038e42ba227899ed49596cc661345e93c67 (patch)
treef28ed1d7aefef66e3bc744f90c06753c7fc5507b /applications/luci-app-shadowsocks-libev/root/etc
parent30e344c60a5db82e83b0c247625f8ebe45936b2f (diff)
luci-app-shadowsocks-libev: add package
This adds support for configuring shadowsocks-libev Signed-off-by: Jian Chang <aa65535@live.com>
Diffstat (limited to 'applications/luci-app-shadowsocks-libev/root/etc')
-rw-r--r--applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/luci-shadowsocks-libev11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/luci-shadowsocks-libev b/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/luci-shadowsocks-libev
new file mode 100644
index 0000000000..6f30fa77b7
--- /dev/null
+++ b/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults/luci-shadowsocks-libev
@@ -0,0 +1,11 @@
+#!/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
+exit 0