summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-05-04 03:43:14 +0000
committerOlivier Blin <oblin@mandriva.org>2005-05-04 03:43:14 +0000
commit502ebe5b021f3a574dd952f8c32e851ae7095e0c (patch)
tree3f37d0d3f1bab661f8ba1ab9f05b475106b46925
parent748e6a2debd25a02a8987b73d2431756cd738f6a (diff)
downloaddrakx-backup-do-not-use-502ebe5b021f3a574dd952f8c32e851ae7095e0c.tar
drakx-backup-do-not-use-502ebe5b021f3a574dd952f8c32e851ae7095e0c.tar.gz
drakx-backup-do-not-use-502ebe5b021f3a574dd952f8c32e851ae7095e0c.tar.bz2
drakx-backup-do-not-use-502ebe5b021f3a574dd952f8c32e851ae7095e0c.tar.xz
drakx-backup-do-not-use-502ebe5b021f3a574dd952f8c32e851ae7095e0c.zip
ask wireless settings before boot protocol selection
-rw-r--r--perl-install/network/netconnect.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index bf06faf2b..f1eb54f72 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -190,6 +190,8 @@ sub real_main {
return "end";
};
+ my $after_lan_intf_selection = sub { $is_wireless ? 'wireless' : 'lan_protocol' };
+
my $after_start_on_boot_step = sub {
if ($netc->{internet_cnx_choice} && exists $netc->{internet_cnx}{$netc->{internet_cnx_choice}}) {
$netcnx->{type} = $netc->{internet_cnx}{$netc->{internet_cnx_choice}}{type};
@@ -271,7 +273,7 @@ sub real_main {
};
my $ndiswrapper_next_step = sub {
- return $ndiswrapper_device ? 'lan_protocol' :
+ return $ndiswrapper_device ? $after_lan_intf_selection->() :
$ndiswrapper_driver ? 'ndiswrapper_select_device' :
'ndiswrapper_select_driver';
};
@@ -1022,7 +1024,7 @@ You can find a driver on http://eciadsl.flashtux.org/"),
return $ndiswrapper_next_step->();
}
$ethntf = $intf->{$ntf_name} ||= { DEVICE => $ntf_name };
- 'lan_protocol';
+ return $after_lan_intf_selection->();
},
},
@@ -1154,7 +1156,7 @@ notation (for example, 1.2.3.4).")),
#- delete gateway settings if gateway device is invalid or if reconfiguring the gateway interface to dhcp
$delete_gateway_settings->($ntf_name);
}
- return $is_wireless ? "wireless" : "static_hostname";
+ return "static_hostname";
},
},
@@ -1291,7 +1293,7 @@ See iwpriv(8) man page for further information."),
delete $ethntf->{WIRELESS_WPA_DRIVER};
}
network::wireless::wlan_ng_needed($module) and network::wireless::wlan_ng_configure($ethntf->{WIRELESS_ESSID}, $wireless_enc_key, $ethntf->{DEVICE}, $module);
- return "static_hostname";
+ return "lan_protocol";
},
},