]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
examples: improve chrony.nm-dispatcher.onoffline script
authorRupesh Patel <rupatel@redhat.com>
Fri, 28 Apr 2023 15:31:40 +0000 (15:31 +0000)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 10 May 2023 08:46:57 +0000 (10:46 +0200)
examples/chrony.nm-dispatcher.onoffline

index 01e6fdb1079fdb2b520f085d644663f109dfb92c..18f5c3f3f8dcbb1d5beb53628d33f6b01541e184 100644 (file)
@@ -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;;