Creating the setclock script

Create a new file /etc/init.d/setclock containing the following:



#!/bin/sh
# Begin /etc/init.d/setclock

evaluate_retval()
{
        if [ $? = 0 ]
        then echo ""
                else
        echo "FAILED"
        fi
}

echo -n "Setting clock..."
/sbin/hwclock
evaluate_retval

# End /etc/init.d/setclock