Package: chrony Version: 2.1.1-1 Severity: wishlist Tags: patch Hello Vincent Blut,
would you be ok to add an alternative dependency on iproute2 so net-tools wouldn't need to be installed if iproute2 is already available? Attached patch is currently running on my system and correctly detects a default gateway. Kind regards Harald Jenny -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (990, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.4.0-1-amd64 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages chrony depends on: ii adduser 3.113+nmu3 ii install-info 6.1.0.dfsg.1-5 ii libc6 2.22-3 ii libcap2 1:2.24-12 ii libedit2 3.1-20150325-1+b1 ii libtomcrypt0 1.17-7+b1 ii lsb-base 9.20160110 ii net-tools 1.60+git20150829.73cef8a-2 ii timelimit 1.8-1 ii ucf 3.0035 ii util-linux 2.27.1-4 chrony recommends no packages. chrony suggests no packages. -- no debconf information
diff -Nru chrony-2.1.1_ORIG/debian/control chrony-2.1.1_IPROUTE2/debian/control --- chrony-2.1.1_ORIG/debian/control 2015-11-18 19:51:35.000000000 +0100 +++ chrony-2.1.1_IPROUTE2/debian/control 2016-03-14 20:53:30.943608440 +0100 @@ -21,7 +21,7 @@ ${shlibs:Depends}, ucf, timelimit, install-info, - net-tools, + net-tools | iproute2 lsb-base, adduser, util-linux (>= 2.20.1-5) diff -Nru chrony-2.1.1_ORIG/debian/init chrony-2.1.1_IPROUTE2/debian/init --- chrony-2.1.1_ORIG/debian/init 2015-11-18 19:51:35.000000000 +0100 +++ chrony-2.1.1_IPROUTE2/debian/init 2016-03-14 21:54:22.769482228 +0100 @@ -29,7 +29,8 @@ putonline () { # Do we have a default route? If so put chronyd online. - if timelimit -q -s9 -t5 -- netstat -rn 2>/dev/null | grep -q '0\.0\.0\.0' + if timelimit -q -s9 -t5 -- netstat -rn 2>/dev/null | grep -q '0\.0\.0\.0' \ + || timelimit -q -s9 -t5 -- ip route list 0/0 >/dev/null then sleep 2 # Chronyd can take a while to start. KEY=$(awk '$1 ~ /^commandkey$/ { print $2; exit}' /etc/chrony/chrony.conf)