diff options
Diffstat (limited to 'mdk-stage1/params.c')
| -rw-r--r-- | mdk-stage1/params.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mdk-stage1/params.c b/mdk-stage1/params.c index 311f8b0ea..9398759ab 100644 --- a/mdk-stage1/params.c +++ b/mdk-stage1/params.c @@ -1,7 +1,7 @@ /* - * Guillaume Cottenceau (gc@mandrakesoft.com) + * Guillaume Cottenceau (gc) * - * Copyright 2000 Mandrakesoft + * Copyright 2000 Mandriva * * This software may be freely redistributed under the terms of the GNU * public license. @@ -13,6 +13,7 @@ */ #include <stdlib.h> +#include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> @@ -21,7 +22,6 @@ #include "utils.h" #include "automatic.h" #include "log.h" -#include "bootsplash.h" static struct param_elem params[50]; static int param_number = 0; @@ -62,7 +62,7 @@ void process_cmdline(void) i++; continue; } - name = memdup(&buf[j], i-j + 1); + name = _memdup(&buf[j], i-j + 1); name[i-j] = '\0'; if (buf[i] == '=') { @@ -70,7 +70,7 @@ void process_cmdline(void) i++; while (buf[i] != ' ' && buf[i] != '\0') i++; - value = memdup(&buf[k], i-k + 1); + value = _memdup(&buf[k], i-k + 1); value[i-k] = '\0'; } @@ -80,6 +80,8 @@ void process_cmdline(void) if (!strcmp(name, "changedisk")) set_param(MODE_CHANGEDISK); if (!strcmp(name, "updatemodules") || !strcmp(name, "thirdparty")) set_param(MODE_THIRDPARTY); + if (!strcmp(name, "rescue") || + !strcmp(name, "kamethod")) set_param(MODE_RESCUE); if (!strcmp(name, "rescue")) set_param(MODE_RESCUE); if (!strcmp(name, "keepmounted")) set_param(MODE_KEEP_MOUNTED); if (!strcmp(name, "noauto")) set_param(MODE_NOAUTO); @@ -170,5 +172,4 @@ void unset_automatic(void) { log_message("unsetting automatic"); unset_param(MODE_AUTOMATIC); - exit_bootsplash(); } |
