diff options
| author | Daniel Baumann <daniel@debian.org> | 2012-08-14 20:58:41 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2012-08-14 20:58:41 +0200 |
| commit | 3e6ca002a29e3dd9afeb57084b7bf1c7ce4504ca (patch) | |
| tree | 1fac572830c4d36a57315a152fdd35060f22f798 /scripts | |
| parent | ab6364da036b4b09c0e5c92b0e21c4d43e4bd4c2 (diff) | |
| download | live-boot-3e6ca002a29e3dd9afeb57084b7bf1c7ce4504ca.tar.gz live-boot-3e6ca002a29e3dd9afeb57084b7bf1c7ce4504ca.zip | |
Making nameserver assignment from ip= bootparameter work with persistence.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/boot/9990-netbase.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/boot/9990-netbase.sh b/scripts/boot/9990-netbase.sh index 384f3f6..64e30df 100755 --- a/scripts/boot/9990-netbase.sh +++ b/scripts/boot/9990-netbase.sh @@ -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 |
