whitespace
[openresolv] / libc.in
diff --git a/libc.in b/libc.in
index b7a1abdb9f5b3f0b06bd878e7e55814614a1dbf1..8d6f9ae8d1e8f148ec6cfc0795f2ee30dd36cad4 100755 (executable)
--- a/libc.in
+++ b/libc.in
@@ -108,7 +108,7 @@ done
 [ -n "${SEARCH}" ] && SEARCH="search${SEARCH}"
 
 # Hold our new resolv.conf in a variable to save on temporary files
-NEWCONF="# Generated by resolvconf\n"
+NEWCONF=""
 [ -e "${SYSCONFDIR}"/resolv.conf.d/head ] \
        && NEWCONF="${NEWCONF}$(cat "${SYSCONFDIR}"/resolv.conf.d/head)\n"
 [ -n "${SEARCH}" ] && NEWCONF="${NEWCONF}${SEARCH}\n"
@@ -122,7 +122,7 @@ if [ -e "${BASE}" ]; then
                -e '/^[[:space:]]*nameserver[[:space:]]*.*/d' \
                -e '/^[[:space:]]*search[[:space:]]*.*/d' \
                -e '/^[[:space:]]*domain[[:space:]]*.*/d' \
-               "${BASE}")" 
+               "${BASE}")\n
 fi
 
 # We don't know we're using GNU sed, so we do it like this
@@ -133,7 +133,7 @@ NEWCONF="${NEWCONF}$(echo "${RESOLVCONFS}" | sed -e '/^[[:space:]]*$/d' \
        -e '/^[[:space:]]*domain[[:space:]]*.*/d' \
        )"
 [ -e "${SYSCONFDIR}"/resolv.conf.d/tail ] \
-       && NEWCONF="${NEWCONF}$(cat "${SYSCONFDIR}"/resolv.conf.d/tail)"
+       && NEWCONF="${NEWCONF}$(cat "${SYSCONFDIR}"/resolv.conf.d/tail)\n"
 
 # Check if the file has actually changed or not
 if [ -e "${RESOLVCONF}" ]; then