summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-09-07 10:58:04 +0000
committerRoy Marples <roy@marples.name>2015-09-07 10:58:04 +0000
commitf866bc47a9c2b0541aabdf02be7afc5ffa9b0627 (patch)
tree6e1d4fffdcb045d7efd187f474f8130aa4ae7485 /configure
parent77530b6d80a1cc7b8c52fc5b5ca150c0d2bb904d (diff)
downloaddhcpcd-f866bc47a9c2b0541aabdf02be7afc5ffa9b0627.tar.xz
Add support for Chrony, fixes [03943daba7].
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 14 insertions, 1 deletions
diff --git a/configure b/configure
index 95ed9f07..86bcfca1 100755
--- a/configure
+++ b/configure
@@ -1160,10 +1160,23 @@ if ! $HOOKSET; then
NTPD=$(_which ntpd)
if [ -n "$NTPD" ]; then
echo "$NTPD (50-ntp.conf)"
- HOOKS="$HOOKS${HOOKS:+ }50-ntp.conf"
else
echo "not found"
fi
+ printf "Checking for chronyd ... "
+ CHRONYD=$(_which chronyd)
+ if [ -n "$CHRONYD" ]; then
+ echo "$CHRONYD (50-ntp.conf)"
+ else
+ echo "not found"
+ fi
+ if [ -n "$NTPD" -o -n "$CHRONYD" ]; then
+ HOOKS="$HOOKS${HOOKS:+ }50-ntp.conf"
+ fi
+ # Warn if both are detected
+ if [ -n "$NTPD" -a -n "$CHRONYD" ]; then
+ echo "NTP will default to $NTPD"
+ fi
printf "Checking for ypbind ... "
YPBIND=$(_which ypbind)