summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vpnbypass/luasrc/controller
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2020-04-03 12:32:24 +0000
committerStan Grishin <stangri@melmac.net>2020-04-03 12:32:24 +0000
commitb7900cf2077670d17436619e66b83fb1d59bfd7b (patch)
tree419876ea4c50ad4715517832b5fda9a0cfa25472 /applications/luci-app-vpnbypass/luasrc/controller
parent015712bba0fe4b036b4d12235a7b664d5b4cf3fe (diff)
luci-app-vpnbypass: better service control & buttons styling
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-vpnbypass/luasrc/controller')
-rw-r--r--applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua b/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua
index c971ce651..77753020d 100644
--- a/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua
+++ b/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua
@@ -1,6 +1,7 @@
module("luci.controller.vpnbypass", package.seeall)
function index()
if nixio.fs.access("/etc/config/vpnbypass") then
+ entry({"admin", "vpn"}, firstchild(), _("VPN"), 60).dependent=false
entry({"admin", "vpn", "vpnbypass"}, cbi("vpnbypass"), _("VPN Bypass"))
entry({"admin", "vpn", "vpnbypass", "action"}, call("vpnbypass_action"), nil).leaf = true
end
@@ -11,7 +12,7 @@ function vpnbypass_action(name)
if name == "start" then
luci.sys.init.start(packageName)
elseif name == "action" then
- luci.util.exec("/etc/init.d/" .. packageName .. " reload >/dev/null 2>&1")
+ luci.util.exec("/etc/init.d/" .. packageName .. " restart >/dev/null 2>&1")
luci.util.exec("/etc/init.d/dnsmasq restart >/dev/null 2>&1")
elseif name == "stop" then
luci.sys.init.stop(packageName)