1 Index: apmd-3.2.2.orig/apm.c
2 ===================================================================
3 --- apmd-3.2.2.orig.orig/apm.c 2004-01-04 08:23:08.000000000 +0100
4 +++ apmd-3.2.2.orig/apm.c 2006-02-28 14:22:38.227003952 +0100
9 +#include <sys/utsname.h>
17 static int verbose = 0;
24 + struct utsname uname_ver;
26 fd = open(APM_DEVICE, O_WRONLY);
32 + if(0 == system("grep -i hardware /proc/cpuinfo|grep -i SHARP"))
36 + if(0 == strncmp("2.4", uname_ver.release, 3))
38 + pid_file = fopen("/var/run/apmd.pid", "r");
41 + fscanf(pid_file, "%d", &apmd_pid);
43 + remove("/var/run/apmd.pid");
46 + kill(apmd_pid, SIGKILL);
49 error = apm_suspend(fd);