diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-20 15:31:20 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-20 15:31:20 +0000 |
commit | cd417a1a507369b6df9ab23415bf6da3579c2bc5 (patch) | |
tree | fd3ee079320c38e87e3079edd28aa3878e1cfdb7 /mdk-stage1/adsl.c | |
parent | 957fd74e4e5f5b58c7ff6cc6ed64ad200db6e6bb (diff) | |
download | drakx-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.c | 5 |
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) { |