diff options
Diffstat (limited to 'mdk-stage1/params.c')
| -rw-r--r-- | mdk-stage1/params.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/mdk-stage1/params.c b/mdk-stage1/params.c index 38ac94956..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. @@ -22,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; @@ -63,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] == '=') { @@ -71,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';  		} @@ -81,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); @@ -171,5 +172,4 @@ void unset_automatic(void)  {  	log_message("unsetting automatic");  	unset_param(MODE_AUTOMATIC); -	exit_bootsplash();  } | 
