From: Daniel F. Dickinson Date: Thu, 2 Jul 2026 22:10:22 +0000 (-0400) Subject: nut: use better usbhid-ups config example X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=6579a08603f085889517898774c04162fc55b8fe;p=openwrt-packages.git nut: use better usbhid-ups config example The previous configuration did not make clear the need for productid and vendorid options. See https://github.com/openwrt/packages/pull/29607#discussion_r3462906851 Signed-off-by: Daniel F. Dickinson --- diff --git a/net/nut/files/nut_server b/net/nut/files/nut_server index 45d286a6a..3b8e293e6 100644 --- a/net/nut/files/nut_server +++ b/net/nut/files/nut_server @@ -1,11 +1,6 @@ #config driver_global 'driver_global' # option driverpath /usr/libexec/nut # compile-time default -#config driver 'upsname' -# option driver usbhid-ups # example -# option port auto # example -# option enable_usb_serial 0 # example -# # ### NOTE ### # For USB UPSes it is necessary to properly configure # productid and vendorid (and serial number if you have @@ -13,6 +8,17 @@ # nut_server so that the hotplug script can give NUT # permissions to access the UPS device(s) +# example USB UPS configuration +# config driver 'upsname' +# option driver usbhid-ups +# option port auto +# option productid 12ab # USB 4-digit hex productId +# option vendorid 34cd # USB 4-digit hex vendorId + +# Configuration for UPS connected to serial-USB +# option enable_usb_serial 0 + + #config user # option username upsuser # option password upspassword