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.
21 lines
445 B
Bash
Executable file
21 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"
|