- 论坛徽章:
- 0
|
$
continue;
}
if (!strcmp(line,“rw“)) {
root_mountflags &= ~MS_RDONLY;
continue;
}
if (!strcmp(line,“debug“)) {
console_loglevel = 10;
continue;
}
if (!strcmp(line,“quiet“)) {
console_loglevel = 4;
continue;
}
if (!strncmp(line,“init=“,5)) {
line += 5;
execute_command = line;
args = 0;
continue;
}
if (checksetup(line))
continue;
if (strchr(line,‘=‘)) {
if (envs >= MAX_INIT_ENVS)
break;
envp_init[++envs] = line;
} else {
if (args >= MAX_INIT_ARGS)
break;
argv_init[++args] = line;
}
}
argv_init[args+1] = NULL;
envp_init[envs+1] = NULL;
}
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38254/showart_448549.html |
|