Prefering local resolv.conf over truncated one.
This commit is contained in:
parent
b4d2797d26
commit
a7334c6c16
|
@ -76,7 +76,12 @@ case "${1}" in
|
||||||
# Creating lock file
|
# Creating lock file
|
||||||
Create_lockfile .lock
|
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
|
then
|
||||||
# Restoring resolv file or symlink
|
# Restoring resolv file or symlink
|
||||||
mv chroot/etc/resolv.conf.orig chroot/etc/resolv.conf
|
mv chroot/etc/resolv.conf.orig chroot/etc/resolv.conf
|
||||||
|
|
Loading…
Reference in New Issue