diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2020-04-03 15:56:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 15:56:10 +0300 |
commit | ae6addb4848d6b0ae141007bf6e1056a28ec459c (patch) | |
tree | 257b6fb07396e50dbb13fb0074315edef2d34a8e /applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua | |
parent | e949639984133f49c420040314b7bbbfbc002e9f (diff) | |
parent | b7900cf2077670d17436619e66b83fb1d59bfd7b (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.lua | 3 |
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) |