I found it mildly annoying that my BB would not set its clock for some
time after booting so I investigated. The BB does not use ntpd but
instead uses the sntp or simple network time protocol. This protocol
polls a time server,
pool.ntp.org if nothing local is available, and
sets the clock.
A bit of poking around found that it is ntpdate is run out of cron every
30 minutes. So the time can be off for as long as 30 minutes. Unsat.
What I did was make ntpdate run at boot time. The normal run state is
one so I went into /etc/rc1.d and listed the directory. I wanted it to
run as the last task during booting. files are executed in rc1.d in
alphabetical order so they're numbered. The last file in my rc1.d is
K81portmap. So I did the following:
# cd /etc/rc1.d
# cat >K82ntp
/usr/bin/ntpdate -b -s -u
pool.ntp.org &
^D
The & puts runs the program in the background. It takes about 10
seconds to run so I didn't want to slow the boot time another 10
seconds. On my system, by the time the system is booted enough for me
to log in using ssh, the time is set.
Note that this works only if you're using the ethernet port to connect
with and if your LAN is gatewayed to the internet.
If you have a Linux machine that it always up, you can poll it instead
of the pool, taking some load off the pool. To do that change the above
line to
/usr/bin/ntpdate -b -s -u your.local.server &
In my case, it's a Linux box named neonjohn so
/usr/bin/ntpdate -b -s -u neonjohn &
Hope this helps some of y'all
John
--
John DeArmond
Tellico Plains, Occupied TN
http://www.fluxeon.com <-- THE source for induction heaters
http://www.neon-john.com <-- email from here
http://www.johndearmond.com <-- Best damned Blog on the net
PGP key:
wwwkeys.pgp.net: BCB68D77