[Resolvconf-devel] Bug#783596: resolvconf /e/n/i dns-* option only works in last of homonymous iface def'ns

Chris Francy francyci at gmail.com
Tue Nov 15 00:44:04 UTC 2016


Hi, Sorry to be a bother, but it seems like my suggestion got
overlooked for this issue.  Perhaps because the bug is flagged as
wontfix?  My suggestion would permit you to have resolveconf
configuration for one interface, not be overwritten by interfaces with
no resolveconf configuration.  Am I missing something obvious reason
why a patch like this shouldn't be applied?

---
 debian/resolvconf.000resolvconf.if-up | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/resolvconf.000resolvconf.if-up
b/debian/resolvconf.000resolvconf.if-up
index f799371..d4b47d0 100755
--- a/debian/resolvconf.000resolvconf.if-up
+++ b/debian/resolvconf.000resolvconf.if-up
@@ -43,5 +43,8 @@ for OPT in $IF_DNS_NAMESERVER ; do
 done
 IFS="$STANDARD_IFS"

+# if we don't  have any options, don't do anything.
+test -n "$R" || exit 0
+
 echo -n "$R" | /sbin/resolvconf -a "${IFACE}.${ADDRFAM}" || :
-- 

Thanks for reviewing this.

Chris Francy



More information about the Resolvconf-devel mailing list