da0102
#!/bin/bash
da0102
da0102
SERVERFILE=$SAVEDIR/chrony.servers.$interface
da0102
da0102
chrony_config() {
da0102
	rm -f $SERVERFILE
da0102
	if [ "$PEERNTP" != "no" ]; then
da0102
		for server in $new_ntp_servers; do
da0102
			echo "$server ${NTPSERVERARGS:-iburst}" >> $SERVERFILE
da0102
		done
da0102
		/usr/libexec/chrony-helper update-daemon || :
da0102
	fi
da0102
}
da0102
da0102
chrony_restore() {
da0102
	if [ -f $SERVERFILE ]; then
da0102
		rm -f $SERVERFILE
da0102
		/usr/libexec/chrony-helper update-daemon || :
da0102
	fi
da0102
}