Hyphens in RPCD filenames break ubus CLI argument parsing. Rename luci.master-link to luci.master_link and update all references in the JS view, ACL, and Makefile. Also pipe RPCD method output through tr -d '\n\t' so ubus receives single-line JSON it can parse. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
496 B
JSON
26 lines
496 B
JSON
{
|
|
"luci-app-master-link": {
|
|
"description": "Grant access to SecuBox Master-Link mesh management",
|
|
"read": {
|
|
"file": {
|
|
"/etc/config/master-link": ["read"],
|
|
"/var/lib/secubox-master-link/requests/*": ["read"]
|
|
},
|
|
"ubus": {
|
|
"file": ["read", "stat"],
|
|
"luci.master_link": ["*"]
|
|
},
|
|
"uci": ["master-link"]
|
|
},
|
|
"write": {
|
|
"file": {
|
|
"/etc/config/master-link": ["write"]
|
|
},
|
|
"ubus": {
|
|
"luci.master_link": ["*"]
|
|
},
|
|
"uci": ["master-link"]
|
|
}
|
|
}
|
|
}
|