init_main.c (0bbc882680ceece07eb134ddeb7fceffb59ea018) init_main.c (af1408e33f6f7a5a5fc49bd4a67cb8368c2d1ede)
1/*
2 * Copyright (c) 1995 Terrence R. Lambert
3 * All rights reserved.
4 *
5 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 * (c) UNIX System Laboratories, Inc.
8 * All or some portions of this file are derived from material licensed

--- 444 unchanged lines hidden (view full) ---

453 * List of paths to try when searching for "init".
454 */
455static char init_path[MAXPATHLEN] =
456#ifdef INIT_PATH
457 __XSTRING(INIT_PATH);
458#else
459 "/sbin/init:/sbin/oinit:/sbin/init.bak:/stand/sysinstall";
460#endif
1/*
2 * Copyright (c) 1995 Terrence R. Lambert
3 * All rights reserved.
4 *
5 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 * (c) UNIX System Laboratories, Inc.
8 * All or some portions of this file are derived from material licensed

--- 444 unchanged lines hidden (view full) ---

453 * List of paths to try when searching for "init".
454 */
455static char init_path[MAXPATHLEN] =
456#ifdef INIT_PATH
457 __XSTRING(INIT_PATH);
458#else
459 "/sbin/init:/sbin/oinit:/sbin/init.bak:/stand/sysinstall";
460#endif
461SYSCTL_STRING(_kern, OID_AUTO, init_path, CTLFLAG_RD, init_path, 0, "");
461SYSCTL_STRING(_kern, OID_AUTO, init_path, CTLFLAG_RD, init_path, 0,
462 "Path used to search the init process");
462
463/*
464 * Start the initial user process; try exec'ing each pathname in init_path.
465 * The program is invoked with one argument containing the boot flags.
466 */
467static void
468start_init(void *dummy)
469{

--- 179 unchanged lines hidden ---
463
464/*
465 * Start the initial user process; try exec'ing each pathname in init_path.
466 * The program is invoked with one argument containing the boot flags.
467 */
468static void
469start_init(void *dummy)
470{

--- 179 unchanged lines hidden ---