summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/adsl.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-06-20 15:31:20 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-06-20 15:31:20 +0000
commitcd417a1a507369b6df9ab23415bf6da3579c2bc5 (patch)
treefd3ee079320c38e87e3079edd28aa3878e1cfdb7 /mdk-stage1/adsl.c
parent957fd74e4e5f5b58c7ff6cc6ed64ad200db6e6bb (diff)
downloaddrakx-cd417a1a507369b6df9ab23415bf6da3579c2bc5.tar
drakx-cd417a1a507369b6df9ab23415bf6da3579c2bc5.tar.gz
drakx-cd417a1a507369b6df9ab23415bf6da3579c2bc5.tar.bz2
drakx-cd417a1a507369b6df9ab23415bf6da3579c2bc5.tar.xz
drakx-cd417a1a507369b6df9ab23415bf6da3579c2bc5.zip
save adsl info for stage2
Diffstat (limited to 'mdk-stage1/adsl.c')
-rw-r--r--mdk-stage1/adsl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mdk-stage1/adsl.c b/mdk-stage1/adsl.c
index 74838aa92..706d3c96a 100644
--- a/mdk-stage1/adsl.c
+++ b/mdk-stage1/adsl.c
@@ -147,6 +147,8 @@ enum return_type perform_adsl(struct interface_info * intf)
if (results != RETURN_OK)
return results;
+ intf->boot_proto = BOOTPROTO_ADSL_PPPOE;
+
wait_message("Waiting for ADSL connection to show up...");
my_insmod("ppp_generic", ANY_DRIVER_TYPE, NULL);
my_insmod("ppp_async", ANY_DRIVER_TYPE, NULL);
@@ -158,6 +160,9 @@ enum return_type perform_adsl(struct interface_info * intf)
wait_message("Retrying the ADSL connection...");
results = adsl_connect(intf->device, answers[0], answers[1]);
remove_wait_message();
+ } else {
+ intf->user = strdup(answers[0]);
+ intf->pass = strdup(answers[1]);
}
if (results != RETURN_OK) {