From 7eb934dd83e9f92cab0aab9c993d3d840e9add29 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 27 Nov 2019 09:46:41 +0100 Subject: [PATCH] committing changes in /etc after apt run Package changes: -amd64-microcode 3.20191021.1ubuntu0.18.04.2 amd64 +amd64-microcode 3.20191021.1+really3.20181128.1~ubuntu0.18.04.1 amd64 -debootstrap 1.0.95ubuntu0.4 all +debootstrap 1.0.95ubuntu0.5 all -enigmail 2:2.0.8-1~ubuntu0.18.04.2 all +enigmail 2:2.1.2-0ubuntu1~18.04.2 all -libnss-myhostname 237-3ubuntu10.31 amd64 -libnss-systemd 237-3ubuntu10.31 amd64 +libnss-myhostname 237-3ubuntu10.33 amd64 +libnss-systemd 237-3ubuntu10.33 amd64 -libpam-systemd 237-3ubuntu10.31 amd64 +libpam-systemd 237-3ubuntu10.33 amd64 -libruby2.5 2.5.1-1ubuntu1.5 amd64 +libruby2.5 2.5.1-1ubuntu1.6 amd64 -libsystemd0 237-3ubuntu10.31 amd64 +libsystemd0 237-3ubuntu10.33 amd64 -libudev1 237-3ubuntu10.31 amd64 -libudev1 237-3ubuntu10.31 i386 +libudev1 237-3ubuntu10.33 amd64 +libudev1 237-3ubuntu10.33 i386 -ruby2.5 2.5.1-1ubuntu1.5 amd64 +ruby2.5 2.5.1-1ubuntu1.6 amd64 -systemd 237-3ubuntu10.31 amd64 -systemd-sysv 237-3ubuntu10.31 amd64 +systemd 237-3ubuntu10.33 amd64 +systemd-sysv 237-3ubuntu10.33 amd64 -thunderbird 1:60.9.0+build1-0ubuntu0.18.04.1 amd64 -thunderbird-gnome-support 1:60.9.0+build1-0ubuntu0.18.04.1 amd64 -thunderbird-locale-de 1:60.9.0+build1-0ubuntu0.18.04.1 amd64 -thunderbird-locale-en 1:60.9.0+build1-0ubuntu0.18.04.1 amd64 -thunderbird-locale-vi 1:60.9.0+build1-0ubuntu0.18.04.1 amd64 +thunderbird 1:68.2.1+build1-0ubuntu0.18.04.1 amd64 +thunderbird-gnome-support 1:68.2.1+build1-0ubuntu0.18.04.1 amd64 +thunderbird-locale-de 1:68.2.1+build1-0ubuntu0.18.04.1 amd64 +thunderbird-locale-en 1:68.2.1+build1-0ubuntu0.18.04.1 amd64 +thunderbird-locale-vi 1:68.2.1+build1-0ubuntu0.18.04.1 amd64 -ubuntu-drivers-common 1:0.5.2.3 amd64 +ubuntu-drivers-common 1:0.5.2.4 amd64 -udev 237-3ubuntu10.31 amd64 +udev 237-3ubuntu10.33 amd64 --- dhcp/dhclient-enter-hooks.d/resolved | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dhcp/dhclient-enter-hooks.d/resolved b/dhcp/dhclient-enter-hooks.d/resolved index b504f5b..ebbb31f 100755 --- a/dhcp/dhclient-enter-hooks.d/resolved +++ b/dhcp/dhclient-enter-hooks.d/resolved @@ -28,6 +28,9 @@ if [ -x /lib/systemd/systemd-resolved ] ; then fi statedir="/run/systemd/resolved.conf.d" mkdir -p $statedir + + oldstate="$(mktemp)" + md5sum $statedir/isc-dhcp-v4-$interface.conf $statedir/isc-dhcp-v6-$interface.conf > $oldstate 2> /dev/null if [ -n "$new_domain_name_servers" ] ; then cat <$statedir/isc-dhcp-v4-$interface.conf [Resolve] @@ -50,7 +53,15 @@ Domains=$new_dhcp6_domain_search EOF fi fi - systemctl try-reload-or-restart systemd-resolved.service + + newstate="$(mktemp)" + md5sum $statedir/isc-dhcp-v4-$interface.conf $statedir/isc-dhcp-v6-$interface.conf > $newstate 2> /dev/null + if ! cmp $oldstate $newstate; then + systemctl try-reload-or-restart systemd-resolved.service + fi + + rm $oldstate + rm $newstate } ;; -- 2.39.5