Use resolv.conf.head and tail files if present.
authorRoy Marples <roy@marples.name>
Fri, 20 Nov 2009 20:23:48 +0000 (20:23 +0000)
committerRoy Marples <roy@marples.name>
Fri, 20 Nov 2009 20:23:48 +0000 (20:23 +0000)
libc.in

diff --git a/libc.in b/libc.in
index 946e09466c71ebf42226da98c731c2914e311e9f..0037ef020d381af5d2595b643b09a7eb2fcc2069 100644 (file)
--- a/libc.in
+++ b/libc.in
@@ -79,6 +79,12 @@ fi
 : ${resolv_conf:=/etc/resolv.conf}
 : ${libc_restart:=@RESTARTCMD nscd@}
 : ${list_resolv:=@PREFIX@/sbin/resolvconf -l}
+if [ "${resolv_conf_head-x}" = x -a -f "$SYSCONFDIR"/resolv.conf.head ]; then
+       resolv_conf_head="$(cat "${SYSCONFDIR}"/resolv.conf.head)"
+fi
+if [ "${resolv_conf_tail-x}" = x -a -f "$SYSCONFDIR"/resolv.conf.tail ]; then
+       resolv_conf_tail="$(cat "$SYSCONFDIR"/resolv.conf.tail)"
+fi
 
 uniqify()
 {