summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-11-19 02:30:42 +0100
committerPaul Donald <newtwen+github@gmail.com>2024-11-19 13:23:25 +0100
commitb9496f2023cb6b5f51dff88f1cf3a3063390dae4 (patch)
treebd00b2a01c1bca2b52933d28ce8aa3462603b7bf /applications
parenta403707b57df38c60de8e0f71d968164291542dc (diff)
luci-app-p910nd: update to package-manager
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-p910nd/htdocs/luci-static/resources/view/p910nd.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/applications/luci-app-p910nd/htdocs/luci-static/resources/view/p910nd.js b/applications/luci-app-p910nd/htdocs/luci-static/resources/view/p910nd.js
index 9f934b15d0..2b9256a90b 100644
--- a/applications/luci-app-p910nd/htdocs/luci-static/resources/view/p910nd.js
+++ b/applications/luci-app-p910nd/htdocs/luci-static/resources/view/p910nd.js
@@ -13,17 +13,18 @@
var pkg = {
get Name() { return 'p910nd'; },
get Description() { return _('Port 910n print daemon'); },
- get URL() { return 'https://openwrt.org/packages/pkgdata/' + pkg.Name + '/'; }
+ get URL() { return 'https://openwrt.org/packages/pkgdata/' + pkg.Name + '/'; },
+ get pkgMgrURI() { return 'admin/system/package-manager'; },
};
return view.extend({
option_install_kmod_lp: function() {
- window.open(L.url('admin/system/opkg') +
+ window.open(L.url(pkg.pkgMgrURI) +
'?query=kmod-lp', '_blank', 'noopener');
},
option_install_kmod_usb: function() {
- window.open(L.url('admin/system/opkg') +
+ window.open(L.url(pkg.pkgMgrURI) +
'?query=kmod-usb-printer', '_blank', 'noopener');
},
@@ -45,7 +46,7 @@ return view.extend({
}),
// data[1]
- fs.exec_direct('/usr/libexec/opkg-call', [ 'list-installed' ], 'text').catch(function(err) {
+ fs.exec_direct('/usr/libexec/package-manager-call', [ 'list-installed' ], 'text').catch(function(err) {
ui.addNotification(null, E('p', {}, _('Error calling "opkg list-installed": ' + err.message)));
console.log(err);
return '';