From fce1287bd74949014b96412a45c1b6f558eab552 Mon Sep 17 00:00:00 2001 From: p4u Date: Thu, 10 Jan 2019 20:30:01 +0100 Subject: [PATCH] luci-app-bmx7: show mDNS menu if available Signed-off-by: p4u --- luci-app-bmx7/files/usr/lib/lua/luci/controller/bmx7.lua | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2