summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-06-03 09:56:37 +0000
committerOlivier Blin <oblin@mandriva.org>2005-06-03 09:56:37 +0000
commitebd1653d15280a41ac7f6c90e38ee21170e5ade9 (patch)
treed623138e256b92d078631093baf370d49116e885
parent59cfb9ee23428ac52612cd9c57162d03523b8099 (diff)
downloaddrakx-ebd1653d15280a41ac7f6c90e38ee21170e5ade9.tar
drakx-ebd1653d15280a41ac7f6c90e38ee21170e5ade9.tar.gz
drakx-ebd1653d15280a41ac7f6c90e38ee21170e5ade9.tar.bz2
drakx-ebd1653d15280a41ac7f6c90e38ee21170e5ade9.tar.xz
drakx-ebd1653d15280a41ac7f6c90e38ee21170e5ade9.zip
define $o->{net}{type} and $o->{net}{net_interface} for lan installs
-rw-r--r--perl-install/install2.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm
index 13e7cb581..56d6682cd 100644
--- a/perl-install/install2.pm
+++ b/perl-install/install2.pm
@@ -494,6 +494,8 @@ sub main {
log::l("found network config file $file");
add2hash($o->{net}{resolv} ||= {}, network::network::read_resolv_conf($file));
}
+ $o->{net}{type} = 'lan';
+ $o->{net}{net_interface} = first(values %{$o->{net}{ifcfg}});
}
#- done after module dependencies are loaded for "vfat depends on fat"