Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 804a4cb6b401291c5e114caac393c084 > files > 5

chrony-1.26-5.20110831gitb088b7.fc16.src.rpm

#!/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" >> $SERVERFILE
		done
		/usr/libexec/chrony-helper is-running &&
			/usr/libexec/chrony-helper add-dhclient-servers &&
			/usr/libexec/chrony-helper remove-dhclient-servers || :
	fi
}

chrony_restore() {
	if [ -f $SERVERFILE ]; then
		rm -f $SERVERFILE
		/usr/libexec/chrony-helper is-running &&
			/usr/libexec/chrony-helper remove-dhclient-servers || :
	fi
}