From 2acfe7e10cff427998049d58df11830b4bbe1c9e Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 5 Dec 2014 01:10:42 +0100 Subject: plauing around --- userspace/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'userspace') diff --git a/userspace/init.c b/userspace/init.c index d152581..f588875 100644 --- a/userspace/init.c +++ b/userspace/init.c @@ -1,7 +1,7 @@ int main(int argc, char **argv) { - printf("fool-init: spawning a Fool's Shell\n"); + //printf("fool-init: spawning a Fool's Shell\n"); // loop forever and spawn shells if the top-shell exits while(1) @@ -13,7 +13,7 @@ int main(int argc, char **argv) if(pid==0) { char *argv[]={"/bin/foolshell",0}; - char *env[]={"PS1=$","PWD=/home/miguel","PATH=/bin",0}; + char *env[]={"PS1=$","PWD=/home/miguel","PATH=/bin","TERM=xterm",0}; execve("/bin/foolshell",argv,env); // replace process with our foolshell :) puts("FATAL ERROR: Something terrible happened. Unable to Execute SHELL!"); while(1);// hang -- cgit v1.2.3