aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2018-05-28 15:22:57 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-05-28 20:20:46 +0200
commit9977053659cdc098b35ef0e9762707a53838209e (patch)
treeb1ae643621058fa55934b838e04a4feb220a5bdb
parent82d882eef0939ff98622dc8ec1ae724ae65befbc (diff)
downloadbuildroot-9977053659cdc098b35ef0e9762707a53838209e.tar.gz
buildroot-9977053659cdc098b35ef0e9762707a53838209e.tar.bz2
chrony: S49chrony: support a defaults file
For specifying custom options to chrony. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rwxr-xr-xpackage/chrony/S49chrony4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/chrony/S49chrony b/package/chrony/S49chrony
index 6215acc4aa..5abb3b2582 100755
--- a/package/chrony/S49chrony
+++ b/package/chrony/S49chrony
@@ -2,12 +2,14 @@
#
# Start chrony
+[ -r /etc/default/chrony ] && . /etc/default/chrony
+
[ -f /etc/chrony.conf ] || exit 0
case "$1" in
start)
printf "Starting chrony: "
- chronyd && echo "OK" || echo "FAIL"
+ chronyd $CHRONY_ARGS && echo "OK" || echo "FAIL"
;;
stop)
printf "Stopping chrony: "