mirror of
https://github.com/kenzok8/small-package
synced 2025-01-08 11:17:34 +08:00
update 03-26 20:31
This commit is contained in:
parent
76e09a7c95
commit
70fd928826
@ -2,7 +2,9 @@
|
|||||||
module("luci.controller.ipsec-server", package.seeall)
|
module("luci.controller.ipsec-server", package.seeall)
|
||||||
|
|
||||||
function index()
|
function index()
|
||||||
if not nixio.fs.access("/etc/config/luci-app-ipsec-server") then return end
|
if not nixio.fs.access("/etc/config/luci-app-ipsec-server") then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
entry({"admin", "vpn"}, firstchild(), "VPN", 45).dependent = false
|
entry({"admin", "vpn"}, firstchild(), "VPN", 45).dependent = false
|
||||||
entry({"admin", "vpn", "ipsec-server"}, alias("admin", "vpn", "ipsec-server", "settings"), _("IPSec VPN Server"), 49).dependent = false
|
entry({"admin", "vpn", "ipsec-server"}, alias("admin", "vpn", "ipsec-server", "settings"), _("IPSec VPN Server"), 49).dependent = false
|
||||||
@ -10,10 +12,10 @@ function index()
|
|||||||
entry({"admin", "vpn", "ipsec-server", "users"}, cbi("ipsec-server/users"), _("Users Manager"), 20).leaf = true
|
entry({"admin", "vpn", "ipsec-server", "users"}, cbi("ipsec-server/users"), _("Users Manager"), 20).leaf = true
|
||||||
entry({"admin", "vpn", "ipsec-server", "l2tp_user"}, cbi("ipsec-server/l2tp_user")).leaf = true
|
entry({"admin", "vpn", "ipsec-server", "l2tp_user"}, cbi("ipsec-server/l2tp_user")).leaf = true
|
||||||
entry({"admin", "vpn", "ipsec-server", "online"}, cbi("ipsec-server/online"), _("L2TP Online Users"), 30).leaf = true
|
entry({"admin", "vpn", "ipsec-server", "online"}, cbi("ipsec-server/online"), _("L2TP Online Users"), 30).leaf = true
|
||||||
entry({"admin", "vpn", "ipsec-server", "status"}, call("status")).leaf = true
|
entry({"admin", "vpn", "ipsec-server", "status"}, call("act_status")).leaf = true
|
||||||
end
|
end
|
||||||
|
|
||||||
function status()
|
function act_status()
|
||||||
local e = {}
|
local e = {}
|
||||||
e["ipsec_status"] = luci.sys.call("/usr/bin/pgrep ipsec >/dev/null") == 0
|
e["ipsec_status"] = luci.sys.call("/usr/bin/pgrep ipsec >/dev/null") == 0
|
||||||
e["l2tp_status"] = luci.sys.call("top -bn1 | grep -v grep | grep '/var/etc/xl2tpd' >/dev/null") == 0
|
e["l2tp_status"] = luci.sys.call("top -bn1 | grep -v grep | grep '/var/etc/xl2tpd' >/dev/null") == 0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
local sys = require "luci.sys"
|
local sys = require "luci.sys"
|
||||||
|
|
||||||
m = Map("luci-app-ipsec-server", translate("IPSec VPN Server"))
|
m = Map("luci-app-ipsec-server", translate("IPSec VPN Server"))
|
||||||
m.template = "ipsec-server/index"
|
m.template = "ipsec-server/ipsec-server_status"
|
||||||
|
|
||||||
s = m:section(TypedSection, "service")
|
s = m:section(TypedSection, "service")
|
||||||
s.anonymous = true
|
s.anonymous = true
|
||||||
|
@ -74,4 +74,4 @@ msgid "NOT RUNNING"
|
|||||||
msgstr "未运行"
|
msgstr "未运行"
|
||||||
|
|
||||||
msgid "RUNNING"
|
msgid "RUNNING"
|
||||||
msgstr "运行中"
|
msgstr "运行中"
|
@ -1,14 +1,14 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"PO-Revision-Date: 2020-12-01 16:16+0000\n"
|
"PO-Revision-Date: 2022-03-25 12:08+0000\n"
|
||||||
"Last-Translator: Marios Koutsoukis <marioskoutsoukis2006@gmail.com>\n"
|
"Last-Translator: MarioK239 <marios.k239@gmail.com>\n"
|
||||||
"Language-Team: Greek <https://hosted.weblate.org/projects/openwrt/"
|
"Language-Team: Greek <https://hosted.weblate.org/projects/openwrt/"
|
||||||
"luciapplicationsnft-qos/el/>\n"
|
"luciapplicationsnft-qos/el/>\n"
|
||||||
"Language: el\n"
|
"Language: el\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
"X-Generator: Weblate 4.4-dev\n"
|
"X-Generator: Weblate 4.12-dev\n"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136
|
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136
|
||||||
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155
|
#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155
|
||||||
@ -22,7 +22,7 @@ msgstr "Συλλογή δεδομένων..."
|
|||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:229
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:229
|
||||||
msgid "Comment"
|
msgid "Comment"
|
||||||
msgstr ""
|
msgstr "Σχόλιο"
|
||||||
|
|
||||||
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:50
|
#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:50
|
||||||
msgid "Default Download Rate"
|
msgid "Default Download Rate"
|
||||||
|
@ -71,7 +71,7 @@ return view.extend({
|
|||||||
|
|
||||||
s.tab('firmware', _('Firmware Settings'));
|
s.tab('firmware', _('Firmware Settings'));
|
||||||
|
|
||||||
o = s.taboption('firmware', form.Flag, 'autoupgrade_pkg', _('Packages Auto Upgrade'));
|
o = s.taboption('firmware', form.Flag, 'autoupgrade_pkg', _('Packages Auto Upgrade'),_('谨慎开启'));
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
|
|
||||||
o = s.taboption('firmware', form.Flag, 'autoupgrade_fm', _('Firmware Upgrade Notice'));
|
o = s.taboption('firmware', form.Flag, 'autoupgrade_fm', _('Firmware Upgrade Notice'));
|
||||||
|
Loading…
Reference in New Issue
Block a user