summaryrefslogtreecommitdiff
path: root/userspace/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/init.c')
-rw-r--r--userspace/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/userspace/init.c b/userspace/init.c
index 6dc6215..d152581 100644
--- a/userspace/init.c
+++ b/userspace/init.c
@@ -12,7 +12,9 @@ int main(int argc, char **argv)
if(pid==0)
{
- execve("/bin/foolshell",0,0); // replace process with our foolshell :)
+ char *argv[]={"/bin/foolshell",0};
+ char *env[]={"PS1=$","PWD=/home/miguel","PATH=/bin",0};
+ execve("/bin/foolshell",argv,env); // replace process with our foolshell :)
puts("FATAL ERROR: Something terrible happened. Unable to Execute SHELL!");
while(1);// hang