update wrtbmon to avoid cbi() warning and save config in /ect/config

This commit is contained in:
coolsnowwolf 2018-10-05 22:06:22 +08:00
parent e2a9fe73b2
commit 1dcf342181
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for Wrtbwmon
LUCI_DEPENDS:=+luci-app-nlbwmon
LUCI_PKGARCH:=all
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_RELEASE:=2
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -4,7 +4,7 @@ function index()
entry({"admin", "nlbw", "usage"}, alias("admin", "nlbw", "usage", "details"), _("Usage"), 60)
entry({"admin", "nlbw", "usage", "details"}, template("wrtbwmon"), _("Details"), 10).leaf=true
entry({"admin", "nlbw", "usage", "config"}, cbi("wrtbwmon/config"), _("Configuration"), 20).leaf=true
entry({"admin", "nlbw", "usage", "custom"}, cbi("wrtbwmon/custom"), _("User file"), 30).leaf=true
entry({"admin", "nlbw", "usage", "custom"}, form("wrtbwmon/custom"), _("User file"), 30).leaf=true
entry({"admin", "nlbw", "usage", "check_dependency"}, call("check_dependency")).dependent=true
entry({"admin", "nlbw", "usage", "usage_data"}, call("usage_data")).dependent=true
entry({"admin", "nlbw", "usage", "usage_reset"}, call("usage_reset")).dependent=true

View File

@ -1,4 +1,4 @@
local USER_FILE_PATH = "/etc/wrtbwmon.user"
local USER_FILE_PATH = "/etc/config/wrtbwmon.user"
local fs = require "nixio.fs"