Move the generated by comment to the head file so the user can edit it.
authorRoy Marples <roy@marples.name>
Thu, 6 Mar 2008 23:31:28 +0000 (23:31 +0000)
committerRoy Marples <roy@marples.name>
Thu, 6 Mar 2008 23:31:28 +0000 (23:31 +0000)
head [new file with mode: 0644]
libc.in

diff --git a/head b/head
new file mode 100644 (file)
index 0000000..7d39383
--- /dev/null
+++ b/head
@@ -0,0 +1 @@
+# Generated by resolvconf (8)
diff --git a/libc.in b/libc.in
index b00ba8bea57aba341b687cfaea711983f4b0a491..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"