Background : Hi, I am currently working with an old Linux SBC system. It uses BusyBox v1.00-rc2 which is old and had limited functionality. (nope, upgrade is not an option). This SBC was hooked up with several sensor, record the value and time stamped it.
Problem : After several years, the RTC drifted from actual time and some of the SBC delay more than 1hours (slower) from the actual time.
I cannot simply do the ntpdate with the ntp servers because it will cause time jump and causing huge gap on the data monitoring log. It is not acceptable.
Solution: I had created a bash script that will:
Questions :
http://pasted.co/65beb3db [password : 123456]
I have come to a conclusion regarding to this matters. There are 2 solutions (from my experience. Maybe more. Feel free to add):
Solution 1
Solution 2 (Which what I am using right now)
!/bin/sh
pid=
pidof NTP_Update
if [ -n "$pid" ] ; then echo "NTP_Update is running..." else echo "NTP_Update not running..." cd /root/script ./NTP_Update fi
Hope this work around method will help anybody that was struggling with old busybox version.