Problem You have one of those newfangled routerboards that doesn’t have a CMOS battery. BIOS settings are written to nonvolatile RAM, but the time and date are lost with every power-cycle. How do you make it set the time correctly at boot? Solution With good ole ntpdate. First, edit /etc/default/ntp-servers so that it points to pool.ntp.org: # /sbin/rw Then create a startup link so it will run at boot: # ln /etc/init.d/ntpdate Now every time you boot up your routerboard, it will set the correct time. You can verify this with the date command: # date Discussion If you are familiar with the NTP documentation, you’re aware that the fine NTP folks keep trying to get rid of ntpdate and replace it with the nptd -g command. See Also
blog comments powered by Disqus |