summaryrefslogtreecommitdiffhomepage
path: root/protocols
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-04-27 18:10:40 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-04-27 18:10:40 +0000
commitcf8b8f874981a06d4dd41494ea3fb98157b60a3b (patch)
treeb71349648baa14bb3272d324a341b754233da30b /protocols
parent3ddb0b5ba757e2d89a59bb087c73fce5683a3840 (diff)
protocols/6x4: fix install state detection with netifd
Diffstat (limited to 'protocols')
-rw-r--r--protocols/6x4/luasrc/model/network/proto_6x4.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/6x4/luasrc/model/network/proto_6x4.lua b/protocols/6x4/luasrc/model/network/proto_6x4.lua
index d4d72c828..b9fbf64ec 100644
--- a/protocols/6x4/luasrc/model/network/proto_6x4.lua
+++ b/protocols/6x4/luasrc/model/network/proto_6x4.lua
@@ -41,7 +41,8 @@ for _, p in ipairs({"6in4", "6to4"}) do
end
function proto.is_installed(self)
- return nixio.fs.access("/lib/network/" .. p .. ".sh")
+ return nixio.fs.access("/lib/network/" .. p .. ".sh") or
+ nixio.fs.access("/lib/netifd/proto/" .. p .. ".sh")
end
function proto.is_floating(self)