Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3243 → Rev 3222

/trunk/uspace/app/init/init.c
51,12 → 51,12
usleep(50000); // FIXME
}
 
static bool mount_fs(const char *fstype)
static bool mount_tmpfs(void)
{
int rc = -1;
while (rc < 0) {
rc = mount(fstype, "/", "initrd");
rc = mount("tmpfs", "/", "initrd");
switch (rc) {
case EOK:
95,10 → 95,8
{
info_print();
sleep(5); // FIXME
bool has_tmpfs = false;
bool has_fat = false;
if (!(has_tmpfs = mount_fs("tmpfs")) && !(has_fat = mount_fs("fat"))) {
if (!mount_tmpfs()) {
printf(NAME ": Exiting\n");
return -1;
}
111,14 → 109,7
console_wait();
version_print();
/*
* Spawn file system servers that were not loaded as init tasks.
*/
if (!has_fat)
spawn("/sbin/fat");
if (!has_tmpfs)
spawn("/sbin/tmpfs");
spawn("/sbin/fat");
spawn("/sbin/tetris");
spawn("/sbin/cli");
// FIXME: spawn("/sbin/tester");