Changes in uspace/app/init/init.c [a63d216:31e9fe0] in mainline


Ignore:
File:
1 edited

Legend:

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

    ra63d216 r31e9fe0  
    5959#define TMPFS_FS_TYPE      "tmpfs"
    6060#define TMPFS_MOUNT_POINT  "/tmp"
     61
     62#define DATA_FS_TYPE      "fat"
     63#define DATA_DEVICE       "bd/ata1disk0"
     64#define DATA_MOUNT_POINT  "/data"
    6165
    6266#define SRV_CONSOLE  "/srv/console"
     
    312316}
    313317
     318static bool mount_data(void)
     319{
     320        int rc = mount(DATA_FS_TYPE, DATA_MOUNT_POINT, DATA_DEVICE, "wtcache", 0, 0);
     321        return mount_report("Data filesystem", DATA_MOUNT_POINT, DATA_FS_TYPE,
     322            DATA_DEVICE, rc);
     323}
     324
    314325int main(int argc, char *argv[])
    315326{
     
    325336                srv_start("/srv/tmpfs");
    326337       
    327         srv_start("/srv/klog");
    328338        srv_start("/srv/locfs");
    329339        srv_start("/srv/taskmon");
     
    350360        srv_start("/srv/udp");
    351361        srv_start("/srv/dnsrsrv");
    352         srv_start("/srv/dhcp");
    353         srv_start("/srv/nconfsrv");
    354362       
    355363        srv_start("/srv/clipboard");
    356364        srv_start("/srv/remcons");
    357365       
     366        /*
     367         * Start these synchronously so that mount_data() can be
     368         * non-blocking.
     369         */
     370#ifdef CONFIG_START_BD
     371        srv_start("/srv/ata_bd");
     372#endif
     373       
     374#ifdef CONFIG_MOUNT_DATA
     375        /* Make sure fat is running. */
     376        if (str_cmp(STRING(RDFMT), "fat") != 0)
     377                srv_start("/srv/fat");
     378       
     379        mount_data();
     380#else
     381        (void) mount_data;
     382#endif
     383       
    358384        srv_start("/srv/input", HID_INPUT);
    359385        srv_start("/srv/output", HID_OUTPUT);
    360         srv_start("/srv/hound");
    361386       
    362387        int rc = compositor(HID_INPUT, HID_COMPOSITOR_SERVER);
Note: See TracChangeset for help on using the changeset viewer.