summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2013-05-07 00:14:02 +0000
committerOlivier Blin <blino@mageia.org>2013-05-07 00:14:02 +0000
commit2da6683219698f9ef15c5ccca5c6a6807669b235 (patch)
treec1ece7b8fda4af6c2b1a8375b49e67d16bcda03b
parent5c8e0f84fa30e346d9aa54b80582cd3d7c6be661 (diff)
downloaddrakx-backup-do-not-use-2da6683219698f9ef15c5ccca5c6a6807669b235.tar
drakx-backup-do-not-use-2da6683219698f9ef15c5ccca5c6a6807669b235.tar.gz
drakx-backup-do-not-use-2da6683219698f9ef15c5ccca5c6a6807669b235.tar.bz2
drakx-backup-do-not-use-2da6683219698f9ef15c5ccca5c6a6807669b235.tar.xz
drakx-backup-do-not-use-2da6683219698f9ef15c5ccca5c6a6807669b235.zip
harddrake: move ethernet config in harddrake::autoconf::network_conf
-rw-r--r--perl-install/harddrake/autoconf.pm11
-rwxr-xr-xperl-install/standalone/service_harddrake10
2 files changed, 11 insertions, 10 deletions
diff --git a/perl-install/harddrake/autoconf.pm b/perl-install/harddrake/autoconf.pm
index a12662b60..a82446db6 100644
--- a/perl-install/harddrake/autoconf.pm
+++ b/perl-install/harddrake/autoconf.pm
@@ -25,7 +25,16 @@ sub xconf {
}
sub network_conf {
- my ($obj) = @_;
+ my ($modules_conf) = @_;
+ $modules_conf->remove_alias_regexp('^(wlan|eth)[0-9]*$');
+ modules::load_category($modules_conf, 'network/main|gigabit|usb|wireless|firewire|pcmcia');
+ require network::connection::ethernet;
+ network::connection::ethernet::configure_eth_aliases($modules_conf);
+ require network::rfswitch;
+ network::rfswitch::configure();
+ require network::shorewall;
+ network::shorewall::update_interfaces_list();
+ $modules_conf->write;
}
sub mouse_conf {
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 2e96fe6c7..fd86fb4f2 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -320,15 +320,7 @@ foreach my $hw_class (@harddrake::data::tree) {
harddrake::sound::configure_sound_slots($modules_conf);
next;
} elsif ($Ident eq "ETHERNET") {
- $modules_conf->remove_alias_regexp('^(wlan|eth)[0-9]*$');
- modules::load_category($modules_conf, 'network/main|gigabit|usb|wireless|firewire|pcmcia');
- require network::connection::ethernet;
- network::connection::ethernet::configure_eth_aliases($modules_conf);
- require network::rfswitch;
- network::rfswitch::configure();
- require network::shorewall;
- network::shorewall::update_interfaces_list();
- $modules_conf->write;
+ harddrake::autoconf::network_conf($modules_conf);
next;
} elsif (member($Ident, qw(ATA_STORAGE CARD_READER RAID_STORAGE SATA_STORAGE SCSI_CONTROLLER))) {
# set scsi_hostadapter in modprobe.conf: