remove old servers on DHCP update (#787042)

This commit is contained in:
Miroslav Lichvar 2012-02-15 14:31:46 +01:00
parent acf2cf4df7
commit 70a359cd59

View File

@ -9,7 +9,8 @@ chrony_config() {
echo "$server $NTPSERVERARGS" >> $SERVERFILE
done
/usr/libexec/chrony-helper is-running &&
/usr/libexec/chrony-helper add-dhclient-servers || :
/usr/libexec/chrony-helper add-dhclient-servers &&
/usr/libexec/chrony-helper remove-dhclient-servers || :
fi
}