summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/stage1.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/stage1.c')
-rw-r--r--mdk-stage1/stage1.c31
1 files changed, 28 insertions, 3 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 4265138d9..db9a4a15c 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -64,7 +64,8 @@
#endif
-/* globals */
+/************************************************************
+ * globals */
char * method_name;
@@ -76,7 +77,24 @@ void fatal_error(char *msg)
}
-/* spawns a shell on console #2 */
+/************************************************************
+ * backend functs
+ * the principle is to not pollute frontend code with stage1-specific stuff */
+
+int error_message_backend(void)
+{
+ unset_param(MODE_AUTOMATIC);
+ return 0;
+}
+
+int info_message_backend(void)
+{
+ return IS_AUTOMATIC ? 1 : 0;
+}
+
+
+/************************************************************
+ * spawns a shell on console #2 */
static void spawn_shell(void)
{
#ifdef SPAWN_SHELL
@@ -175,6 +193,9 @@ static void spawn_interactive(void)
}
+/************************************************************
+ */
+
static void expert_third_party_modules(void)
{
enum return_type results;
@@ -251,6 +272,10 @@ static void handle_pcmcia(char ** pcmcia_adapter)
#endif
}
+
+/************************************************************
+ */
+
static enum return_type method_select_and_prepare(void)
{
enum return_type results;
@@ -337,7 +362,7 @@ int main(int argc, char **argv, char **env)
handle_env(env);
spawn_shell();
init_modules_insmoding();
- init_frontend();
+ init_frontend("Welcome to " DISTRIB_NAME " (" VERSION ") " __DATE__ " " __TIME__);
if (IS_EXPERT)
expert_third_party_modules();