From ef81670d8329d2aebe1e50d0b312ae767229d269 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 20 Feb 2025 16:43:00 +0100 Subject: [PATCH] Change function to check is mbim/modemmanager is installed in luci-proto-mbim and luci-proto-modemmanager --- luci-proto-mbim/htdocs/luci-static/resources/protocol/mbim.js | 2 +- .../htdocs/luci-static/resources/protocol/modemmanager.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-proto-mbim/htdocs/luci-static/resources/protocol/mbim.js b/luci-proto-mbim/htdocs/luci-static/resources/protocol/mbim.js index 72bb9f7ba..85b101ec2 100644 --- a/luci-proto-mbim/htdocs/luci-static/resources/protocol/mbim.js +++ b/luci-proto-mbim/htdocs/luci-static/resources/protocol/mbim.js @@ -28,7 +28,7 @@ return network.registerProtocol('mbim', { return this._ubus('l3_device') || 'mbim-%s'.format(this.sid); }, - getOpkgPackage: function() { + getPackageName: function() { return 'umbim'; }, diff --git a/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js b/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js index c918a1d74..b7a0d44b8 100644 --- a/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js +++ b/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js @@ -25,7 +25,7 @@ return network.registerProtocol('modemmanager', { return this._ubus('l3_device') || 'modemmanager-%s'.format(this.sid); }, - getOpkgPackage: function() { + getPackageName: function() { return 'modemmanager'; },