Changeset 00fe6bb in mainline for uspace/app/init/init.c


Ignore:
Timestamp:
2009-06-27T09:41:55Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6408be3
Parents:
1fbe064b
Message:

Automatically try to mount FAT from disk0 on /data upon boot. Save Tetris score there. Automatically create disk image in sample config files, if it does not already exist. This tentatively reaches the Milanstone (t.m.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    r1fbe064b r00fe6bb  
    151151}
    152152
     153void 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
    153167int main(int argc, char *argv[])
    154168{
     
    172186        spawn("/srv/fhc");
    173187        spawn("/srv/obio");
    174        
     188        spawn("/srv/ata_bd");
     189        spawn("/srv/gxe_bd");
     190
     191        usleep(250000);
     192        mount_data();   
     193
    175194        getvc("vc0", "/app/bdsh");
    176195        getvc("vc1", "/app/bdsh");
Note: See TracChangeset for help on using the changeset viewer.