File chrony.dhclient of Package chrony.14831

#!/bin/bash

SERVERFILE=$SAVEDIR/chrony.servers.$interface

chrony_config() {
	rm -f $SERVERFILE
	if [ "$PEERNTP" != "no" ]; then
		for server in $new_ntp_servers; do
			echo "$server ${NTPSERVERARGS:-iburst}" >> $SERVERFILE
		done
		/usr/lib/chrony/helper update-daemon || :
	fi
}

chrony_restore() {
	if [ -f $SERVERFILE ]; then
		rm -f $SERVERFILE
		/usr/lib/chrony/helper update-daemon || :
	fi
}
openSUSE Build Service is sponsored by