summaryrefslogtreecommitdiffstats
path: root/lib/network/netconnect.pm
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-04-06 21:35:17 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-04-06 21:35:17 +0000
commit15fc28db108f4a5ff8c63533344ca644b7b7a2a4 (patch)
tree904a56672e0519816bf3654e7306a3c23d68fd71 /lib/network/netconnect.pm
parent6f5d03bd797cea20a7d35b29abb04ba256c7f323 (diff)
downloaddrakx-net-15fc28db108f4a5ff8c63533344ca644b7b7a2a4.tar
drakx-net-15fc28db108f4a5ff8c63533344ca644b7b7a2a4.tar.gz
drakx-net-15fc28db108f4a5ff8c63533344ca644b7b7a2a4.tar.bz2
drakx-net-15fc28db108f4a5ff8c63533344ca644b7b7a2a4.tar.xz
drakx-net-15fc28db108f4a5ff8c63533344ca644b7b7a2a4.zip
Adding missing resolv.conf during install if necessary.
Diffstat (limited to 'lib/network/netconnect.pm')
-rw-r--r--lib/network/netconnect.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/network/netconnect.pm b/lib/network/netconnect.pm
index f344b34..18488e0 100644
--- a/lib/network/netconnect.pm
+++ b/lib/network/netconnect.pm
@@ -320,6 +320,8 @@ If you do not know it, keep the preselected protocol.") },
last if $status;
sleep 1;
}
+ # workaround missing resolvconf
+ -f "/etc/resolv.conf" or cp_f("$::prefix/etc/resolv.conf", "/etc/resolv.conf");
}
$success = $connection->get_status();
$has_internet = network::tools::connected();