#!/bin/sh
. /boot.conf
test "$LOG_START" && echo "<*> Executing '$0 $*'"

test "$LOG_STAGE" && echo "* Setting system clock"
# This may need a module, therefore called after mounts

# This can be changed if your system keeps GMT
# -s: read from CMOS
#clock -s

# --------------------OR------------------------

# Note: check that 11 minute kernel updates aren't in effect
# (NTP said to do that) or stop using --adjust!
#
# Adjust hardware clock (drift data is in /etc/adjtime)
# FIXME: /etc is ro here....
#hwclock --localtime --adjust
# Set system time from hardware
hwclock --localtime --hctosys

echo "  `date`"

exit 0
