$(OBJECTS): busybox.def.h internal.h Makefile
-install: busybox
+install: busybox busybox.links
./install.sh $(PREFIX)
whichversion:
#ifndef DEBUG_INIT
- if (getpid() != 1) {
+ /* Expect to be PID 1 iff we are run as init (not linuxrc) */
+ if (getpid() != 1 && strstr(argv[0], "init")!=NULL ) {
usage( "init\n\nInit is the parent of all processes.\n\n"
"This version of init is designed to be run only by the kernel\n");
}
#ifndef DEBUG_INIT
- if (getpid() != 1) {
+ /* Expect to be PID 1 iff we are run as init (not linuxrc) */
+ if (getpid() != 1 && strstr(argv[0], "init")!=NULL ) {
usage( "init\n\nInit is the parent of all processes.\n\n"
"This version of init is designed to be run only by the kernel\n");
}