]> Frank Brehm's Git Trees - config/bruni/etc-mint.git/commitdiff
committing changes in /etc after apt run
authorFrank Brehm <frank@brehm-online.com>
Wed, 27 Nov 2019 08:46:41 +0000 (09:46 +0100)
committerFrank Brehm <frank@brehm-online.com>
Wed, 27 Nov 2019 08:46:41 +0000 (09:46 +0100)
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

index b504f5b8275775061ae99c8005a1d26231d84731..ebbb31fb5ca69b6218b15e92729147ea1aea0633 100755 (executable)
@@ -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 <<EOF >$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
           }
                 ;;