fs.list(base_dir).then(function(partials) {
var files = [];
- if (!L.hasSystemFeature('apk'))
- files.push(base_dir + '.conf')
+ if (L.hasSystemFeature('apk')) {
+ files.push(base_dir + '/' + 'repositories.d/customfeeds.list',
+ base_dir + '/' + 'repositories.d/distfeeds.list'
+ )
+ } else {
+ files.push(base_dir + '.conf')
+ }
for (var i = 0; i < partials.length; i++) {
if (partials[i].type == 'file') {
"/usr/libexec/package-manager-call list-available": [ "exec" ],
"/etc/opkg.conf": [ "read" ],
"/etc/opkg/*.conf": [ "read" ],
- "/etc/apk/repositories": [ "read" ]
+ "/etc/apk/repositories": [ "read" ],
+ "/etc/apk/repositories.d/distfeeds.list": [ "read" ],
+ "/etc/apk/repositories.d/customfeeds.list": [ "read" ]
},
"ubus": {
"luci": [ "getMountPoints" ]
"/etc/opkg.conf": [ "write" ],
"/etc/opkg/*.conf": [ "write" ],
"/etc/apk/repositories": [ "write" ],
+ "/etc/apk/repositories.d/distfeeds.list": [ "write" ],
+ "/etc/apk/repositories.d/customfeeds.list": [ "write" ],
"/tmp/upload.ipk": [ "write" ],
"/tmp/upload.apk": [ "write" ]
}