]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/setclock
2 ########################################################################
3 # Begin $rc_base/init.d/setclock
5 # Description : Setting Linux Clock
7 # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
13 ########################################################################
23 boot_mesg
"Setting system clock..."
25 # udev not create the rtc symlink if rtc is in the kernel
26 if [ ! -e /dev
/rtc
]; then
30 hwclock --hctosys ${CLOCKPARAMS} &>/dev
/null
35 boot_mesg
"Setting hardware clock..."
36 hwclock --systohc ${CLOCKPARAMS} &>/dev
/null
41 echo "Usage: ${0} {start} {stop}"