mirror of
https://github.com/vivier/EMILE.git
synced 2025-08-15 07:27:41 +00:00
read_line() : do not cross the the end of the configuration (0-mark), remove traces about kernel and initrd
This commit is contained in:
@@ -23,6 +23,8 @@ static char *read_line(char *s)
|
|||||||
read++;
|
read++;
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
|
if (*s == 0)
|
||||||
|
return s;
|
||||||
return s + 1;
|
return s + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -194,8 +196,6 @@ int read_config(emile_l2_header_t* info,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("kernel %s\n", *kernel_path);
|
|
||||||
printf("initrd %s\n", *ramdisk_path);
|
|
||||||
#if defined(USE_CLI) && defined(__LINUX__)
|
#if defined(USE_CLI) && defined(__LINUX__)
|
||||||
printf("command ");
|
printf("command ");
|
||||||
console_cursor_save();
|
console_cursor_save();
|
||||||
|
Reference in New Issue
Block a user