File: resolvconf-rdnssd-hook.patch

package info (click to toggle)
ndisc6 1.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,840 kB
  • sloc: sh: 5,264; ansic: 4,132; makefile: 181; perl: 35; sed: 16
file content (27 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Santiago Vila <sanvila@debian.org>
Subject: This is the diff from version 1.0.1-2, converted to quilt patch

--- a/rdnss/merge-hook.in
+++ b/rdnss/merge-hook.in
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# resolv.conf merge hook for rdnssd
+# resolv.conf merge hook for Debian rdnssd
 
 # *************************************************************************
 # *  Copyright © 2007-2009, 2017 Pierre Ynard.                            *
@@ -19,7 +19,12 @@
 
 set -e
 
-PATH=/sbin:/bin
+# Debian modification, use resolvconf if available
+INPUT="/var/run/rdnssd/resolv.conf"
+if [ -x /sbin/resolvconf ]; then
+       /sbin/resolvconf -a 000.rdnssd < "$INPUT"
+       exit 0
+fi
 
 # Max number of nameserver options taken into account. Should be as
 # defined in <resolv.h>