UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / doc / techlogs / 2001 / kes12Nov01
blobe2ceda98b4d4d4bbcaddd74031a91ebbe35d5ef9
1              Technical notes on version 3.9.7 
2                        12 November 2001
3                         Kern Sibbald
5 General:
6 - These are my changes to the sychronization
7   code that Riccardo sent me 31 October.
9 Changes submitted this submission:
10 - Eliminated the get_raw_upsinfo() from apcaccess 
11   for the status command because
12   it was byte order and apcupsd version dependent. I
13   replaced it using the network "status"  command.
14   However the get_raw_upsinfo() is still used for
15   the eprom option since it requires an enormous
16   amount of information to work.  With a little more
17   work, I may be able to eliminate the rawupsinfo
18   command.
19 - Modified apcacces to assume that the "status" option
20   was given if no option is specified. Thus 
21    
22     apcaccess
24   produces the status output.
25 - There was a difference of coding convention between
26   what Riccardo and I did for the drivers concerning
27   the return status. I have changed from the old
28   Unix style 0 meaning success to 0 meaning failure
29   and 1 meaning success. This allows for much more
30   readable code. As a consequence, I modified the
31   return values for a number of drivers.
32 - I deleted apcupsd.conf from the main source directory.
33 - I corrected some minor problems in the distributions/sun
34   apccontrol.sh.in script (new events and new script
35   arguments).