summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2019-10-28 16:34:54 -0700
committerStan Grishin <stangri@melmac.net>2019-10-28 16:34:54 -0700
commitc145ad0cbf9bd71ef162772bcd3d4622f4023351 (patch)
treea4e678e05f6db36908c0befe541ffc8522883f98 /applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua
parent7707b679e20df9806fbcbc58d12116f9ee9a3850 (diff)
luci-app-vpnbypass: bugfix: call to action has no parent node
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua')
-rw-r--r--applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua b/applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua
index 8d3ef2b8ee..08054dc484 100644
--- a/applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua
+++ b/applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua
@@ -4,8 +4,6 @@ local sys = require "luci.sys"
local util = require "luci.util"
local packageName = "vpnbypass"
-m = Map("vpnbypass", translate("VPN Bypass Settings"))
-
local tmpfsVersion = tostring(util.trim(sys.exec("opkg list-installed " .. packageName .. " | awk '{print $3}'")))
if not tmpfsVersion or tmpfsVersion == "" then
tmpfsStatusCode = -1
@@ -19,6 +17,8 @@ if sys.call("iptables -t mangle -L | grep -q VPNBYPASS") == 0 then
tmpfsStatus = "Running"
end
+m = Map("vpnbypass", translate("VPN Bypass Settings"))
+
h = m:section(NamedSection, "config", packageName, translate("Service Status") .. tmpfsVersion)
ss = h:option(DummyValue, "_dummy", translate("Service Status"))
ss.template = packageName .. "/status"