[Buildroot] [git commit branch/next] chrony: S49chrony: support a defaults file

Peter Korsgaard peter at korsgaard.com
Mon May 28 18:20:46 UTC 2018


commit: https://git.buildroot.net/buildroot/commit/?id=9977053659cdc098b35ef0e9762707a53838209e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

For specifying custom options to chrony.

Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/chrony/S49chrony | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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: "


More information about the buildroot mailing list