From 15fc28db108f4a5ff8c63533344ca644b7b7a2a4 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Mon, 6 Apr 2009 21:35:17 +0000 Subject: Adding missing resolv.conf during install if necessary. --- lib/network/netconnect.pm | 2 ++ 1 file changed, 2 insertions(+) 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(); -- cgit v1.2.1