chrony/chrony.nm-dispatcher
Miroslav Lichvar 09dcbbacfb - update to 20100428git73d775
- 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
2010-04-29 13:50:56 +00:00

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