summaryrefslogtreecommitdiff
path: root/userspace/init.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-05 12:20:16 +0200
committerMiguel <m.i@gmx.at>2018-10-05 12:20:16 +0200
commit7e56d9ac1e6888faed2109e2eefe124650aa4a72 (patch)
tree7f0a2ff6decb1ad46029ba18f5fc39d214d9186a /userspace/init.c
parent81a8252db679351f5ba388b420519724c9c2c2be (diff)
userspace vesa terminal
Diffstat (limited to 'userspace/init.c')
-rw-r--r--userspace/init.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/userspace/init.c b/userspace/init.c
index 7237fdc..0e0fd66 100644
--- a/userspace/init.c
+++ b/userspace/init.c
@@ -7,11 +7,21 @@ int main(int argc, char **argv)
// loop forever and spawn shells if the top-shell exits
+ _execve("/bin/vesa",NULL,NULL);
+
int pid=_fork();
if(pid==0)
{
- _execve("/bin/pain1",NULL,NULL);
+ int pid=_fork();
+ if(pid==0)
+ {
+ _execve("/bin/pain1",NULL,NULL);
+ }
+ else
+ {
+ _execve("/bin/vesa",NULL,NULL);
+ }
}
else
{