diff options
author | Ron Yorston <rmy@pobox.com> | 2012-03-22 15:41:00 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-03-22 15:41:00 +0000 |
commit | 1118c95535ea51961437089fc3dece5ab4ea7e1b (patch) | |
tree | 1515bd2376a6d6c5123791662307ce2ed90cdf36 /init | |
parent | 0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2 (diff) | |
parent | 066f39956641300c1e5c6bfe6c11a115cea3e2cf (diff) | |
download | busybox-w32-1118c95535ea51961437089fc3dece5ab4ea7e1b.tar.gz busybox-w32-1118c95535ea51961437089fc3dece5ab4ea7e1b.tar.bz2 busybox-w32-1118c95535ea51961437089fc3dece5ab4ea7e1b.zip |
Merge commit '066f39956641300c1e5c6bfe6c11a115cea3e2cf' into merge
Conflicts:
procps/ps.c
Diffstat (limited to 'init')
-rw-r--r-- | init/bootchartd.c | 1 | ||||
-rw-r--r-- | init/halt.c | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/init/bootchartd.c b/init/bootchartd.c index 009e2690c..5f6121fa4 100644 --- a/init/bootchartd.c +++ b/init/bootchartd.c | |||
@@ -327,7 +327,6 @@ static void finalize(char *tempdir, const char *prog) | |||
327 | //usage: "start [PROG ARGS]|stop|init" | 327 | //usage: "start [PROG ARGS]|stop|init" |
328 | //usage:#define bootchartd_full_usage "\n\n" | 328 | //usage:#define bootchartd_full_usage "\n\n" |
329 | //usage: "Create /var/log/bootchart.tgz with boot chart data\n" | 329 | //usage: "Create /var/log/bootchart.tgz with boot chart data\n" |
330 | //usage: "\nOptions:" | ||
331 | //usage: "\nstart: start background logging; with PROG, run PROG, then kill logging with USR1" | 330 | //usage: "\nstart: start background logging; with PROG, run PROG, then kill logging with USR1" |
332 | //usage: "\nstop: send USR1 to all bootchartd processes" | 331 | //usage: "\nstop: send USR1 to all bootchartd processes" |
333 | //usage: "\ninit: start background logging; stop when getty/xdm is seen (for init scripts)" | 332 | //usage: "\ninit: start background logging; stop when getty/xdm is seen (for init scripts)" |
diff --git a/init/halt.c b/init/halt.c index a84a72747..1aac0faf9 100644 --- a/init/halt.c +++ b/init/halt.c | |||
@@ -43,7 +43,6 @@ | |||
43 | //usage: "[-d DELAY] [-n] [-f]" IF_FEATURE_WTMP(" [-w]") | 43 | //usage: "[-d DELAY] [-n] [-f]" IF_FEATURE_WTMP(" [-w]") |
44 | //usage:#define halt_full_usage "\n\n" | 44 | //usage:#define halt_full_usage "\n\n" |
45 | //usage: "Halt the system\n" | 45 | //usage: "Halt the system\n" |
46 | //usage: "\nOptions:" | ||
47 | //usage: "\n -d SEC Delay interval" | 46 | //usage: "\n -d SEC Delay interval" |
48 | //usage: "\n -n Do not sync" | 47 | //usage: "\n -n Do not sync" |
49 | //usage: "\n -f Force (don't go through init)" | 48 | //usage: "\n -f Force (don't go through init)" |
@@ -55,7 +54,6 @@ | |||
55 | //usage: "[-d DELAY] [-n] [-f]" | 54 | //usage: "[-d DELAY] [-n] [-f]" |
56 | //usage:#define poweroff_full_usage "\n\n" | 55 | //usage:#define poweroff_full_usage "\n\n" |
57 | //usage: "Halt and shut off power\n" | 56 | //usage: "Halt and shut off power\n" |
58 | //usage: "\nOptions:" | ||
59 | //usage: "\n -d SEC Delay interval" | 57 | //usage: "\n -d SEC Delay interval" |
60 | //usage: "\n -n Do not sync" | 58 | //usage: "\n -n Do not sync" |
61 | //usage: "\n -f Force (don't go through init)" | 59 | //usage: "\n -f Force (don't go through init)" |
@@ -64,7 +62,6 @@ | |||
64 | //usage: "[-d DELAY] [-n] [-f]" | 62 | //usage: "[-d DELAY] [-n] [-f]" |
65 | //usage:#define reboot_full_usage "\n\n" | 63 | //usage:#define reboot_full_usage "\n\n" |
66 | //usage: "Reboot the system\n" | 64 | //usage: "Reboot the system\n" |
67 | //usage: "\nOptions:" | ||
68 | //usage: "\n -d SEC Delay interval" | 65 | //usage: "\n -d SEC Delay interval" |
69 | //usage: "\n -n Do not sync" | 66 | //usage: "\n -n Do not sync" |
70 | //usage: "\n -f Force (don't go through init)" | 67 | //usage: "\n -f Force (don't go through init)" |
@@ -157,11 +154,13 @@ int halt_main(int argc UNUSED_PARAM, char **argv) | |||
157 | /* runlevels: | 154 | /* runlevels: |
158 | * 0 == shutdown | 155 | * 0 == shutdown |
159 | * 6 == reboot */ | 156 | * 6 == reboot */ |
160 | rc = execlp(CONFIG_TELINIT_PATH, | 157 | execlp(CONFIG_TELINIT_PATH, |
161 | CONFIG_TELINIT_PATH, | 158 | CONFIG_TELINIT_PATH, |
162 | which == 2 ? "6" : "0", | 159 | which == 2 ? "6" : "0", |
163 | (char *)NULL | 160 | (char *)NULL |
164 | ); | 161 | ); |
162 | perror_msg_and_die("can't execute '%s'", | ||
163 | CONFIG_TELINIT_PATH); | ||
165 | } | 164 | } |
166 | } | 165 | } |
167 | } else { | 166 | } else { |