#!/bin/sh
# -*- Mode: shell-script -*-

[ -e /etc/sysconfig/apmd ] && . /etc/sysconfig/apmd
[ -e /etc/sysconfig/clock ] && . /etc/sysconfig/clock
[ -z "$UTC" ] && UTC="no"
[ -z "$CLOCK_SYNC" ] && CLOCK_SYNC="no"
CLOCK=""
[ "$UTC" = "yes" -o "$UTC" = "true" -o "$UTC" = 1 ] && CLOCK="-u"

# Read the hardware clock
if test $CLOCK_SYNC != "no"; then
	hwclock $CLOCK --hctosys
fi
