summaryrefslogtreecommitdiff
path: root/make-boot-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make-boot-image.sh')
-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