#!/bin/sh
# set the system clock

if [ "$1" = suspend ]; then
    /etc/init.d/hwclock.sh stop
elif [ "$1" = resume ] && [ "$2" != standby ]; then
    /etc/init.d/hwclock.sh start
fi
