* be done *AFTER* the daemon-creation fork() */
write_lockfile();
- if (do_init_rtc) {
- RTC_TimePreInit();
- }
-
LCL_Initialise();
SCH_Initialise();
SYS_Initialise();
NIO_Initialise(address_family);
CAM_Initialise(address_family);
- RTC_Initialise();
+ RTC_Initialise(do_init_rtc);
SRC_Initialise();
RCL_Initialise();
KEY_Initialise();
/* ================================================== */
void
-RTC_Initialise(void)
+RTC_Initialise(int initial_set)
{
char *file_name;
+ /* Do an initial read of the RTC and set the system time to it. This
+ is analogous to what /sbin/hwclock -s would do on Linux. */
+ if (initial_set && driver.time_pre_init) {
+ (driver.time_pre_init)();
+ }
+
driver_initialised = 0;
/* This is how we tell whether the user wants to load the RTC
}
}
-/* ================================================== */
-/* Do an initial read of the RTC and set the system time to it. This
- is analogous to what /sbin/hwclock -s would do on Linux. */
-
-void
-RTC_TimePreInit(void)
-{
- if (driver.time_pre_init) {
- (driver.time_pre_init)();
- }
-}
-
/* ================================================== */
/* Start the RTC measurement process */
#include "reports.h"
-extern void RTC_Initialise(void);
+extern void RTC_Initialise(int initial_set);
extern void RTC_Finalise(void);
-extern void RTC_TimePreInit(void);
extern void RTC_TimeInit(void (*after_hook)(void *), void *anything);
extern void RTC_StartMeasurements(void);
extern int RTC_GetReport(RPT_RTC_Report *report);