aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-11-10 23:13:02 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-11-10 23:13:02 +0000
commitfe675f24f8afae61702b3e2aee9af34dd84a4d5b (patch)
tree3e448e6550da52d2709e5f52fbae56e9df9462cc /init
parent51abdb45dd5418cdf8355e5c314307771f9b8c37 (diff)
downloadbusybox-w32-fe675f24f8afae61702b3e2aee9af34dd84a4d5b.tar.gz
busybox-w32-fe675f24f8afae61702b3e2aee9af34dd84a4d5b.tar.bz2
busybox-w32-fe675f24f8afae61702b3e2aee9af34dd84a4d5b.zip
Updates to usage, and made tar work.
-Erik git-svn-id: svn://busybox.net/trunk/busybox@94 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r--init/init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c
index a354f8a75..e70d5a15d 100644
--- a/init/init.c
+++ b/init/init.c
@@ -430,6 +430,13 @@ extern int init_main(int argc, char **argv)
430#endif 430#endif
431 431
432 432
433#ifndef DEBUG_INIT
434 if (getpid() != 1) {
435 usage( "init\n\nInit is the parent of all processes.\n\n"
436 "This version of init is designed to be run only by the kernel\n");
437 }
438#endif
439
433 /* Check if we are supposed to be in single user mode */ 440 /* Check if we are supposed to be in single user mode */
434 if ( argc > 1 && (!strcmp(argv[1], "single") || 441 if ( argc > 1 && (!strcmp(argv[1], "single") ||
435 !strcmp(argv[1], "-s") || !strcmp(argv[1], "1"))) { 442 !strcmp(argv[1], "-s") || !strcmp(argv[1], "1"))) {