/etc/init/hwclock-save.conf is in util-linux 2.27.1-6ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # 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
# BADYEAR can be in either file
. /etc/default/rcS
[ ! -r /etc/default/hwclock ] || . /etc/default/hwclock
grep -qw LOCAL /etc/adjtime 2>/dev/null && tz="--localtime" || tz="--utc"
[ "$BADYEAR" = "yes" ] && badyear="--badyear"
exec hwclock --rtc=/dev/rtc0 --systohc $tz --noadjfile $badyear
end script
|