network: hide dnamsq (dhcp+dns) item 5252/head
authorFritz D. Ansel <fdansel@yandex.ru>
Mon, 2 Aug 2021 18:22:43 +0000 (20:22 +0200)
committerFritz D. Ansel <fdansel@yandex.ru>
Wed, 11 Aug 2021 07:25:51 +0000 (09:25 +0200)
.. when no dnsmasq is installed, as it
tells only that there are no settings available

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json

index 844f8cc752466de51c7ef8f41abfdfecfb06bb59..62e046e609fb49f78de5e7f06b10b397f79e1008 100644 (file)
@@ -55,6 +55,9 @@
                },
                "depends": {
                        "acl": [ "luci-mod-network-dhcp" ],
+                       "fs": {
+                               "/usr/sbin/dnsmasq": "executable"
+                       },
                        "uci": { "dhcp": true }
                }
        },