1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Remove opkg references in luci-mod-network

This commit is contained in:
Ycarus (Yannick Chabanois) 2025-01-27 19:32:44 +01:00
parent 32ad6d755c
commit 19aa4ac132
2 changed files with 5 additions and 11 deletions

View file

@ -330,7 +330,7 @@ return view.extend({
var e = map.querySelector('[id="cbi-network-%s"] .cbi-button-edit'.format(ifc.getName())); var e = map.querySelector('[id="cbi-network-%s"] .cbi-button-edit'.format(ifc.getName()));
if (e) e.disabled = true; if (e) e.disabled = true;
var link = L.url('admin/system/opkg') + '?query=luci-proto'; var link = L.url('admin/system/package-manager') + '?query=luci-proto';
dom.content(dsc, [ dom.content(dsc, [
E('em', _('Unsupported protocol type.')), E('br'), E('em', _('Unsupported protocol type.')), E('br'),
E('a', { href: link }, _('Install protocol extensions...')) E('a', { href: link }, _('Install protocol extensions...'))
@ -371,7 +371,6 @@ return view.extend({
network.getDSLModemType(), network.getDSLModemType(),
network.getDevices(), network.getDevices(),
fs.lines('/etc/iproute2/rt_tables'), fs.lines('/etc/iproute2/rt_tables'),
L.resolveDefault(fs.read('/usr/lib/opkg/info/netifd.control')),
uci.changes() uci.changes()
]); ]);
}, },
@ -471,14 +470,10 @@ return view.extend({
}, },
render: function(data) { render: function(data) {
var netifdVersion = (data[3] || '').match(/Version: ([^\n]+)/);
if (netifdVersion && netifdVersion[1] >= "2021-05-26") {
if (this.interfaceBridgeWithIfnameSections().length) if (this.interfaceBridgeWithIfnameSections().length)
return this.renderBridgeMigration(); return this.renderBridgeMigration();
else if (this.deviceWithIfnameSections().length || this.interfaceWithIfnameSections().length) else if (this.deviceWithIfnameSections().length || this.interfaceWithIfnameSections().length)
return this.renderIfnameMigration(); return this.renderIfnameMigration();
}
var dslModemType = data[0], var dslModemType = data[0],
netDevs = data[1], netDevs = data[1],

View file

@ -8,7 +8,6 @@
"/proc/sys/net/ipv6/conf/*/mtu": [ "read" ], "/proc/sys/net/ipv6/conf/*/mtu": [ "read" ],
"/proc/sys/net/ipv6/conf/*/hop_limit": [ "read" ], "/proc/sys/net/ipv6/conf/*/hop_limit": [ "read" ],
"/usr/libexec/luci-peeraddr": [ "exec" ], "/usr/libexec/luci-peeraddr": [ "exec" ],
"/usr/lib/opkg/info/netifd.control": [ "read" ],
"/proc/sys/net/ipv[46]/conf/*": [ "read" ], "/proc/sys/net/ipv[46]/conf/*": [ "read" ],
"/sys/class/net/*/brport/*": [ "read" ] "/sys/class/net/*/brport/*": [ "read" ]
}, },