summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-opkg/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-12-10 09:04:39 +0100
committerJo-Philipp Wich <jo@mein.io>2019-12-16 18:07:18 +0100
commit870a4061208be34401875065c977b19933ceca92 (patch)
tree9dbde5348fe4771cac15265fc404262b09c2857f /applications/luci-app-opkg/luasrc/controller
parentc698cd5ab9ad9021ac7b92a45d7ba401cb3617d0 (diff)
luci-app-opkg: convert menu entries to JSON
Also fix an empty string test in an controller action while we touch it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-opkg/luasrc/controller')
-rw-r--r--applications/luci-app-opkg/luasrc/controller/opkg.lua10
1 files changed, 1 insertions, 9 deletions
diff --git a/applications/luci-app-opkg/luasrc/controller/opkg.lua b/applications/luci-app-opkg/luasrc/controller/opkg.lua
index 29c9a08645..ebdcf1b09c 100644
--- a/applications/luci-app-opkg/luasrc/controller/opkg.lua
+++ b/applications/luci-app-opkg/luasrc/controller/opkg.lua
@@ -3,14 +3,6 @@
module("luci.controller.opkg", package.seeall)
-function index()
- entry({"admin", "system", "opkg"}, template("opkg"), _("Software"), 30)
- entry({"admin", "system", "opkg", "list"}, call("action_list")).leaf = true
- entry({"admin", "system", "opkg", "exec"}, post("action_exec")).leaf = true
- entry({"admin", "system", "opkg", "statvfs"}, call("action_statvfs")).leaf = true
- entry({"admin", "system", "opkg", "config"}, post_on({ data = true }, "action_config")).leaf = true
-end
-
function action_list(mode)
local util = require "luci.util"
local cmd
@@ -26,7 +18,7 @@ function action_list(mode)
fd:close()
end
- if not lists_dir or #lists_dir == "" then
+ if not lists_dir or #lists_dir == 0 then
lists_dir = "/tmp/opkg-lists"
end