diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-12-05 01:10:42 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-12-05 01:10:42 +0100 |
| commit | 2acfe7e10cff427998049d58df11830b4bbe1c9e (patch) | |
| tree | 0f8d346476b5fac4d4ade2e2dde0246c276b0d47 /userspace/init.c | |
| parent | 233289b9abfa3ca8e96f8f89dbb87f9040858afc (diff) | |
plauing around
Diffstat (limited to 'userspace/init.c')
| -rw-r--r-- | userspace/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
