From f96441b9faf769c9ecdd4d338b605ea3d0cc4010 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 9 Nov 2004 00:36:47 +0000 Subject: Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches. BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA --- ntp/files/ntpdate | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'ntp/files') diff --git a/ntp/files/ntpdate b/ntp/files/ntpdate index e69de29bb2..ef18611965 100644 --- a/ntp/files/ntpdate +++ b/ntp/files/ntpdate @@ -0,0 +1,34 @@ +#!/bin/sh + +PATH=/sbin:/bin + +test -f /usr/bin/ntpdate || exit 0 + +if test -f /etc/default/ntpdate ; then +. /etc/default/ntpdate +else +NTPSERVERS="pool.ntp.org" +fi + +test -n "$NTPSERVERS" || exit 0 + +case "$1" in +start|force-reload) + echo -n "Running ntpdate to synchronize clock" + /usr/bin/ntpdate -u -b -s $NTPOPTIONS $NTPSERVERS + echo "." + ;; +restart|reload) + # Drop -b to slew clock rather than step it if called after system is up + echo -n "Running ntpdate to synchronize clock" + /usr/bin/ntpdate -u -s $NTPOPTIONS $NTPSERVERS + echo "." + ;; +stop) + ;; +*) + echo "Usage: /etc/init.d/ntpdate {start|stop|restart|reload|force-reload}" + exit 1 +esac + +exit 0 -- cgit v1.2.3