From: p4u Date: Thu, 10 Jan 2019 19:30:01 +0000 (+0100) Subject: luci-app-bmx7: show mDNS menu if available X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fce1287;p=feed%2Frouting.git luci-app-bmx7: show mDNS menu if available Signed-off-by: p4u --- diff --git a/luci-app-bmx7/files/usr/lib/lua/luci/controller/bmx7.lua b/luci-app-bmx7/files/usr/lib/lua/luci/controller/bmx7.lua index a511dd9..482fb5d 100644 --- a/luci-app-bmx7/files/usr/lib/lua/luci/controller/bmx7.lua +++ b/luci-app-bmx7/files/usr/lib/lua/luci/controller/bmx7.lua @@ -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