aboutsummaryrefslogtreecommitdiff
path: root/sysutils/upsd/files
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1998-12-08 16:22:59 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1998-12-08 16:22:59 +0000
commitff83786f2906fb5fdef5df62201657ed5c1e82a1 (patch)
tree260be6010f264202b350a611103ae12474f0ebad /sysutils/upsd/files
parent2e27eb740367963356285b6bbc5e267fc2bdc37b (diff)
downloadports-ff83786f2906fb5fdef5df62201657ed5c1e82a1.tar.gz
ports-ff83786f2906fb5fdef5df62201657ed5c1e82a1.zip
Notes
Diffstat (limited to 'sysutils/upsd/files')
-rw-r--r--sysutils/upsd/files/patch-ad32
1 files changed, 32 insertions, 0 deletions
diff --git a/sysutils/upsd/files/patch-ad b/sysutils/upsd/files/patch-ad
new file mode 100644
index 000000000000..d4677deeb4d5
--- /dev/null
+++ b/sysutils/upsd/files/patch-ad
@@ -0,0 +1,32 @@
+--- apc.c.orig Fri Aug 2 23:44:22 1996
++++ apc.c Tue Dec 8 16:59:03 1998
+@@ -164,12 +164,12 @@
+ }
+ if((r->type & T_TYPE) == T_BINARY) {
+ if(!bcmp(v1.val.binary, v0.val.binary, r->size)) {
+- syslog(LOG_WARNING, "apc_tune: toggle wraparound");
++ syslog(LOG_WARNING, "apc_tune: toggle wraparound register %s", r->name);
+ return 1;
+ }
+ } else {
+ if(v1.val.number == v0.val.number) {
+- syslog(LOG_WARNING, "apc_tune: toggle wraparound");
++ syslog(LOG_WARNING, "apc_tune: toggle wraparound register %s", r->name);
+ return 1;
+ }
+ }
+--- apc_static.c.orig Fri Aug 2 23:44:23 1996
++++ apc_static.c Tue Dec 8 16:56:57 1998
+@@ -91,9 +91,12 @@
+ {SMART_LOWBATDUR, {number: 7}},
+ {SMART_LOWBATDUR, {number: 10}},
+
++ /* several models accept different values here */
+ {SMART_WAKEUPBCAP, {number: 0}},
+ {SMART_WAKEUPBCAP, {number: 10}},
++ {SMART_WAKEUPBCAP, {number: 15}},
+ {SMART_WAKEUPBCAP, {number: 25}},
++ {SMART_WAKEUPBCAP, {number: 50}},
+ {SMART_WAKEUPBCAP, {number: 90}},
+ {SMART_WAKEUPBCAP, {number: 100}},
+