]> git.99rst.org Git - openwrt-packages.git/commitdiff
nut: use better usbhid-ups config example
authorDaniel F. Dickinson <redacted>
Thu, 2 Jul 2026 22:10:22 +0000 (18:10 -0400)
committerJosef Schlehofer <redacted>
Wed, 15 Jul 2026 07:34:39 +0000 (09:34 +0200)
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 <redacted>
net/nut/files/nut_server

index 45d286a6ac22f67c2af769c7048f9c2ce2796318..3b8e293e60754541980b5c56f9b6e1ebf8be29ec 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT