From 5155364eabdaedb5d2a653f419f2e19b6e5ae2c2 Mon Sep 17 00:00:00 2001 From: "Fritz D. Ansel" Date: Mon, 2 Aug 2021 20:22:43 +0200 Subject: [PATCH] network: hide dnamsq (dhcp+dns) item .. when no dnsmasq is installed, as it tells only that there are no settings available Signed-off-by: Fritz D. Ansel (cherry picked from commit 2393289367bb3c4e366ee36cc66af9149687139b) --- .../root/usr/share/luci/menu.d/luci-mod-network.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json b/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json index 188c695f3f..cc88cdda0d 100644 --- a/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json +++ b/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json @@ -55,6 +55,9 @@ }, "depends": { "acl": [ "luci-mod-network-dhcp" ], + "fs": { + "/usr/sbin/dnsmasq": "executable" + }, "uci": { "dhcp": true } } }, -- 2.30.2