mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-24 13:31:13 -05:00
vendorise upstream opkg app
This is for experimenting with building a LuCI app. I hope we can take this as a base and extend it to our needs. The source is https://github.com/openwrt/luci/raw/openwrt-22.03/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
This commit is contained in:
parent
cb4d73731f
commit
75b1291e00
13
srl-blue-merle/usr/share/luci/menu.d/luci-app-opkg2.json
Normal file
13
srl-blue-merle/usr/share/luci/menu.d/luci-app-opkg2.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"admin/system/opkg2": {
|
||||
"title": "Software",
|
||||
"order": 30,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "opkg2"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-opkg2" ]
|
||||
}
|
||||
}
|
||||
}
|
29
srl-blue-merle/usr/share/rpcd/acl.d/luci-app-opkg2.json
Normal file
29
srl-blue-merle/usr/share/rpcd/acl.d/luci-app-opkg2.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"luci-app-opkg2": {
|
||||
"description": "Grant access to opkg management",
|
||||
"read": {
|
||||
"cgi-io": [ "exec" ],
|
||||
"file": {
|
||||
"/usr/libexec/opkg-list installed": [ "exec" ],
|
||||
"/usr/libexec/opkg-list available": [ "exec" ],
|
||||
"/usr/libexec/opkg-call list-installed": [ "exec" ],
|
||||
"/usr/libexec/opkg-call list-available": [ "exec" ],
|
||||
"/etc/opkg.conf": [ "read" ],
|
||||
"/etc/opkg/*.conf": [ "read" ]
|
||||
},
|
||||
"ubus": {
|
||||
"luci": [ "getMountPoints" ]
|
||||
}
|
||||
},
|
||||
"write": {
|
||||
"file": {
|
||||
"/usr/libexec/opkg-call install *": [ "exec" ],
|
||||
"/usr/libexec/opkg-call remove *": [ "exec" ],
|
||||
"/usr/libexec/opkg-call update *": [ "exec" ],
|
||||
"/etc/opkg.conf": [ "write" ],
|
||||
"/etc/opkg/*.conf": [ "write" ],
|
||||
"/tmp/upload.ipk": [ "write" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1251
srl-blue-merle/www/luci-static/resources/view/opkg2.js
Normal file
1251
srl-blue-merle/www/luci-static/resources/view/opkg2.js
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user