2 # Begin $rc_base/init.d/setclock - Setting Linux Clock
4 # Based on setclock script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
15 CLOCKPARAMS
="$CLOCKPARAMS --utc"
19 CLOCKPARAMS
="$CLOCKPARAMS --localtime"
26 echo "Setting system clock..."
27 hwclock --hctosys $CLOCKPARAMS
32 echo "Setting hardware clock..."
33 hwclock --systohc $CLOCKPARAMS
38 echo "Usage: $0 {start}"