The command to write the basic file before the change to USB would look like;
- Code: Select all
cat >> /etc/nut/ups.conf << EOF
[ups]
driver = blazer_ser
port = /dev/ttyS0
desc = "my server1 ups"
EOF
I know the UPS is on port 3:
Bus 001 Device 003: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232 Adapter
And
ls /dev/bus/usb
001 002 003 004
But /dev/bus/usb/003 is a directory and not valid.
How is the port line written?