OpenWrt Forum Archive

Topic: ntpclient-noxtal -- alternative ntpclient script

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

my system had some happily drifting clock (no crystal oscillator),
so I created some alternative script for ntpclient which solely uses
the -s option to set the clock.

Its an init.d script, and picks a random server from /etc/config/ntpclient
on startup. It then sets up cron which calls ntpclient -s frequently.
In case of connection failure it picks up another ntp server and continues.
Configuration is compatible to luci-app-ntpc.

You may find it at http://katerkamp.de/software/ntpclient/ .

There is also a tarball for OpenWrt buildroot available, this will create
a package called ntpclient-noxtal.

Let me know if you find it useful.

Have fun,
Stefan

I decided to install your alternative ntpclient script instead of the standard one, since it fits better into my set-up (the router is not always connected to the Internet, specially at the start). Another reason (perhaps the main one) was to get started on compiling packages and developing for the openwrt platform: your package has been very helpful for both purposes!

If someone is interested, I can provide the ipkg package compiled for brcm-2.4 on Kamikaze 8.09.1. In any case, thanks for the effort.

(Last edited by diego.misc on 2 Nov 2009, 18:01)

The discussion might have continued from here.