From c33096066f32297bbc275ea820531fe55e45b705 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sun, 28 Aug 2005 21:38:32 +0000 Subject: ka support (initially from Antoine Ginies and Erwan Velu) --- mdk-stage1/network.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'mdk-stage1/network.c') 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 -- cgit v1.2.1