/usr/share/tcos/scripts/tcos-bottom/72ntpdate is in initramfs-tools-tcos 0.89.93ubuntu2.
This file is owned by root:root, with mode 0o755.
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 20 21 22 23 | #!/bin/sh
#
if [ "$1" = "prereqs" ]; then
exit 0
fi
quiet=n
. /conf/tcos.conf
if [ -z "$TCOS_NTPDATE" ]; then
exit 0
fi
/usr/bin/ntpdate $TCOS_NTPDATE_SERVER >> /tmp/initramfs.debug 2>&1
if [ $? = 0 ]; then
# save clock in BIOS
hwclock --systohc >> /tmp/initramfs.debug 2>&1
fi
exit 0
|