File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change
1
+ AM_CPPFLAGS = -DSYSCONFDIR='"$(sysconfdir ) "'
2
+
1
3
sbin_PROGRAMS =hdapsd
2
4
hdapsd_SOURCES =hdapsd.c hdapsd.h input-helper.c input-helper.h
3
5
hdapsd_CFLAGS =$(LIBCONFIG_CFLAGS )
Original file line number Diff line number Diff line change @@ -398,6 +398,7 @@ void usage ()
398
398
printf ("\n" );
399
399
#ifdef HAVE_LIBCONFIG
400
400
printf (" -c --cfgfile=<cfgfile> Load configuration from <cfgfile>.\n" );
401
+ printf (" By default, configuration is read from " CONFIG_FILE "\n" );
401
402
#endif
402
403
printf (" -d --device=<device> <device> is likely to be hda or sda.\n" );
403
404
printf (" Can be given multiple times\n" );
Original file line number Diff line number Diff line change 1
1
#include <stdio.h>
2
2
3
3
#define PID_FILE "/var/run/hdapsd.pid"
4
- #define CONFIG_FILE "/etc /hdapsd.conf"
4
+ #define CONFIG_FILE SYSCONFDIR" /hdapsd.conf"
5
5
#define HDAPS_POSITION_FILE "/sys/devices/platform/hdaps/position"
6
6
#define MOUSE_ACTIVITY_FILE "/sys/devices/platform/hdaps/keyboard_activity"
7
7
#define KEYBD_ACTIVITY_FILE "/sys/devices/platform/hdaps/mouse_activity"
You can’t perform that action at this time.
0 commit comments