ALT Linux repositórios
S: | 3.14.14-alt3 |
5.0: | 3.14.4-alt5 |
4.1: | 3.14.8-alt0.M41.1 |
4.0: | 3.14.3-alt0.M40.1 |
3.0: | 3.10.17-alt1 |
+updates: | 3.10.18-alt0.C30.1 |
Outros repositórios
Upstream: | 3.14.3 |
Group :: Sistema/Servidores
RPM: apcupsd
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: apcupsd-3.10.5-alt-usb_killpower.patch
Download
Download
--- apcupsd-3.10.5/src/drivers/usb/linux/linux-usb.c.alt-usb_killpower 2003-01-19 15:44:38 +0300
+++ apcupsd-3.10.5/src/drivers/usb/linux/linux-usb.c 2003-04-30 14:12:30 +0400
@@ -1028,6 +1028,7 @@
Dmsg1(000, "REPORTINFO num_fields=%d\n", rinfo.num_fields);
finfo.report_type = info->uref.report_type;
finfo.report_id = info->uref.report_id;
+ finfo.field_index = info->uref.field_index;
if (ioctl(private->fd, HIDIOCGFIELDINFO, &finfo) < 0) { /* Get field info */
Dmsg1(000, "HIDIOCGFIELDINFO for shutdown failed. ERR=%s\n", strerror(errno));
return 0;
@@ -1086,13 +1087,7 @@
write_int_to_ups(ups, CI_APCForceShutdown, 1, "CI_APCForceShutdown");
- /******* DEBUG testing */
- write_int_to_ups(ups, CI_WarningCapacityLimit, 40, "CIWarningCapacityLimit");
- write_int_to_ups(ups, CI_RemCapLimit, 20, "CI_RemCapLibmit");
-
-
Dmsg0(200, "Leave usb_ups_kill_power\n");
- Dmsg0(000, "Kill power does not yet work. Please ignore the debug output.\n");
return 1;
}