Creating the setclock script (PPC systems only)


#!/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