From 8267a65f093a0c34f605e7cc67dc0a4efd9a785b Mon Sep 17 00:00:00 2001 From: Zheng Qian Date: Wed, 21 Nov 2018 10:48:32 +0800 Subject: luci-app-aria2: add a button to open ariang Signed-off-by: Zheng Qian --- applications/luci-app-aria2/luasrc/controller/aria2.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-aria2/luasrc/controller/aria2.lua') diff --git a/applications/luci-app-aria2/luasrc/controller/aria2.lua b/applications/luci-app-aria2/luasrc/controller/aria2.lua index 17289305d7..56172ec1dd 100644 --- a/applications/luci-app-aria2/luasrc/controller/aria2.lua +++ b/applications/luci-app-aria2/luasrc/controller/aria2.lua @@ -34,7 +34,8 @@ function status() local status = { running = (sys.call("pidof aria2c > /dev/null") == 0), yaaw = ipkg.installed("yaaw"), - webui = ipkg.installed("webui-aria2") + webui = ipkg.installed("webui-aria2"), + ariang = (ipkg.installed("ariang") or ipkg.installed("ariang-nginx")) } http.prepare_content("application/json") -- cgit v1.2.3