mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 15:15:07 -05:00
examples: ignore non-up/down events in nm-dispatcher script
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user