mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-12-23 06:09:27 -05:00
226687590e
This is a snapshot only. It does not work and serves as a prototype only. Now, we can see how to add a menu item and how to call our executable on the flash.
27 lines
610 B
JSON
27 lines
610 B
JSON
{
|
|
"luci-app-blue-merle": {
|
|
"description": "Grant access to opkg management",
|
|
"read": {
|
|
"cgi-io": [ "exec" ],
|
|
"file": {
|
|
"/usr/libexec/blue-merle": [ "exec" ],
|
|
"/usr/libexec/blue-merle shred": [ "exec" ],
|
|
"/usr/libexec/blue-merle *": [ "exec" ],
|
|
"/etc/opkg.conf": [ "read" ],
|
|
"/etc/opkg/*.conf": [ "read" ]
|
|
},
|
|
"ubus": {
|
|
"luci": [ "getMountPoints" ]
|
|
}
|
|
},
|
|
"write": {
|
|
"file": {
|
|
"/usr/libexec/blue-merle": [ "exec" ],
|
|
"/usr/libexec/blue-merle shred": [ "exec" ],
|
|
"/usr/libexec/blue-merle *": [ "exec" ],
|
|
"/tmp/upload.ipk": [ "write" ]
|
|
}
|
|
}
|
|
}
|
|
}
|