nut: add cable type nut driver config

at least driver apcsmart-old (maybe more) allow for specifying the
type of cable used. My old UPS does will not function when cable type
is not specified.

This will add support for configuration option 'cable'

Signed-off-by: Rob J. Epping <epping@renf.us>
This commit is contained in:
Rob J. Epping 2022-05-11 23:17:06 +02:00 committed by devome
parent d7c7755293
commit ae207992b1
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=nut
PKG_VERSION:=2.7.4
PKG_RELEASE:=27
PKG_RELEASE:=28
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.networkupstools.org/source/2.7/

View File

@ -147,6 +147,7 @@ build_driver_config() {
echo "[$cfg]" >>"$UPS_C"
get_write_driver_config "$cfg" bus
get_write_driver_config "$cfg" cable
get_write_driver_config "$cfg" community
get_write_driver_config "$cfg" desc
get_write_driver_config "$cfg" driver "usbhid-ups"