mirror of
https://github.com/openwrt/luci.git
synced 2025-12-27 03:34:57 +04:00
fix is_installed() check for l2tp
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user