Skip to content

Commit

Permalink
Making nameserver assignment from ip= bootparameter work with persist…
Browse files Browse the repository at this point in the history
…ence.
  • Loading branch information
daniel-baumann committed Aug 14, 2012
1 parent ab6364d commit 3e6ca00
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/boot/9990-netbase.sh
Expand Up @@ -65,11 +65,13 @@ EOF

if [ -n "${nameserver}" ]
then
if [ -e "${DNSFILE}" ]
then
grep -v ^nameserver "${DNSFILE}" > "${DNSFILE}.tmp"
mv "${DNSFILE}.tmp" "${DNSFILE}"
fi

cat >> "${DNSFILE}" << EOF
nameserver ${nameserver}
EOF

echo "nameserver ${nameserver}" >> "${DNSFILE}"
fi
done
else
Expand Down

0 comments on commit 3e6ca00

Please sign in to comment.