summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2020-04-03 15:56:10 +0300
committerGitHub <noreply@github.com>2020-04-03 15:56:10 +0300
commitae6addb4848d6b0ae141007bf6e1056a28ec459c (patch)
tree257b6fb07396e50dbb13fb0074315edef2d34a8e /applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua
parente949639984133f49c420040314b7bbbfbc002e9f (diff)
parentb7900cf2077670d17436619e66b83fb1d59bfd7b (diff)
Merge pull request #3825 from stangri/master-luci-app-vpnbypass
luci-app-vpnbypass: better service control & buttons styling
Diffstat (limited to 'applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua')
-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 c971ce6517..77753020d0 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)