summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/root/usr/share
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-05-26 13:25:24 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-05-26 13:29:55 +0200
commit17af33ee48bb709aec31d09b90cfbd4cbece6d0d (patch)
tree29ade8d367768e83fbd2a7af81fa8d7fdfff59d9 /modules/luci-mod-network/root/usr/share
parentb8acde7f480a18343ee1f9624b790595065613ae (diff)
luci-mod-network: migrate network config depending on netifd version
Checking netifd version is important for users of the most recent LuCI that didn't update netifd (e.g. OpenWrt package). Suggested-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'modules/luci-mod-network/root/usr/share')
-rw-r--r--modules/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json b/modules/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json
index 5d7888f765..ade9915b91 100644
--- a/modules/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json
+++ b/modules/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json
@@ -5,7 +5,8 @@
"cgi-io": [ "exec" ],
"file": {
"/etc/iproute2/rt_tables": [ "read" ],
- "/usr/libexec/luci-peeraddr": [ "exec" ]
+ "/usr/libexec/luci-peeraddr": [ "exec" ],
+ "/usr/lib/opkg/info/netifd.control": [ "read" ]
},
"ubus": {
"file": [ "exec" ],