1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-24 23:22:27 +01:00

allow wicd daemon to start even if /etc/resolv.conf is a relative symlink

This commit is contained in:
Javier P.L.
2013-12-06 07:42:39 -06:00
parent f8a7f5bb34
commit cf1abd68dc

View File

@@ -1792,7 +1792,7 @@ def main(argv):
backup_location = wpath.varlib + 'resolv.conf.orig'
# don't back up if .orig exists, probably there cause
# wicd exploded
if not os.path.exists(backup_location):
if not os.path.exists(backup_location) and not os.path.islink(backup_location):
if os.path.islink('/etc/resolv.conf'):
dest = os.readlink('/etc/resolv.conf')
os.symlink(dest, backup_location)