summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/dhcpmkconfig
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/stage3-stuff/bin/dhcpmkconfig')
-rwxr-xr-xinitramfs/stage3-stuff/bin/dhcpmkconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/initramfs/stage3-stuff/bin/dhcpmkconfig b/initramfs/stage3-stuff/bin/dhcpmkconfig
index aee0eb6d..c8bf73d8 100755
--- a/initramfs/stage3-stuff/bin/dhcpmkconfig
+++ b/initramfs/stage3-stuff/bin/dhcpmkconfig
@@ -31,8 +31,8 @@ set | sed \
-e "s,nissrv,nis_servers,;s,nisdomain_name,nis_domain," \
-e "s,wins,netbios_name_servers,;/OPTIND.*/d" >>/tmp/confviadhcp
-# erzeugen einer lokalen /etc/resolv.conf
-echo -e "search $domain\n" >/etc/resolv.conf
+# generate a local /etc/resolv.conf (might overwrite the version from preboot)
+[ -n "$domain" ] && echo -e "search $domain\n" >/etc/resolv.conf
test -n "$dns" && {
for name in $dns; do
echo nameserver $name >>/etc/resolv.conf;