summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-shadowsocks-libev/root/etc/uci-defaults
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-shadowsocks-libev/root/etc/uci-defaults')
-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