
upsd is a simple program to interact with Powerbox UPS System 60 
and compatible UPSs.

How to use:

* Check the Makefile (where to install etc..)
* do a "make"
* type upsd for a usage message: 
  Make yourself a cable according to the usage message
* connect the cable to the ups status (dry contact/dry relay) port
  and to the serial port of the computer
* do not connect the computer's power input to the ups yet
* do a "make test", uplug the ups and see that everything works.
* try a "upsd <device> shutdown"
  (most Powerbox UPSs have an undocumneted delay here, 
   wait 2 minutes before you examine your cable.)
* examine the scripts and change them to suit your system
* if everything seems OK, do a "make install"
* edit your startup and shutdown scripts
  - /etc/rc.d/rc.local and /etc/rc.d/rc.6 on slackware 3.0
  - insert a line to start upsd in your startup script
  - insert a line to remove /etc/power_is_failing in your startup script
  - insert a line to turn off the UPS in your shutdown script

upsd is writen to be very flexible:
- You can change the scripts to do almost anything.
- You can change the pinouts and levels as "#define"s in upsd.c

