From f7ad4d9216b488f76ed4b3c8e423cd926e134b9d Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 11 Nov 2025 00:05:00 +0100 Subject: WIP --- programs/initd/initd.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'programs/initd') diff --git a/programs/initd/initd.c b/programs/initd/initd.c index 67ac4d4..5e200b3 100644 --- a/programs/initd/initd.c +++ b/programs/initd/initd.c @@ -16,15 +16,28 @@ * along with this program. If not, see . */ +#if 1 #include +#endif +#include #include #include +#include #include int main(int argc, char *argv[]) { - if (mount("/dev/mc0", "/home", "ps1mcfs", 0, NULL)) +#if 0 + puts("hi from wasm!"); +#endif +#if 1 + if (mkdir("/home", 0755)) return errno; +#endif +#if 1 + if (mount("/dev/mc0", "/home", NULL, 0, NULL)) + return errno; +#endif return 1; } -- cgit v1.2.3