Don't fail if resolv.conf is a symlink, thanks to David Madore <david.madore@ens.fr> (Closes: #457595).

This commit is contained in:
Daniel Baumann 2007-12-23 21:26:01 +01:00
parent 20c3c938a0
commit fefba74183
1 changed files with 4 additions and 4 deletions

View File

@ -49,9 +49,9 @@ case "${1}" in
# Creating lock file
Create_lockfile .lock
if [ -f chroot/etc/resolv.conf ]
if [ -e chroot/etc/resolv.conf ]
then
# Save resolv file
# Save resolv file or symlink
mv chroot/etc/resolv.conf chroot/etc/resolv.conf.orig
fi
@ -74,9 +74,9 @@ case "${1}" in
# Creating lock file
Create_lockfile .lock
if [ -f chroot/etc/resolv.conf.orig ]
if [ -e chroot/etc/resolv.conf.orig ]
then
# Restoring resolv file
# Restoring resolv file or symlink
mv chroot/etc/resolv.conf.orig chroot/etc/resolv.conf
else
# Truncating resolv file