From b7900cf2077670d17436619e66b83fb1d59bfd7b Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Fri, 3 Apr 2020 12:32:24 +0000 Subject: luci-app-vpnbypass: better service control & buttons styling Signed-off-by: Stan Grishin --- applications/luci-app-vpnbypass/luasrc/controller/vpnbypass.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-vpnbypass/luasrc/controller') 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) -- cgit v1.2.3