end
function proto.is_installed(self)
- return nixio.fs.access("/lib/network/" .. p .. ".sh") or
- nixio.fs.access("/lib/netifd/proto/" .. p .. ".sh")
+ return nixio.fs.access("/lib/netifd/proto/" .. p .. ".sh")
end
function proto.is_floating(self)
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)
end
function proto.is_installed(self)
- return nixio.fs.access("/lib/network/relay.sh")
+ return nixio.fs.access("/etc/init.d/relayd")
end
function proto.is_floating(self)