chrony/chrony.dhclient
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

25 lines
533 B
Bash

#!/bin/bash
SERVERFILE=$SAVEDIR/chrony.servers.$interface
chrony_config() {
rm -f $SERVERFILE
if [ "$PEERNTP" != "no" ]; then
/etc/init.d/chronyd command "$(
for server in $new_ntp_servers; do
echo "add server $server $NTPSERVERARGS"
echo "$server $NTPSERVERARGS" >> $SERVERFILE
done)" &> /dev/null
fi
}
chrony_restore() {
if [ -f $SERVERFILE ]; then
/etc/init.d/chronyd command "$(
while read server serverargs; do
echo "delete $server"
done < $SERVERFILE)" &> /dev/null
rm -f $SERVERFILE
fi
}