From 747fc5d5fda30e7d4314d8abe80029f3792602d6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 28 Sep 2005 03:21:21 +0000 Subject: allow people to adjtime location --- util-linux/hwclock.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'util-linux/hwclock.c') diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 11261f4..45959e7 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c @@ -155,11 +155,15 @@ static int from_sys_clock(int utc) return 0; } - +#ifdef CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS +# define ADJTIME_PATH "/var/lib/hwclock/adjtime" +#else +# define ADJTIME_PATH "/etc/adjtime" +#endif static int check_utc(void) { int utc = 0; - FILE *f = fopen ( "/var/lib/hwclock/adjtime", "r" ); + FILE *f = fopen ( ADJTIME_PATH, "r" ); if ( f ) { char buffer [128]; -- cgit v1.1