diff options
author | Dirk von Suchodoletz | 2007-06-04 20:37:30 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2007-06-04 20:37:30 +0200 |
commit | c695e65603b1d7e9e80485c3b8d1e2eadbffb0db (patch) | |
tree | 74e9c6c35d2a994cf4249e8ae414183ef37d3888 /initramfs/initrd-stuff/bin/servconfig | |
parent | Path change of xdialog.sh from /etc/X11 to /var/X11R6/bin (diff) | |
download | core-c695e65603b1d7e9e80485c3b8d1e2eadbffb0db.tar.gz core-c695e65603b1d7e9e80485c3b8d1e2eadbffb0db.tar.xz core-c695e65603b1d7e9e80485c3b8d1e2eadbffb0db.zip |
Avoid pitfall if resolv.conf is a link.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1146 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/bin/servconfig')
-rwxr-xr-x | initramfs/initrd-stuff/bin/servconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/initramfs/initrd-stuff/bin/servconfig b/initramfs/initrd-stuff/bin/servconfig index aea0e16f..6a4f04e8 100755 --- a/initramfs/initrd-stuff/bin/servconfig +++ b/initramfs/initrd-stuff/bin/servconfig @@ -169,6 +169,7 @@ else echo -e "$clientip\t$host_name" >>/mnt/etc/hosts fi # set up domainname and resolving +rm -rf /mnt/etc/resolv.conf test -n "$domain_name" && \ echo -e "# /etc/resolv.conf - file generated by\n#\t$0:\n\ #\t$date\n#options timeout:1 attempts:1 rotate\n\ |