#!/bin/sh

# we only care about "resume" events
[ "$1" = resume ] || exit 0

# set the system clock
. /etc/default/rcS

if [ -n "$UTC$GMT" -a "$UTC" != "no" ]; then
	GMT="-u"
fi

if [ -x /sbin/clock ]; then
	clock -s $GMT
else
	hwclock -s $GMT
fi
