summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-10-15 14:18:57 +0200
committerJo-Philipp Wich <jo@mein.io>2022-10-15 14:23:10 +0200
commitbba2f72500eef39dc04584c6a3c4c962ffaa0e4d (patch)
tree3321dacf11760e10b9ae220328595f77effac0fe
parent3923199f8e0e746929a8804c43f9064283b9f785 (diff)
luci-app-nut: use filesystem dependencies for configuration files
Don't use uci dependencies for nut related config files as the nut packages ship with completely commented out uci files. Such files do not satisfy the uci menu dependencies as those expect at least one section within the file. To solve this issue, use a regular file dependency on /etc/config/nut_* instead. Supersedes: #5964 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit bfc0fcfe6e97b1b39317f42d96debf3286c42696)
-rw-r--r--applications/luci-app-nut/root/usr/share/luci/menu.d/luci-app-nut.json14
1 files changed, 7 insertions, 7 deletions
diff --git a/applications/luci-app-nut/root/usr/share/luci/menu.d/luci-app-nut.json b/applications/luci-app-nut/root/usr/share/luci/menu.d/luci-app-nut.json
index e19143eb1b..64300d57eb 100644
--- a/applications/luci-app-nut/root/usr/share/luci/menu.d/luci-app-nut.json
+++ b/applications/luci-app-nut/root/usr/share/luci/menu.d/luci-app-nut.json
@@ -6,10 +6,10 @@
},
"depends": {
"acl": [ "luci-app-nut" ],
- "uci": [
- { "nut_server": true },
- { "nut_monitor": true },
- { "nut_cgi": true }
+ "fs": [
+ { "/etc/config/nut_server": "file" },
+ { "/etc/config/nut_monitor": "file" },
+ { "/etc/config/nut_cgi": "file" }
]
}
},
@@ -23,7 +23,7 @@
"post": { "cbi.submit": true }
},
"depends": {
- "uci": { "nut_server": true }
+ "fs": { "/etc/config/nut_server": "file" }
}
},
@@ -36,7 +36,7 @@
"post": { "cbi.submit": true }
},
"depends": {
- "uci": { "nut_monitor": true }
+ "fs": { "/etc/config/nut_monitor": "file" }
}
},
@@ -49,7 +49,7 @@
"post": { "cbi.submit": true }
},
"depends": {
- "uci": { "nut_cgi": true }
+ "fs": { "/etc/config/nut_cgi": "file" }
}
}
}