From 67e49b7e0e837f8b8677b7ac70321879a941b928 Mon Sep 17 00:00:00 2001 From: "Rob J. Epping" Date: Wed, 11 May 2022 23:17:06 +0200 Subject: [PATCH] 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 --- net/nut/Makefile | 2 +- net/nut/files/nut-server.init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/net/nut/Makefile b/net/nut/Makefile index 859da030c7..bc69d2277f 100644 --- a/net/nut/Makefile +++ b/net/nut/Makefile @@ -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/ diff --git a/net/nut/files/nut-server.init b/net/nut/files/nut-server.init index f9178ba9f1..70cb21f871 100755 --- a/net/nut/files/nut-server.init +++ b/net/nut/files/nut-server.init @@ -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" -- 2.30.2