diff options
Diffstat (limited to 'src/user/init')
-rw-r--r-- | src/user/init/Makefile | 6 | ||||
-rw-r--r-- | src/user/init/main.c | 24 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/user/init/Makefile b/src/user/init/Makefile deleted file mode 100644 index 286de06..0000000 --- a/src/user/init/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -Obj = main.o -Out = init.elf - -include $(SrcPath)/user/app_common.make - -LDFLAGS += -Map test.map diff --git a/src/user/init/main.c b/src/user/init/main.c deleted file mode 100644 index 7300efe..0000000 --- a/src/user/init/main.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <tce/syscall.h> -#include <stdlib.h> -#include <stdio.h> - -int main(char** args) { - int i; - - FILE home_term = open("/.ui/home", 0); - if (home_term < 0) return -1; - - print("(init) Trivial/Computing Environment says hello. Press super to go home.\n"); - - for (i = 0; args[i] != 0; i++) { - if (i == 0) continue; - printf("(init) Spawning %s...\n", args[i]); - int pid = run(args[i], 0, home_term); - if (pid < 0) { - print("(init) Error. Sorry.\n"); - } else { - waitpid(pid, 1); - } - } - print("(init) Goodbye.\n"); -} |