ups: add support for LIHVX2K0

This commit is contained in:
Nico Schottelius 2024-08-17 18:14:50 +02:00
parent c090894009
commit db567a9fbd

View file

@ -14,7 +14,7 @@ cat <<EOF | ssh -t "root@${address}"
set -x
i=1
for ups in \$(lsusb -vv 2>/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