]> git.pld-linux.org Git - packages/ntp.git/blob - ntpdate-wrapper
- clean format-security.patch
[packages/ntp.git] / ntpdate-wrapper
1 #!/bin/sh
2
3 # Source ntp configuration
4 . /etc/sysconfig/ntpdate
5
6 /usr/sbin/ntpdate -s -U ntp $NTPDATE_OPTIONS $NTPDATE_SERVERS
7 RETVAL=$?
8
9 if [ $RETVAL -eq 0 -a "$SYNC_HWCLOCK" = "yes" ]; then
10         /sbin/hwclock --systohc
11         RETVAL=$?
12 fi
13 exit $RETVAL
This page took 0.026011 seconds and 3 git commands to generate.