From: Rupesh Patel Date: Fri, 28 Apr 2023 15:31:40 +0000 (+0000) Subject: examples: improve chrony.nm-dispatcher.onoffline script X-Git-Tag: 4.4-pre1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3050e29b1d1cc6d2a7191e46be596c3728bb7a75;p=thirdparty%2Fchrony.git examples: improve chrony.nm-dispatcher.onoffline script --- diff --git a/examples/chrony.nm-dispatcher.onoffline b/examples/chrony.nm-dispatcher.onoffline index 01e6fdb1..18f5c3f3 100644 --- a/examples/chrony.nm-dispatcher.onoffline +++ b/examples/chrony.nm-dispatcher.onoffline @@ -12,8 +12,10 @@ if [ $# -ge 2 ]; then case "$2" in up|down|connectivity-change) ;; - dhcp6-change) - # No other action is reported for routable IPv6 + dhcp4-change|dhcp6-change) + # Actions "up" and "connectivity-change" in some cases do not + # guarantee that the interface has a route (e.g. a bond). + # dhcp(x)-change handles at least cases that use DHCP. ;; *) exit 0;;