Package: nut Version: 2.2.2-6.5 Severity: normal
When running the following command, the offdelay option is actually setting the value of ondelay, and the ondelay option does nothing. This makes it impossible to actually change the the offdelay from the default of 20 seconds. sudo /lib/nut/usbhid-ups -DDD -u root -a belkinhid -x offdelay=120 -x ondelay=2 -k Output snippet below... --SNIP-- instcmd(load.on.delay, 120) instcmd(load.off.delay, 20) --SNIP-- To fix this, lines 938 to 940 in ./drivers/usbhid-ups.c should be if (dstate_getinfo("ups.delay.shutdown") && (val = getval(HU_VAR_OFFDELAY))) { dstate_setinfo("ups.delay.shutdown", val); } instead of if (dstate_getinfo("ups.delay.shutdown") && (val = getval(HU_VAR_OFFDELAY))) { dstate_setinfo("ups.delay.start", val); } Also, I can make this change to my copy of the source, but I don't know how to install it. Some advise on this would be grateful too. Thanks, Dave. -- System Information: Debian Release: 5.0.4 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages nut depends on: ii adduser 3.110 add and remove users and groups ii debconf 1.5.24 Debian configuration management sy ii libc6 2.7-18lenny2 GNU C Library: Shared libraries ii libupsclient1 2.2.2-6.4 Client library for the nut - Netwo ii libusb-0.1-4 2:0.1.12-13 userspace USB programming library ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip ii udev 0.125-7+lenny3 /dev/ and hotplug management daemo nut recommends no packages. Versions of packages nut suggests: pn nut-cgi <none> (no description available) pn nut-dev <none> (no description available) pn nut-snmp <none> (no description available) pn nut-xml <none> (no description available) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org