diff options
| author | Roy Marples <roy@marples.name> | 2015-09-07 10:58:04 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-09-07 10:58:04 +0000 |
| commit | f866bc47a9c2b0541aabdf02be7afc5ffa9b0627 (patch) | |
| tree | 6e1d4fffdcb045d7efd187f474f8130aa4ae7485 /configure | |
| parent | 77530b6d80a1cc7b8c52fc5b5ca150c0d2bb904d (diff) | |
| download | dhcpcd-f866bc47a9c2b0541aabdf02be7afc5ffa9b0627.tar.xz | |
Add support for Chrony, fixes [03943daba7].
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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) |
