Create a new file /etc/init.d/setclock containing the following:
#!/bin/sh
# Begin /etc/init.d/setclock
check_status()
{
if [ $? = 0 ]
then echo ""
else
echo "FAILED"
fi
}
echo -n "Setting clock..."
/sbin/hwclock
check_status
# End /etc/init.d/setclock