projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add usage messages for applets without them.
[oweals/busybox.git]
/
reboot.c
diff --git
a/reboot.c
b/reboot.c
index bde8dbd7750d7dc1511f80c9f1ed141e94a81fce..bef9b26f04dc2b83f92bbbb6915c5f4e3843fbcc 100644
(file)
--- a/
reboot.c
+++ b/
reboot.c
@@
-26,6
+26,9
@@
extern int reboot_main(int argc, char **argv)
{
+ if (argc > 1 && strcmp(argv[1], "--help") == 0)
+ usage(reboot_usage);
+
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
return(kill(*(findPidByName("init")), SIGINT));