luci-app-bmx7: show mDNS menu if available
authorp4u <p4u@dabax.net>
Thu, 10 Jan 2019 19:30:01 +0000 (20:30 +0100)
committerp4u <p4u@dabax.net>
Thu, 10 Jan 2019 19:30:01 +0000 (20:30 +0100)
Signed-off-by: p4u <p4u@dabax.net>
luci-app-bmx7/files/usr/lib/lua/luci/controller/bmx7.lua

index a511dd9b2e15e5d7881e7b0980e4dbf183c8a513..482fb5db51006a21125b95e5d6c7c93451c7ed07 100644 (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