mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:45:07 -05:00
This is a verbatim copy of the files at that stage of the repository that was built from the CVS import. It allows future development to see a bit of recent history, but without carrying around the baggage going back to 1997. If that is really required, git grafts can be used.
22 lines
445 B
Bash
Executable File
22 lines
445 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
# $1 is chrony password.
|
|
# $2 is hostname to add or hostname=ipaddres
|
|
# $3-$9 is rest of extra server parameters
|
|
|
|
FIRST="$1"
|
|
HOST="$2"
|
|
shift 2
|
|
|
|
#remaining parameters a the other paramaters to server command
|
|
#excluding "offline"
|
|
ARGS="$*"
|
|
|
|
#if none use default taken from chrony documentation.
|
|
DEF="minpoll 5 maxpoll 10 maxdelay 0.4"
|
|
|
|
DARGS=${ARGS:-$DEF}
|
|
|
|
CHRONYPASSWORD=$FIRST \
|
|
/usr/local/bin/DNSchrony.pl -a "$HOST" "$DARGS"
|