/* Debug information:
# dpkg list:
rc linux-image-4.6.0-1-amd64 4.6.2-2 amd64 Linux 4.6 for 64-bit PCs
-ii linux-image-4.8.0-1-amd64 4.8.7-1 amd64 Linux 4.8 for 64-bit PCs (signed)
+rc linux-image-4.8.0-1-amd64 4.8.7-1 amd64 Linux 4.8 for 64-bit PCs (signed)
ii linux-image-4.8.0-2-amd64 4.8.15-2 amd64 Linux 4.8 for 64-bit PCs (signed)
-iF linux-image-4.9.0-1-amd64 4.9.2-2 amd64 Linux 4.9 for 64-bit PCs (signed)
-iU linux-image-amd64 4.9+78 amd64 Linux for 64-bit PCs (meta-package)
+iF linux-image-4.9.0-1-amd64 4.9.6-3 amd64 Linux 4.9 for 64-bit PCs (signed)
+ii linux-image-amd64 4.9+78 amd64 Linux for 64-bit PCs (meta-package)
# list of installed kernel packages:
-4.8.0-1-amd64 4.8.7-1
4.8.0-2-amd64 4.8.15-2
-4.9.0-1-amd64 4.9.2-2
+4.9.0-1-amd64 4.9.6-3
# list of different kernel versions:
-4.9.2-2
+4.9.6-3
4.8.15-2
-4.8.7-1
-# Installing kernel: 4.9.2-2 (4.9.0-1-amd64)
-# Running kernel: 4.8.15-2 (4.8.0-2-amd64)
-# Last kernel: 4.9.2-2
+# Installing kernel: 4.9.6-3 (4.9.0-1-amd64)
+# Running kernel: 4.9.6-3 (4.9.0-1-amd64)
+# Last kernel: 4.9.6-3
# Previous kernel: 4.8.15-2
# Kernel versions list to keep:
4.8.15-2
-4.9.2-2
+4.9.6-3
# Kernel packages (version part) to protect:
4\.8\.0-2-amd64
4\.9\.0-1-amd64
# resolv.conf merge hook for Debian rdnssd
# *************************************************************************
-# * Copyright © 2007-2009 Pierre Ynard. *
+# * Copyright © 2007-2009, 2017 Pierre Ynard. *
# * This program is free software: you can redistribute and/or modify *
# * it under the terms of the GNU General Public License as published by *
# * the Free Software Foundation, versions 2 or 3 of the license. *
exit 0
fi
-# Debian modification, awk is in /usr/bin
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-
# Max number of nameserver options taken into account. Should be as
# defined in <resolv.h>
MAXNS=3
limit=$room
fi
-# Merge and write the result
+# Merge and write the result. Let rdnssd assume ownership of all IPv6
+# nameservers, and remove extraneous IPv6 entries as expired. However
+# DHCPv4 most often sets up search list entries, and rdnssd cannot
+# clobber these lest it causes counterintuitive breakage. There is no
+# easy way to properly merge and manage DNSSL entries here, so just drop
+# them.
{
sed -e "/$RE_NSV4OR6/d" < $resolvconf
- [ $limit -gt 0 ] && sed -e "${limit}q" < $myresolvconf
+ grep -m $limit "$RE_NSV4OR6" < $myresolvconf || [ $? -le 1 ]
sed -ne "/$RE_NSV4/p" < $resolvconf
-} | awk '!a[$0]++' > $resolvconf.tmp
+} > $resolvconf.tmp
mv -f $resolvconf.tmp $resolvconf