luci-mod-network: change && to || for DHCP tab predicates
authorPaul Donald <[email protected]>
Fri, 24 Oct 2025 13:36:09 +0000 (15:36 +0200)
committerPaul Donald <[email protected]>
Fri, 24 Oct 2025 13:36:09 +0000 (15:36 +0200)
Each prerequisite inside a { } forms an and condition.
Each {} prerequisite forms an or condition.

The tab wasn't displayed because odhcpd was not installed. The condition set
required both. Now only require one or the other to display the DHCP tab.

Closes #8033

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json

index f66cb9c1de88e82498a790021672e8fb98777e13..2a783d1a56ddb1538fcca5474f3d1a48c2be7ffb 100644 (file)
@@ -67,7 +67,8 @@
                },
                "depends": {
                        "acl": [ "luci-mod-network-dhcp" ],
-                       "fs": { "/usr/sbin/odhcpd": "executable", "/usr/sbin/dnsmasq": "executable" },
+                       "fs": { "/usr/sbin/odhcpd": "executable" },
+                       "fs": { "/usr/sbin/dnsmasq": "executable" },
                        "uci": { "dhcp": true }
                }
        },