From f96f70555925073f04f6faddda3cbdaef25a713e Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Fri, 11 Oct 2013 11:04:54 -0700 Subject: [PATCH] Remove \r chars from dhcp-all-interfaces For some reason we are adding CR's to/etc/network/interfaces, but it does not require them. They are a bit annoying to see in an editor and serve no known purpose there. Change-Id: I9aeeff5533f418f09fcf33edd42e5d85cd486d23 --- .../dhcp-all-interfaces/install.d/generate-interfaces-file.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/dhcp-all-interfaces/install.d/generate-interfaces-file.sh b/elements/dhcp-all-interfaces/install.d/generate-interfaces-file.sh index bf9d5ac14..564e94db9 100755 --- a/elements/dhcp-all-interfaces/install.d/generate-interfaces-file.sh +++ b/elements/dhcp-all-interfaces/install.d/generate-interfaces-file.sh @@ -35,7 +35,7 @@ for interface in $(ls /sys/class/net | grep -v ^lo$) ; do TRIES=$(( TRIES - 1 )) done if [ "$HAS_LINK" == "1" ] ; then - printf "auto $interface\r\niface $interface inet dhcp\r\n\r\n" >>$INTERFACES_FILE + printf "auto $interface\niface $interface inet dhcp\n\n" >>$INTERFACES_FILE echo "Configured" else echo "No link detected, skipping"