09dcbbacfb
- replace initstepslew directive with makestep in default config - add NetworkManager dispatcher script - add dhclient script - retry server/peer name resolution at least once to workaround NetworkManager race condition on boot - don't verify chrony.keys
16 lines
253 B
Bash
16 lines
253 B
Bash
#!/bin/sh
|
|
|
|
export LC_ALL=C
|
|
|
|
if [ "$2" = "up" ]; then
|
|
/sbin/ip route list dev "$1" | grep -q '^default' &&
|
|
/etc/init.d/chronyd online
|
|
fi
|
|
|
|
if [ "$2" = "down" ]; then
|
|
/sbin/ip route list | grep -q '^default' ||
|
|
/etc/init.d/chronyd offline
|
|
fi
|
|
|
|
exit 0
|