examples: ignore non-up/down events in nm-dispatcher script

This commit is contained in:
Miroslav Lichvar 2018-02-13 11:44:24 +01:00
parent e8096330be
commit b563048ee2

View 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