Subversion Repositories HelenOS

Rev

Rev 3346 | Rev 3410 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3346 Rev 3349
Line 96... Line 96...
96
 
96
 
97
int main(int argc, char *argv[])
97
int main(int argc, char *argv[])
98
{
98
{
99
    info_print();
99
    info_print();
100
    sleep(5);   // FIXME
100
    sleep(5);   // FIXME
101
    bool has_tmpfs = false;
-
 
102
    bool has_fat = false;
-
 
103
   
101
   
104
    if (!(has_tmpfs = mount_fs("tmpfs")) && !(has_fat = mount_fs("fat"))) {
102
    if (!mount_fs("tmpfs") && !mount_fs("fat")) {
105
        printf(NAME ": Exiting\n");
103
        printf(NAME ": Exiting\n");
106
        return -1;
104
        return -1;
107
    }
105
    }
108
   
106
   
109
    // FIXME: spawn("/sbin/pci");
107
    // FIXME: spawn("/sbin/pci");
Line 112... Line 110...
112
    spawn("/sbin/console");
110
    spawn("/sbin/console");
113
   
111
   
114
    console_wait();
112
    console_wait();
115
    version_print();
113
    version_print();
116
   
114
   
117
    /*
-
 
118
     * Spawn file system servers that were not loaded as init tasks.
-
 
119
     */
-
 
120
    if (!has_fat)
-
 
121
        spawn("/sbin/fat");
-
 
122
    if (!has_tmpfs)
-
 
123
        spawn("/sbin/tmpfs");
-
 
124
       
-
 
125
    spawn("/sbin/tetris");
-
 
126
    spawn("/sbin/cli");
-
 
127
    // FIXME: spawn("/sbin/tester");
-
 
128
    spawn("/sbin/klog");
-
 
129
    spawn("/sbin/bdsh");
115
    spawn("/sbin/bdsh");
130
   
116
   
131
    return 0;
117
    return 0;
132
}
118
}
133
 
119