diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-10-22 19:17:52 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-10-22 19:17:52 +0000 |
commit | 287245dab721c6049a946dffb32152fc2839c015 (patch) | |
tree | 30f930d553eef13c637ad93daac3b44414a2155b /mdk-stage1/tools.c | |
parent | a10fa197aa09ed22806d4677093d5ce44c5ec266 (diff) | |
download | drakx-287245dab721c6049a946dffb32152fc2839c015.tar drakx-287245dab721c6049a946dffb32152fc2839c015.tar.gz drakx-287245dab721c6049a946dffb32152fc2839c015.tar.bz2 drakx-287245dab721c6049a946dffb32152fc2839c015.tar.xz drakx-287245dab721c6049a946dffb32152fc2839c015.zip |
handle "boot" clp and "main" clp. passing argument "live" can force to not use the clp in favor of live tree.
Diffstat (limited to 'mdk-stage1/tools.c')
-rw-r--r-- | mdk-stage1/tools.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c index 89c87fbd1..aa9be8f83 100644 --- a/mdk-stage1/tools.c +++ b/mdk-stage1/tools.c @@ -94,6 +94,7 @@ void process_cmdline(void) if (!strcmp(name, "netauto")) set_param(MODE_NETAUTO); if (!strcmp(name, "recovery")) set_param(MODE_RECOVERY); if (!strcmp(name, "special_stage2")) set_param(MODE_SPECIAL_STAGE2); + if (!strcmp(name, "live")) set_param(MODE_LIVE); if (!strcmp(name, "automatic")) { set_param(MODE_AUTOMATIC); grab_automatic_params(value); @@ -180,7 +181,7 @@ void unset_param(int i) // warning, many things rely on the fact that: // - when failing it returns 0 // - it stops on first non-digit char -int charstar_to_int(char * s) +int charstar_to_int(const char * s) { int number = 0; while (*s && isdigit(*s)) { |