aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-11-21 21:50:07 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-11-21 21:50:07 +0000
commit538a80208ac61735e6e9242826078043253d589a (patch)
tree63f63b4cc4d1d41b6de95b4cc8fe7dfd0c7794b3
parentc669663b355e58ad4b72b282e0d91ba27b37bb5a (diff)
downloadbusybox-w32-538a80208ac61735e6e9242826078043253d589a.tar.gz
busybox-w32-538a80208ac61735e6e9242826078043253d589a.tar.bz2
busybox-w32-538a80208ac61735e6e9242826078043253d589a.zip
Stuf
git-svn-id: svn://busybox.net/trunk/busybox@112 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--Makefile2
-rw-r--r--init.c3
-rw-r--r--init/init.c3
3 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c982cc676..c715c0bd6 100644
--- a/Makefile
+++ b/Makefile
@@ -101,7 +101,7 @@ force:
101 101
102$(OBJECTS): busybox.def.h internal.h Makefile 102$(OBJECTS): busybox.def.h internal.h Makefile
103 103
104install: busybox 104install: busybox busybox.links
105 ./install.sh $(PREFIX) 105 ./install.sh $(PREFIX)
106 106
107whichversion: 107whichversion:
diff --git a/init.c b/init.c
index ce2f237c7..75a659911 100644
--- a/init.c
+++ b/init.c
@@ -447,7 +447,8 @@ extern int init_main(int argc, char **argv)
447 447
448 448
449#ifndef DEBUG_INIT 449#ifndef DEBUG_INIT
450 if (getpid() != 1) { 450 /* Expect to be PID 1 iff we are run as init (not linuxrc) */
451 if (getpid() != 1 && strstr(argv[0], "init")!=NULL ) {
451 usage( "init\n\nInit is the parent of all processes.\n\n" 452 usage( "init\n\nInit is the parent of all processes.\n\n"
452 "This version of init is designed to be run only by the kernel\n"); 453 "This version of init is designed to be run only by the kernel\n");
453 } 454 }
diff --git a/init/init.c b/init/init.c
index ce2f237c7..75a659911 100644
--- a/init/init.c
+++ b/init/init.c
@@ -447,7 +447,8 @@ extern int init_main(int argc, char **argv)
447 447
448 448
449#ifndef DEBUG_INIT 449#ifndef DEBUG_INIT
450 if (getpid() != 1) { 450 /* Expect to be PID 1 iff we are run as init (not linuxrc) */
451 if (getpid() != 1 && strstr(argv[0], "init")!=NULL ) {
451 usage( "init\n\nInit is the parent of all processes.\n\n" 452 usage( "init\n\nInit is the parent of all processes.\n\n"
452 "This version of init is designed to be run only by the kernel\n"); 453 "This version of init is designed to be run only by the kernel\n");
453 } 454 }