From db567a9fbd5a5e7c9da33c440e8501a37aa8ae42 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 17 Aug 2024 18:14:50 +0200 Subject: [PATCH] ups: add support for LIHVX2K0 --- openwrt/openwrt-configure-nut-ups.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/openwrt-configure-nut-ups.sh b/openwrt/openwrt-configure-nut-ups.sh index 1c793dc..af9f6b1 100755 --- a/openwrt/openwrt-configure-nut-ups.sh +++ b/openwrt/openwrt-configure-nut-ups.sh @@ -14,7 +14,7 @@ cat </dev/null | grep -e "iProduct.* UPS" -e "iProduct.*Innova Unity" -A1 | awk '/iSerial/ { print \$3 }'); do +for ups in \$(lsusb -vv 2>/dev/null | grep -e "iProduct.* UPS" -e "iProduct.*Innova Unity" -e "iProduct.*LIHVX2K0" -A1 | awk '/iSerial/ { print \$3 }'); do uci set nut_server.ups\${i}=driver uci set nut_server.ups\${i}.port=auto