luci-app-omcproxy: relax menu dependencies

The uci configuration may be completely empty, so adjust the menu dependency
to check the existence of the configuration file itself instead.

Fixes: #6301
Supersedes: #6304
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2023-03-30 20:12:49 +02:00
parent 7a4afdcb05
commit e1fa41ec15

View file

@ -6,7 +6,7 @@
"path": "omcproxy"
},
"depends": {
"uci": { "omcproxy": true }
"fs": { "/etc/config/omcproxy": "file" }
}
}
}