| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | #!/bin/sh######################################################################### Begin $rc_base/init.d/setclock## Description : Setting Linux Clock## Authors     : Gerard Beekmans - gerard@linuxfromscratch.org## Version     : 00.00## Notes       :#########################################################################. /etc/sysconfig/rc. ${rc_functions}. /etc/sysconfig/clockCLOCKPARAMS=case "${UTC}" in	yes|true|1)		CLOCKPARAMS="${CLOCKPARAMS} --utc"		;;	no|false|0)		CLOCKPARAMS="${CLOCKPARAMS} --localtime"		;;esaccase ${1} in	start)		boot_mesg "Setting system clock..."		hwclock --hctosys ${CLOCKPARAMS} >/dev/null		evaluate_retval		;;	stop)		boot_mesg "Setting hardware clock..."		hwclock --systohc ${CLOCKPARAMS} >/dev/null		evaluate_retval		;;	*)		echo "Usage: ${0} {start|stop}"		;;esac
 |