Saturday, April 29, 2006

ntpdate ntp.org

Since we didn't spring for the real time clock as part of the SBC we need correct the date each time we reboot. The command is
$root> ntpdate ntp.org

The startup script /etc/init.d/ntpdate already existed. The links in the directory /etc/rcS.d get started during boot with the "start" command. The scripts are executed in order from S00 to S99. I used S51 so ntpdate will run after the hwclock scripts run (and fail).

root$ ln -s /etc/rcS.d/S51ntpdate.sh /etc/init.d/ntpdate

No comments: