summaryrefslogtreecommitdiffhomepage
path: root/protocols/ppp/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-12-15 00:35:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-12-15 00:35:47 +0000
commit11bfc487a5daaff4e6f452c30bf46fda979abac8 (patch)
treeb9ab2f7df4947a1407ac9b7824e06bfddfa6abc0 /protocols/ppp/luasrc
parent99a8b2826e15c08972dc34170f70b40abba5922e (diff)
fix is_installed() check for l2tp
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'protocols/ppp/luasrc')
-rw-r--r--protocols/ppp/luasrc/model/network/proto_ppp.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/ppp/luasrc/model/network/proto_ppp.lua b/protocols/ppp/luasrc/model/network/proto_ppp.lua
index 049525d347..dfd545f353 100644
--- a/protocols/ppp/luasrc/model/network/proto_ppp.lua
+++ b/protocols/ppp/luasrc/model/network/proto_ppp.lua
@@ -69,6 +69,8 @@ for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "3g", "l2tp"}) do
return (nixio.fs.glob("/usr/lib/pppd/*/pptp.so")() ~= nil)
elseif p == "3g" then
return nixio.fs.access("/lib/netifd/proto/3g.sh")
+ elseif p == "l2tp" then
+ return nixio.fs.access("/lib/netifd/proto/l2tp.sh")
else
return nixio.fs.access("/lib/netifd/proto/ppp.sh")
end