[New feature] Check for incoming leap second
- Add a new tool (wrs_leapsec) to check for an incoming leap second. It is done by parsing the leap second file. If a leap second is detected then adjustment parameters for the clock algoritm are set in the kernel. - Start the tool at startup - With cron, execute the tool every 3 hours - As many tools need to parse the leap seconds file, functions have been added in the library and then called by these tools
Showing
- userspace/rootfs_override/etc/cron.d/root 2 additions, 0 deletionsuserspace/rootfs_override/etc/cron.d/root
- userspace/rootfs_override/etc/init.d/check_incoming_leap_second.sh 46 additions, 0 deletions.../rootfs_override/etc/init.d/check_incoming_leap_second.sh
- userspace/rootfs_override/etc/rcS/S63check_incoming_leap_second.sh 1 addition, 0 deletions.../rootfs_override/etc/rcS/S63check_incoming_leap_second.sh
- userspace/tools/.gitignore 1 addition, 0 deletionsuserspace/tools/.gitignore
- userspace/tools/Makefile 5 additions, 1 deletionuserspace/tools/Makefile
- userspace/tools/time_lib.c 15 additions, 6 deletionsuserspace/tools/time_lib.c
- userspace/tools/time_lib.h 2 additions, 2 deletionsuserspace/tools/time_lib.h
- userspace/tools/wr_date.c 1 addition, 1 deletionuserspace/tools/wr_date.c
- userspace/tools/wrs_leapsec.c 313 additions, 0 deletionsuserspace/tools/wrs_leapsec.c
Please register or sign in to comment