diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-12 00:37:26 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-16 22:57:45 +0100 |
| commit | 2ce58c995946f85666e793c4f06efff683e76ae4 (patch) | |
| tree | fbf2658bb0b0f61dadcf4ca27f997eaded78aae5 /programs/initd | |
| parent | 5ce25ae3b5d8666d373f7d7e336546ce8508c213 (diff) | |
fixesHEADhelloworldmaster
Diffstat (limited to 'programs/initd')
| -rw-r--r-- | programs/initd/initd.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/programs/initd/initd.c b/programs/initd/initd.c index 5e200b3..3ca3f6e 100644 --- a/programs/initd/initd.c +++ b/programs/initd/initd.c @@ -16,9 +16,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -#if 1 #include <sys/mount.h> -#endif #include <sys/stat.h> #include <errno.h> #include <stddef.h> @@ -27,17 +25,14 @@ int main(int argc, char *argv[]) { + puts("Starting second-stage bootloader from WebAssembly!"); + #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)) + if (mkdir("/home", 0755) + || mkdir("/home/wnix", 0755) + || mount("/dev/mc0", "/home/wnix", "ps1mcfs", 0, NULL)) return errno; #endif - return 1; + return EXIT_SUCCESS; } |
