Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 507 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 507 Bytes

set_time.sh

This is a script created for the Industrial Automation Card RTC usage. The script checks if the raspberry clock is synchronized with the network time, if yes it set the card RTC, if not reads the RTC and set the system clock with it.

Usage:

$  sudo /home/pi/megaind-rpi/rtc/set_time.sh

The actual PATH might be different depending on your megaind-rpi PATH

The script can be run manually to check and fix the system time or can be run from cron at a few minutes intervals.