luci-mod-network: change && to || for DHCP tab predicates

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 <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2025-10-24 15:36:09 +02:00
parent 545de2a4b5
commit 7e1b545bfa

View 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 }
}
},