Prefering local resolv.conf over truncated one.

This commit is contained in:
Daniel Baumann 2009-01-11 16:17:41 +01:00
parent b4d2797d26
commit a7334c6c16
1 changed files with 6 additions and 1 deletions

View File

@ -76,7 +76,12 @@ case "${1}" in
# Creating lock file
Create_lockfile .lock
if [ -e chroot/etc/resolv.conf.orig ]
if [ -e config/chroot_local-includes/etc/resolv.conf ]
then
# Copying local resolv.conf
cp -a config/chroot_local-includes/etc/resolv.conf chroot/etc/resolv.conf
rm -f chroot/etc/resolv.conf.orig
elif [ -e chroot/etc/resolv.conf.orig ]
then
# Restoring resolv file or symlink
mv chroot/etc/resolv.conf.orig chroot/etc/resolv.conf