Skip to content

Commit

Permalink
luci-app-nut: fix wrong nut_server option
Browse files Browse the repository at this point in the history
There is no driver_path prefix in the original lua code.

https://github.com/openwrt/luci/blob/f6e6b055d514595941db4a4cc11c3d9902eabefb/applications/luci-app-nut/luasrc/model/cbi/nut_server.lua#L132-L135)

Currently the uci configuration file does not require this path prefix by default.

Signed-off-by: Tianshuai Gao <[email protected]>
  • Loading branch information
VergilGao committed Jan 9, 2025
1 parent ab1bf13 commit bf2b100
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ return view.extend({

o = s.option(form.ListValue, 'driver', _('Driver'),
_('If this list is empty you need to %s'.format('<a href="/cgi-bin/luci/admin/system/package-manager?query=nut-driver-">%s</a>'.format(_('install drivers')))));
driver_list.forEach(driver => {
o.value(driver_path + driver);
});
driver_list.forEach(driver => o.value(driver));
o.optional = false;

o = s.option(form.Flag, 'enable_usb_serial', _('Set USB serial port permissions'),
Expand Down

0 comments on commit bf2b100

Please sign in to comment.