# hwclock-save - save system clock to hardware clock # # This task saves the time from the system clock back to the hardware # clock on shutdown. description "save system clock to hardware clock" start on runlevel [06] task script . /etc/default/rcS [ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime" [ "$BADYEAR" = "yes" ] && badyear="--badyear" exec hwclock --rtc=/dev/rtc0 --systohc $tz --noadjfile $badyear end script