summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-ppp/luasrc/model/network
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2015-10-30 16:26:04 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2015-11-03 17:07:45 +0800
commitcbf45fe563ab2ded120a5d5184e8c7207aa9b995 (patch)
tree06bc0ec8fce40ec1a49cc9a7264374daa9f1f2e8 /protocols/luci-proto-ppp/luasrc/model/network
parenta28da6a88a0cd7a5bc0c12c1ef2d8cad86c2aff3 (diff)
luci-proto-ppp: add support for pppossh
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'protocols/luci-proto-ppp/luasrc/model/network')
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua b/protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua
index e84658c703..7bbd78fa1e 100644
--- a/protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua
@@ -4,7 +4,7 @@
local netmod = luci.model.network
local _, p
-for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "3g", "l2tp"}) do
+for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "3g", "l2tp", "pppossh"}) do
local proto = netmod:register_protocol(p)
@@ -21,6 +21,8 @@ for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "3g", "l2tp"}) do
return luci.i18n.translate("PPPoATM")
elseif p == "l2tp" then
return luci.i18n.translate("L2TP")
+ elseif p == "pppossh" then
+ return luci.i18n.translate("PPPoSSH")
end
end
@@ -41,6 +43,8 @@ for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "3g", "l2tp"}) do
return "ppp-mod-pppoa"
elseif p == "l2tp" then
return "xl2tpd"
+ elseif p == "pppossh" then
+ return "pppossh"
end
end
@@ -55,6 +59,8 @@ for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "3g", "l2tp"}) do
return nixio.fs.access("/lib/netifd/proto/3g.sh")
elseif p == "l2tp" then
return nixio.fs.access("/lib/netifd/proto/l2tp.sh")
+ elseif p == "pppossh" then
+ return nixio.fs.access("/lib/netifd/proto/pppossh.sh")
else
return nixio.fs.access("/lib/netifd/proto/ppp.sh")
end