diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-08-28 21:38:32 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-08-28 21:38:32 +0000 |
commit | c33096066f32297bbc275ea820531fe55e45b705 (patch) | |
tree | 85b5c4fcb02b38d30805a4b22320924f7be41391 /mdk-stage1/network.c | |
parent | fcd42ef1d7175f46663fde210e4e6cd9f059cfef (diff) | |
download | drakx-backup-do-not-use-c33096066f32297bbc275ea820531fe55e45b705.tar drakx-backup-do-not-use-c33096066f32297bbc275ea820531fe55e45b705.tar.gz drakx-backup-do-not-use-c33096066f32297bbc275ea820531fe55e45b705.tar.bz2 drakx-backup-do-not-use-c33096066f32297bbc275ea820531fe55e45b705.tar.xz drakx-backup-do-not-use-c33096066f32297bbc275ea820531fe55e45b705.zip |
ka support (initially from Antoine Ginies and Erwan Velu)
Diffstat (limited to 'mdk-stage1/network.c')
-rw-r--r-- | mdk-stage1/network.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index 355227863..cbc90126b 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -51,6 +51,10 @@ #include "directory.h" #include "wireless.h" +#ifndef DISABLE_KA +#include "ka.h" +#endif + static void error_message_net(void) /* reduce code size */ { stg1_error_message("Could not configure network."); @@ -1204,4 +1208,25 @@ enum return_type http_prepare(void) return RETURN_OK; } + +#ifndef DISABLE_KA +enum return_type ka_prepare(void) +{ + enum return_type results; + + if (!ramdisk_possible()) { + stg1_error_message("KA install needs more than %d Mbytes of memory (detected %d Mbytes).", + MEM_LIMIT_DRAKX, total_memory()); + return RETURN_ERROR; + } + + results = intf_select_and_up(); + + if (results != RETURN_OK) + return results; + + return perform_ka(); +} +#endif + #endif |