#!/bin/sh # v1.0 02-Nov-2000 JP Vossen (AlphaNet Solutions) # v1.1 09-Nov-2000 JPV Added maxpoll to correct error # From Nokia support database resolution 3808 (Thanks Dameon) # See also Nokia support database resolution 1446 # /var/etc/rc.local/S50fixntp script to reset the NTP minpoll time # mkdir /var/etc/rc.local if not already exists sleep 30 cat > /var/etc/ntp.conf <<_EOF # # ntp.conf file # # Normally, this file is overwritten by Voyager on bootup, but # we've hacked together a script to rewrite it after Voyager # gets a hold of it to do what we want. # # You should look at what your ntp.conf file contains and make # changes to this script as appropriate. # # It uses NTP v3 servers located at 172.22.1.253 & 254 and sets the # minpoll parameter to 13 (minimum poll time is 2^13 or 8192 seconds) # which is about every 2.76 hours. # # Had to add maxpoll as well, to correct this error: # "[LOG_ERR] xntpd[6946]: config error: minpoll > maxpoll" # Set to 2^14 or 16384 seconds, or about 4.5 hours. server 10.1.1.5 version 3 minpoll 13 maxpoll 14 prefer server 10.1.1.6 version 3 minpoll 13 maxpoll 14 _EOF ps -ax | grep xntpd | grep -v grep | awk '{ print $1 }' | \ while read X do kill $X done