diff options
author | Jian Chang <aa65535@live.com> | 2015-07-03 15:17:38 +0800 |
---|---|---|
committer | Jian Chang <aa65535@live.com> | 2015-07-03 15:17:38 +0800 |
commit | 74501038e42ba227899ed49596cc661345e93c67 (patch) | |
tree | f28ed1d7aefef66e3bc744f90c06753c7fc5507b /applications/luci-app-shadowsocks-libev/luasrc/controller/shadowsocks-libev.lua | |
parent | 30e344c60a5db82e83b0c247625f8ebe45936b2f (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/luasrc/controller/shadowsocks-libev.lua')
-rw-r--r-- | applications/luci-app-shadowsocks-libev/luasrc/controller/shadowsocks-libev.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/applications/luci-app-shadowsocks-libev/luasrc/controller/shadowsocks-libev.lua b/applications/luci-app-shadowsocks-libev/luasrc/controller/shadowsocks-libev.lua new file mode 100644 index 0000000000..ae968168f1 --- /dev/null +++ b/applications/luci-app-shadowsocks-libev/luasrc/controller/shadowsocks-libev.lua @@ -0,0 +1,12 @@ +-- Copyright 2015 Jian Chang <aa65535@live.com> +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.shadowsocks-libev", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/shadowsocks-libev") then + return + end + + entry({"admin", "services", "shadowsocks-libev"}, cbi("shadowsocks-libev"), _("ShadowSocks-libev"), 74).dependent = true +end |