summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
diff options
context:
space:
mode:
authorFritz D. Ansel <fdansel@yandex.ru>2021-08-02 20:22:43 +0200
committerFritz D. Ansel <fdansel@yandex.ru>2021-08-11 09:25:51 +0200
commit2393289367bb3c4e366ee36cc66af9149687139b (patch)
tree4cc19d35324d9c8e9daeaa1a91052adda608da96 /modules/luci-mod-network
parentb5af813318316e26592971c73a10a455493de7d5 (diff)
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 <fdansel@yandex.ru>
Diffstat (limited to 'modules/luci-mod-network')
-rw-r--r--modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json3
1 files changed, 3 insertions, 0 deletions
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 844f8cc752..62e046e609 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 }
}
},