summaryrefslogtreecommitdiff
path: root/sysutils/asapm/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/asapm/patches/patch-ae')
-rw-r--r--sysutils/asapm/patches/patch-ae25
1 files changed, 25 insertions, 0 deletions
diff --git a/sysutils/asapm/patches/patch-ae b/sysutils/asapm/patches/patch-ae
new file mode 100644
index 00000000000..b27022977b3
--- /dev/null
+++ b/sysutils/asapm/patches/patch-ae
@@ -0,0 +1,25 @@
+$NetBSD: patch-ae,v 1.1 2004/06/09 21:00:05 kivinen Exp $
+
+--- apm_rc.c.orig 1999-03-09 12:35:24.000000000 +0200
++++ apm_rc.c
+@@ -9,6 +9,7 @@ extern struct apm_state state;
+ #include "apm_react.h"
+
+ extern char apm_device_file[];
++extern char sysmon_device_file[];
+ extern char statuscolor[];
+ extern char greencolor[];
+ extern char yellowcolor[];
+@@ -93,6 +94,12 @@ void ReadFile( FILE * fd )
+ #ifdef DEBUG
+ printf("APM device = %s\n", apm_device_file);
+ #endif
++ } else if ( !strcasecmp("SysmonDevice", buffer) ) {
++ fgets( buffer, 256, fd );
++ safecopy( sysmon_device_file, Strip(buffer), 256 );
++#ifdef DEBUG
++ printf("Sysmon device = %s\n", sysmon_device_file);
++#endif
+ } else if ( !strcasecmp("Status", buffer) ) {
+ fgets( buffer, 256, fd );
+ safecopy( statuscolor, Strip(buffer), 50 );