Here is what I'm doing with ntpdate on my 6k. I built 4.2.0 and it should poke the hardware clock when appropriate. I'll leave the package for a while here in case anyone wants it:
ntpdate 4.2.0I prefer having this just run when I make a network connection so here is what I do to get that to happen:
(1) builtin wireless card
Edit /etc/hotplug/wlan.agent to include the following in the register/resume case after the interface is successfully brought up:
if [ -x /usr/bin/ntpdate ]; then
/usr/bin/ntpdate -s time.example.com >/dev/null 2>&1
fi
(2) CF wireless cards
Edit /etc/pcmcia/network to include a call to clock_adj () at the end of start case.
'start')
ifup
start_fn $DEVICE
clock_adj
;;
and add the clock_adj () function to the bottom of /etc/pcmcia/network.functions
clock_adj ()
{
if [ -x /usr/bin/ntpdate ]; then
/usr/bin/ntpdate -s time.example.com >/dev/null 2>&1
fi
}
Be sure to substitute an appropriate time server for time.example.com above.
John