diff options
author | Markus Wigge <markus@cultcom.de> | 2009-08-11 15:41:53 +0000 |
---|---|---|
committer | Markus Wigge <markus@cultcom.de> | 2009-08-11 15:41:53 +0000 |
commit | 59d70787b46bcff4e2032f5b82bd68c0b62f3e7c (patch) | |
tree | 0dfe831f55fc58ada4ce1e26a5bd2c8b2351a75b /applications/luci-openvpn/luasrc/model/cbi/openvpn.lua | |
parent | 20cadd41ca926b233e0ff5ee2e11a8fb2e5e1fb5 (diff) |
- fixed path to OpenVPN PID file
- fixed syntax for translatef call
Diffstat (limited to 'applications/luci-openvpn/luasrc/model/cbi/openvpn.lua')
-rw-r--r-- | applications/luci-openvpn/luasrc/model/cbi/openvpn.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-openvpn/luasrc/model/cbi/openvpn.lua b/applications/luci-openvpn/luasrc/model/cbi/openvpn.lua index e71becd06c..c220b10a56 100644 --- a/applications/luci-openvpn/luasrc/model/cbi/openvpn.lua +++ b/applications/luci-openvpn/luasrc/model/cbi/openvpn.lua @@ -70,10 +70,10 @@ s:option( Flag, "enable", translate("openvpn_enable") ) local active = s:option( DummyValue, "_active", translate("openvpn_active") ) function active.cfgvalue(self, section) - local pid = fs.readfile("/var/run/openvpn_%s.pid" % section) + local pid = fs.readfile("/var/run/openvpn-%s.pid" % section) if pid and #pid > 0 and tonumber(pid) ~= nil then return (sys.process.signal(pid, 0)) - and translatef("openvpn_active_yes", pid) + and translatef("openvpn_active_yes", "yes (%i)", pid) or translate("openvpn_active_no") end return translate("openvpn_active_no") |