summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic.pouzenc@mines-albi.fr>2017-09-27 18:11:57 +0200
committerLudovic Pouzenc <ludovic.pouzenc@mines-albi.fr>2017-09-27 18:11:57 +0200
commitaba9f58b757b578d9e7176e6200a3c57aa0a7693 (patch)
treefdc0dad32affb23cc79339dc7ca7afd56818b8cb
parent42ac8a00e1a6a5c6df1a9bafb8a352555dacf747 (diff)
downloadeficast-aba9f58b757b578d9e7176e6200a3c57aa0a7693.tar.gz
eficast-aba9f58b757b578d9e7176e6200a3c57aa0a7693.tar.bz2
eficast-aba9f58b757b578d9e7176e6200a3c57aa0a7693.zip
Attempt to fix missing carriage returns in resolv.conf
-rwxr-xr-xmake-boot-image.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/make-boot-image.sh b/make-boot-image.sh
index 6faf09a..81c6ec4 100755
--- a/make-boot-image.sh
+++ b/make-boot-image.sh
@@ -478,10 +478,9 @@ case $1 in
# Update resolver configuration file
[ -n "$domain" ] && R="domain $domain" || R=""
for i in $dns; do
- R="$R
- nameserver $i"
+ R="$R\nnameserver $i"
done
- echo $R > /etc/resolv.conf
+ echo -e "$R" > /etc/resolv.conf
# Update in-kernel-memory hostname
[ -n "$hostname" ] && hostname $hostname