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