Skip to content

Commit

Permalink
luci-app-p910nd: update to package-manager
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Donald <[email protected]>
  • Loading branch information
systemcrash committed Nov 19, 2024
1 parent a403707 commit b9496f2
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
},

Expand All @@ -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 '';
Expand Down

0 comments on commit b9496f2

Please sign in to comment.