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 bfc0fcfe6e
)
This commit is contained in:
parent
3923199f8e
commit
bba2f72500
1 changed files with 7 additions and 7 deletions
|
@ -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" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue