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"