]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
examples: ignore non-up/down events in nm-dispatcher script
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 13 Feb 2018 10:44:24 +0000 (11:44 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 16 Feb 2018 10:09:54 +0000 (11:09 +0100)
examples/chrony.nm-dispatcher

index 51d7fa2588b68aef70626890126d2aaad3332c19..a609a66f5bc9acbbfe59ee81a449d3c809ef57dc 100644 (file)
@@ -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