summaryrefslogtreecommitdiff
path: root/scripts/tcos-bottom/72ntpdate
blob: aa54b8f9d5df9ce20642d2c9249f2f096ba1d866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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