luci-base: dispatcher.lua: support "absent" fs dependency for menu nodes
authorJo-Philipp Wich <jo@mein.io>
Wed, 27 Apr 2022 11:13:12 +0000 (13:13 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 20 May 2022 18:23:26 +0000 (20:23 +0200)
commitf29452ced0a36d1f4c2dbcb1a7b2e9b0c09e273e
tree3adfd27f1cc9d37b93eb522fc33be9fc0f0c0fa2
parent272611d74e42bc6e78eb56798b7ac04b4c23fa75
luci-base: dispatcher.lua: support "absent" fs dependency for menu nodes

The "absent" dependency type requires the given path to not exist on the
local system for the condition to be satisified. This is useful to disable
menu nodes depending on the presence of specific files.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2e4b5fb8ff2fb3bfd1400bf7cbf721057f02fab9)
modules/luci-base/luasrc/dispatcher.lua