examples: ignore non-up/down events in nm-dispatcher script
This commit is contained in:
parent
e8096330be
commit
b563048ee2
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
|
[ "$2" != "up" ] && [ "$2" != "down" ] && exit 0
|
||||||
|
|
||||||
# Check if there is a default route
|
# Check if there is a default route
|
||||||
|
|
||||||
if /sbin/ip route list 2> /dev/null | grep -q '^default'; then
|
if /sbin/ip route list 2> /dev/null | grep -q '^default'; then
|
||||||
|
|
Loading…
Reference in a new issue