diff options
author | Ron Yorston <rmy@pobox.com> | 2017-02-08 20:09:29 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-02-08 20:09:29 +0000 |
commit | 373275a708bafb88fa4f0519de2166154f44fed9 (patch) | |
tree | 4587b4fd3f695e0f3705b2a217e199f3144df931 /init | |
parent | b74b2619779b1deb903b7766261807df1e9b1f7f (diff) | |
parent | c2b18583a3df06aeecf535c3cea6856aa1f2e205 (diff) | |
download | busybox-w32-373275a708bafb88fa4f0519de2166154f44fed9.tar.gz busybox-w32-373275a708bafb88fa4f0519de2166154f44fed9.tar.bz2 busybox-w32-373275a708bafb88fa4f0519de2166154f44fed9.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'init')
-rw-r--r-- | init/halt.c | 3 | ||||
-rw-r--r-- | init/init.c | 14 |
2 files changed, 8 insertions, 9 deletions
diff --git a/init/halt.c b/init/halt.c index b7fb10869..f69b89772 100644 --- a/init/halt.c +++ b/init/halt.c | |||
@@ -46,8 +46,9 @@ | |||
46 | //config: locating telinit executable. | 46 | //config: locating telinit executable. |
47 | 47 | ||
48 | //applet:IF_HALT(APPLET(halt, BB_DIR_SBIN, BB_SUID_DROP)) | 48 | //applet:IF_HALT(APPLET(halt, BB_DIR_SBIN, BB_SUID_DROP)) |
49 | // APPLET_ODDNAME:name main location suid_type help | ||
49 | //applet:IF_POWEROFF(APPLET_ODDNAME(poweroff, halt, BB_DIR_SBIN, BB_SUID_DROP, poweroff)) | 50 | //applet:IF_POWEROFF(APPLET_ODDNAME(poweroff, halt, BB_DIR_SBIN, BB_SUID_DROP, poweroff)) |
50 | //applet:IF_REBOOT(APPLET_ODDNAME(reboot, halt, BB_DIR_SBIN, BB_SUID_DROP, reboot)) | 51 | //applet:IF_REBOOT( APPLET_ODDNAME(reboot, halt, BB_DIR_SBIN, BB_SUID_DROP, reboot)) |
51 | 52 | ||
52 | //kbuild:lib-$(CONFIG_HALT) += halt.o | 53 | //kbuild:lib-$(CONFIG_HALT) += halt.o |
53 | //kbuild:lib-$(CONFIG_POWEROFF) += halt.o | 54 | //kbuild:lib-$(CONFIG_POWEROFF) += halt.o |
diff --git a/init/init.c b/init/init.c index 08cfa2f8c..833759341 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -17,7 +17,7 @@ | |||
17 | //config: init is the first program run when the system boots. | 17 | //config: init is the first program run when the system boots. |
18 | //config: | 18 | //config: |
19 | //config:config LINUXRC | 19 | //config:config LINUXRC |
20 | //config: bool "Support running init from within an initrd (not initramfs)" | 20 | //config: bool "linuxrc: support running init from initrd (not initramfs)" |
21 | //config: default y | 21 | //config: default y |
22 | //config: select FEATURE_SYSLOG | 22 | //config: select FEATURE_SYSLOG |
23 | //config: help | 23 | //config: help |
@@ -74,12 +74,10 @@ | |||
74 | //config: default y | 74 | //config: default y |
75 | //config: depends on INIT || LINUXRC | 75 | //config: depends on INIT || LINUXRC |
76 | //config: | 76 | //config: |
77 | //config:config FEATURE_EXTRA_QUIET | 77 | //config:config FEATURE_INIT_QUIET |
78 | //config: bool "Be _extra_ quiet on boot" | 78 | //config: bool "Be quiet on boot (no 'init started:' message)" |
79 | //config: default y | 79 | //config: default y |
80 | //config: depends on INIT || LINUXRC | 80 | //config: depends on INIT || LINUXRC |
81 | //config: help | ||
82 | //config: Prevent init from logging some messages to the console during boot. | ||
83 | //config: | 81 | //config: |
84 | //config:config FEATURE_INIT_COREDUMPS | 82 | //config:config FEATURE_INIT_COREDUMPS |
85 | //config: bool "Support dumping core for child processes (debugging only)" | 83 | //config: bool "Support dumping core for child processes (debugging only)" |
@@ -104,13 +102,13 @@ | |||
104 | //config: sets TERM to "vt102" if one is found. | 102 | //config: sets TERM to "vt102" if one is found. |
105 | //config: | 103 | //config: |
106 | //config:config FEATURE_INIT_MODIFY_CMDLINE | 104 | //config:config FEATURE_INIT_MODIFY_CMDLINE |
107 | //config: bool "Modify the command-line to \"init\"" | 105 | //config: bool "Clear init's command line" |
108 | //config: default y | 106 | //config: default y |
109 | //config: depends on INIT || LINUXRC | 107 | //config: depends on INIT || LINUXRC |
110 | //config: help | 108 | //config: help |
111 | //config: When launched as PID 1 and after parsing its arguments, init | 109 | //config: When launched as PID 1 and after parsing its arguments, init |
112 | //config: wipes all the arguments but argv[0] and rewrites argv[0] to | 110 | //config: wipes all the arguments but argv[0] and rewrites argv[0] to |
113 | //config: contain only "init", so that its command-line appears solely as | 111 | //config: contain only "init", so that its command line appears solely as |
114 | //config: "init" in tools such as ps. | 112 | //config: "init" in tools such as ps. |
115 | //config: If this option is set to Y, init will keep its original behavior, | 113 | //config: If this option is set to Y, init will keep its original behavior, |
116 | //config: otherwise, all the arguments including argv[0] will be preserved, | 114 | //config: otherwise, all the arguments including argv[0] will be preserved, |
@@ -1098,7 +1096,7 @@ int init_main(int argc UNUSED_PARAM, char **argv) | |||
1098 | if (argv[1]) | 1096 | if (argv[1]) |
1099 | xsetenv("RUNLEVEL", argv[1]); | 1097 | xsetenv("RUNLEVEL", argv[1]); |
1100 | 1098 | ||
1101 | #if !ENABLE_FEATURE_EXTRA_QUIET | 1099 | #if !ENABLE_FEATURE_INIT_QUIET |
1102 | /* Hello world */ | 1100 | /* Hello world */ |
1103 | message(L_CONSOLE | L_LOG, "init started: %s", bb_banner); | 1101 | message(L_CONSOLE | L_LOG, "init started: %s", bb_banner); |
1104 | #endif | 1102 | #endif |