aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2019-04-14 20:12:33 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2019-04-14 20:12:33 +0200
commitc2bb6021140797e788081b82955c35d616791024 (patch)
tree4f50366d539b7bf37527392ebd0e98c3bc0c0398
parent1937a5a522b8f9e658205676133c414a8be936b2 (diff)
downloadntpd-setwait-c2bb6021140797e788081b82955c35d616791024.tar.gz
ntpd-setwait-c2bb6021140797e788081b82955c35d616791024.tar.bz2
ntpd-setwait-c2bb6021140797e788081b82955c35d616791024.zip
main.c: add small description to file
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--main.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/main.c b/main.c
index 33edd91..c397eaf 100644
--- a/main.c
+++ b/main.c
@@ -2,6 +2,28 @@
Licensed under BSD 2clause license See LICENSE file for more information
Author: Michał Łyszczek <michal.lyszczek@bofc.pl>
==========================================================================
+ -------------------------------------------------------------
+ / main ntpd-setwait program, it does the following: \
+ | |
+ | * wait indefinitely for internet connection |
+ | * read current UTC time from ntp server |
+ | * if local and ntp time differance is bigger than |
+ | max-deviation - set system time with ntp time |
+ | * start ntpd-bin program. |
+ | |
+ | should any step fail, program will start from beginning |
+ \ until ntpd-bin program is sucessfully executed. /
+ -------------------------------------------------------------
+ \
+ \
+ .--.
+ |o_o |
+ |:_/ |
+ // \ \
+ (| | )
+ /'\_ _/`\
+ \___)=(___/
+ ==========================================================================
_ __ __ ____ _ __
(_)____ _____ / /__ __ ____/ /___ / __/(_)/ /___ _____
/ // __ \ / ___// // / / // __ // _ \ / /_ / // // _ \ / ___/