From 6af423a3ade22e28ba49191385a1f63db5b4199f Mon Sep 17 00:00:00 2001 From: Pavel Zhukov Date: Mon, 18 Jun 2018 11:04:09 +0200 Subject: [PATCH] Handle dhcp4-change events properly --- 11-dhclient | 4 ++++ dhcp.spec | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/11-dhclient b/11-dhclient index 43b5259..8bd0c75 100644 --- a/11-dhclient +++ b/11-dhclient @@ -25,6 +25,10 @@ if [ -d $ETCDIR/dhclient.d ]; then . "${f}" if [ "$2" = "up" ]; then "${subsystem}_config" + elif [ "$2" = "dhcp4-change" ]; then + if [ "$subsystem" = "chrony" -o "$subsystem" = "ntp" ]; then + "${subsystem}_config" + fi elif [ "$2" = "down" ]; then "${subsystem}_restore" fi diff --git a/dhcp.spec b/dhcp.spec index 6ec2168..2b87082 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -16,7 +16,7 @@ Summary: Dynamic host configuration protocol software Name: dhcp Version: 4.3.6 -Release: 24%{?dist} +Release: 25%{?dist} # NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to # dcantrell maintaining the package) made incorrect use of the epoch and # that's why it is at 12 now. It should have never been used, but it was. @@ -677,6 +677,9 @@ done %endif %changelog +* Mon Jun 18 2018 Pavel Zhukov - 12:4.3.6-25 +- Resolves: 1592239 - Handle dhcp4-change event properly + * Mon May 21 2018 Pavel Zhukov - 12:4.3.6-24 - Fix few more shellcheck warnings