luci-app-bmx7: show mDNS menu if available

Signed-off-by: p4u <p4u@dabax.net>
This commit is contained in:
p4u 2019-01-10 20:30:01 +01:00
parent a7c447903c
commit fce1287bd7
1 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,14 @@ function index()
table.insert(place,"Gateways")
entry(place,call("action_tunnels_j"),"Gateways",3)
table.remove(place)
-- Integrate bmx7-mdns if present
if nixio.fs.stat("/usr/lib/lua/luci/model/cbi/bmx7-mdns.lua","type") ~= nil then
table.insert(place,"mDNS")
entry(place, cbi("bmx7-mdns"), "mesh DNS", 1).dependent=false
table.remove(place)
end
end