5
if [ -r /etc/default/ntpdate ]; then
9
if [ "$NTPDATE_USE_NTP_CONF" = yes ]; then
10
for f in /etc/ntp.conf.dhcp /etc/ntp.conf /etc/openntpd/ntpd.conf; do
16
if [ -n "$file" ]; then
17
NTPSERVERS=$(sed -rne 's/^(servers?|peer) ([-_.:[:alnum:]]+).*$/\2/p' "$file" | grep -v '^127\.127\.') || [ $? -le 1 ]
19
elif [ -r /etc/default/ntpdate.dhcp ]; then
20
. /etc/default/ntpdate.dhcp
23
exec /usr/sbin/ntpdate $NTPOPTIONS "$@" $NTPSERVERS