Changes in uspace/app/init/init.c [dc2d582:73d8600] in mainline


Ignore:
File:
1 edited

Legend:

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

    rdc2d582 r73d8600  
    4949#include <loc.h>
    5050#include <str_error.h>
     51#include <config.h>
    5152#include "init.h"
    5253
     
    126127                opts = "restore";
    127128       
    128         int rc = mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts,
     129        int rc = vfs_mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts,
    129130            IPC_FLAG_BLOCKING, 0);
    130131        return mount_report("Root filesystem", ROOT_MOUNT_POINT, fstype,
     
    143144static bool mount_locfs(void)
    144145{
    145         int rc = mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "",
     146        int rc = vfs_mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "",
    146147            IPC_FLAG_BLOCKING, 0);
    147148        return mount_report("Location service filesystem", LOCFS_MOUNT_POINT,
     
    152153{
    153154        struct stat s;
    154         if (stat(path, &s) == ENOENT) {
     155        if (stat(path, &s) != 0) {
    155156                printf("%s: Unable to stat %s\n", NAME, path);
    156157                return ENOENT;
     
    299300static bool mount_tmpfs(void)
    300301{
    301         int rc = mount(TMPFS_FS_TYPE, TMPFS_MOUNT_POINT, "", "", 0, 0);
     302        int rc = vfs_mount(TMPFS_FS_TYPE, TMPFS_MOUNT_POINT, "", "", 0, 0);
    302303        return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT,
    303304            TMPFS_FS_TYPE, NULL, rc);
     
    306307int main(int argc, char *argv[])
    307308{
     309        int rc;
     310
    308311        info_print();
    309312       
     
    356359        srv_start("/srv/hound");
    357360       
    358         int rc = compositor(HID_INPUT, HID_COMPOSITOR_SERVER);
    359         if (rc == EOK) {
    360                 gui_start("/app/barber", HID_COMPOSITOR_SERVER);
    361                 gui_start("/app/vlaunch", HID_COMPOSITOR_SERVER);
    362                 gui_start("/app/vterm", HID_COMPOSITOR_SERVER);
     361        if (!config_key_exists("console")) {
     362                rc = compositor(HID_INPUT, HID_COMPOSITOR_SERVER);
     363                if (rc == EOK) {
     364                        gui_start("/app/barber", HID_COMPOSITOR_SERVER);
     365                        gui_start("/app/vlaunch", HID_COMPOSITOR_SERVER);
     366                        gui_start("/app/vterm", HID_COMPOSITOR_SERVER);
     367                }
    363368        }
    364369       
Note: See TracChangeset for help on using the changeset viewer.