Blame SOURCES/chrony.nm-dispatcher

c2c5e4
#!/bin/sh
c2c5e4
c2c5e4
export LC_ALL=C
c2c5e4
c2c5e4
if [ "$2" = "up" ]; then
c2c5e4
	/sbin/ip route list dev "$1" | grep -q '^default' &&
c2c5e4
		/usr/libexec/chrony-helper command online > /dev/null 2>&1
c2c5e4
fi
c2c5e4
c2c5e4
if [ "$2" = "down" ]; then
c2c5e4
	/sbin/ip route list | grep -q '^default' ||
c2c5e4
		/usr/libexec/chrony-helper command offline > /dev/null 2>&1
c2c5e4
fi
c2c5e4
c2c5e4
exit 0