Exemplo n.º 1
0
void format() {
	if (filesystem_format()) {
		strcpy(currentDirId, ROOT_DIR_ID);
		strcpy(currentDirPrompt, "/");
	} else {
		printf("An unexpected error occured\n");
	}
}
void startup_checking(struct rt_completion *cmp)
{
    if (filesystem_checking() == RT_FALSE)
    {
        filesystem_format();
    }

    resource_checking();

	network_checking();

    if (cmp)
        rt_completion_done(cmp);
}