From 3050e29b1d1cc6d2a7191e46be596c3728bb7a75 Mon Sep 17 00:00:00 2001 From: Rupesh Patel Date: Fri, 28 Apr 2023 15:31:40 +0000 Subject: [PATCH] examples: improve chrony.nm-dispatcher.onoffline script --- examples/chrony.nm-dispatcher.onoffline | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/chrony.nm-dispatcher.onoffline b/examples/chrony.nm-dispatcher.onoffline index 01e6fdb..18f5c3f 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;;