[chrony/f17] remove old servers on DHCP update (#787042)
Miroslav Lichvar
mlichvar at fedoraproject.org
Wed Feb 15 13:46:34 UTC 2012
commit 70a359cd597ea00ba892f88edb4612be61b6e6dd
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Wed Feb 15 14:31:46 2012 +0100
remove old servers on DHCP update (#787042)
chrony.dhclient | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/chrony.dhclient b/chrony.dhclient
index f779ac8..30c68ab 100644
--- a/chrony.dhclient
+++ b/chrony.dhclient
@@ -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
}
More information about the scm-commits
mailing list