diff --git a/examples/chrony.nm-dispatcher b/examples/chrony.nm-dispatcher.onoffline similarity index 86% rename from examples/chrony.nm-dispatcher rename to examples/chrony.nm-dispatcher.onoffline index 0b0c3e7..34cfa0d 100644 --- a/examples/chrony.nm-dispatcher +++ b/examples/chrony.nm-dispatcher.onoffline @@ -5,11 +5,13 @@ export LC_ALL=C +chronyc=/usr/bin/chronyc + # For NetworkManager consider only up/down events [ $# -ge 2 ] && [ "$2" != "up" ] && [ "$2" != "down" ] && exit 0 # Note: for networkd-dispatcher routable.d ~= on and off.d ~= off -chronyc onoffline > /dev/null 2>&1 +$chronyc onoffline > /dev/null 2>&1 exit 0