mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-08 11:52:55 -04:00
26 lines
813 B
Plaintext
26 lines
813 B
Plaintext
$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 );
|