diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-05-31 16:16:32 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-05-31 16:16:32 +0000 |
commit | 100b544f3be0ded52e03ff7c62001e8395d02045 (patch) | |
tree | 9580af68a986696f5d2a4155c1f4cfdebbf7ad71 /protocols/ppp/luasrc/model | |
parent | eb7a72f2513c79909386d1dce214b7ed184c398d (diff) |
proto: fix feature detection of installed protocol handlers
Diffstat (limited to 'protocols/ppp/luasrc/model')
-rw-r--r-- | protocols/ppp/luasrc/model/network/proto_ppp.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/ppp/luasrc/model/network/proto_ppp.lua b/protocols/ppp/luasrc/model/network/proto_ppp.lua index 2988385b22..b00c9f0a21 100644 --- a/protocols/ppp/luasrc/model/network/proto_ppp.lua +++ b/protocols/ppp/luasrc/model/network/proto_ppp.lua @@ -55,9 +55,7 @@ for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "3g"}) do end function proto.is_installed(self) - if nixio.fs.access("/lib/network/" .. p .. ".sh") then - return true - elseif p == "pppoa" then + if p == "pppoa" then return (nixio.fs.glob("/usr/lib/pppd/*/pppoatm.so")() ~= nil) elseif p == "pppoe" then return (nixio.fs.glob("/usr/lib/pppd/*/rp-pppoe.so")() ~= nil) |