Subversion Repositories HelenOS

Rev

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

Rev 4549 Rev 4573
Line 148... Line 148...
148
    } else {
148
    } else {
149
        printf(NAME ": Error waiting on %s\n", vc);
149
        printf(NAME ": Error waiting on %s\n", vc);
150
    }
150
    }
151
}
151
}
152
 
152
 
-
 
153
void mount_data(void)
-
 
154
{
-
 
155
    int rc;
-
 
156
 
-
 
157
    printf("Trying to mount disk0 on /data... ");
-
 
158
    fflush(stdout);
-
 
159
 
-
 
160
    rc = mount("fat", "/data", "disk0", "wtcache", 0);
-
 
161
    if (rc == EOK)
-
 
162
        printf("OK\n");
-
 
163
    else
-
 
164
        printf("Failed\n");
-
 
165
}
-
 
166
 
153
int main(int argc, char *argv[])
167
int main(int argc, char *argv[])
154
{
168
{
155
    info_print();
169
    info_print();
156
   
170
   
157
    if (!mount_root(STRING(RDFMT))) {
171
    if (!mount_root(STRING(RDFMT))) {
Line 169... Line 183...
169
    spawn("/srv/fb");
183
    spawn("/srv/fb");
170
    spawn("/srv/kbd");
184
    spawn("/srv/kbd");
171
    spawn("/srv/console");
185
    spawn("/srv/console");
172
    spawn("/srv/fhc");
186
    spawn("/srv/fhc");
173
    spawn("/srv/obio");
187
    spawn("/srv/obio");
-
 
188
    spawn("/srv/ata_bd");
-
 
189
    spawn("/srv/gxe_bd");
174
   
190
 
-
 
191
    usleep(250000);
-
 
192
    mount_data();  
-
 
193
 
175
    getvc("vc0", "/app/bdsh");
194
    getvc("vc0", "/app/bdsh");
176
    getvc("vc1", "/app/bdsh");
195
    getvc("vc1", "/app/bdsh");
177
    getvc("vc2", "/app/bdsh");
196
    getvc("vc2", "/app/bdsh");
178
    getvc("vc3", "/app/bdsh");
197
    getvc("vc3", "/app/bdsh");
179
    getvc("vc4", "/app/bdsh");
198
    getvc("vc4", "/app/bdsh");