Ensure we have a newline.
authorRoy Marples <roy@marples.name>
Sat, 23 Aug 2008 09:38:28 +0000 (09:38 +0000)
committerRoy Marples <roy@marples.name>
Sat, 23 Aug 2008 09:38:28 +0000 (09:38 +0000)
resolvconf.in

index 1dc88b0a30037fb04be3a5fe796914e704c2dfd7..d72923e9c956c9edd29aa87b4e1bb154ea4d04fa 100755 (executable)
@@ -324,7 +324,7 @@ fi
 
 if [ "${CMD}" = "a" ]; then
        # Read resolv.conf from stdin
-       RESOLV="$(cat)"
+       RESOLV="$(cat)\n"
        # If what we are given matches what we have, then do nothing
        if [ -e "${IFACEDIR}/${IFACE}" ]; then
                if [ "$(printf "${RESOLV}")" = "$(cat "${IFACEDIR}/${IFACE}")" ]