From: Miroslav Lichvar Date: Tue, 13 Feb 2018 10:44:24 +0000 (+0100) Subject: examples: ignore non-up/down events in nm-dispatcher script X-Git-Tag: 3.3-pre1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b563048ee28d121142a663ac6a598e4c71e2c21d;p=thirdparty%2Fchrony.git examples: ignore non-up/down events in nm-dispatcher script --- diff --git a/examples/chrony.nm-dispatcher b/examples/chrony.nm-dispatcher index 51d7fa25..a609a66f 100644 --- a/examples/chrony.nm-dispatcher +++ b/examples/chrony.nm-dispatcher @@ -4,6 +4,8 @@ export LC_ALL=C +[ "$2" != "up" ] && [ "$2" != "down" ] && exit 0 + # Check if there is a default route if /sbin/ip route list 2> /dev/null | grep -q '^default'; then