diff options
| author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-28 20:37:03 +0000 |
|---|---|---|
| committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-28 20:37:03 +0000 |
| commit | fb00143be3e4021275e60310de7e8a1b400c74f3 (patch) | |
| tree | b0a5ae0270677ce2bbe0a62dbd514b3245fb88da /include | |
| parent | 21b67bbc363290274e103fd5774ac02de2dba3eb (diff) | |
| download | busybox-w32-fb00143be3e4021275e60310de7e8a1b400c74f3.tar.gz busybox-w32-fb00143be3e4021275e60310de7e8a1b400c74f3.tar.bz2 busybox-w32-fb00143be3e4021275e60310de7e8a1b400c74f3.zip | |
- add BB_APPLET_RUNLEVEL used by emdebian via /etc/init.d/rc.
Note that we leave the buggy CONFIG_* namespace now, so please fix any applet you thouch.
git-svn-id: svn://busybox.net/trunk/busybox@11965 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
| -rw-r--r-- | include/applets.h | 3 | ||||
| -rw-r--r-- | include/usage.h | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 2b2c45d67..ec3a892d0 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -565,6 +565,9 @@ | |||
| 565 | #ifdef CONFIG_RUN_PARTS | 565 | #ifdef CONFIG_RUN_PARTS |
| 566 | APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, _BB_SUID_NEVER, run_parts) | 566 | APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, _BB_SUID_NEVER, run_parts) |
| 567 | #endif | 567 | #endif |
| 568 | #if BB_APPLET_RUNLEVEL | ||
| 569 | APPLET(runlevel, runlevel_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
| 570 | #endif | ||
| 568 | #ifdef CONFIG_RX | 571 | #ifdef CONFIG_RX |
| 569 | APPLET(rx, rx_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 572 | APPLET(rx, rx_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) |
| 570 | #endif | 573 | #endif |
diff --git a/include/usage.h b/include/usage.h index 79a61d20a..a82230e41 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -2450,6 +2450,18 @@ | |||
| 2450 | "\t-a ARG\tPass ARG as an argument for every program invoked\n" \ | 2450 | "\t-a ARG\tPass ARG as an argument for every program invoked\n" \ |
| 2451 | "\t-u MASK\tSet the umask to MASK before executing every program" | 2451 | "\t-u MASK\tSet the umask to MASK before executing every program" |
| 2452 | 2452 | ||
| 2453 | #if BB_APPLET_RUNLEVEL | ||
| 2454 | #define runlevel_trivial_usage \ | ||
| 2455 | "[utmp]" | ||
| 2456 | #define runlevel_full_usage \ | ||
| 2457 | "Find the current and previous system runlevel.\n\n" \ | ||
| 2458 | "If no utmp file exists or if no runlevel record can be found,\n" \ | ||
| 2459 | "runlevel prints \"unknown\"" | ||
| 2460 | #define runlevel_example_usage \ | ||
| 2461 | "$ runlevel /var/run/utmp\n" \ | ||
| 2462 | "N 2" | ||
| 2463 | #endif | ||
| 2464 | |||
| 2453 | #define rx_trivial_usage \ | 2465 | #define rx_trivial_usage \ |
| 2454 | "FILE" | 2466 | "FILE" |
| 2455 | #define rx_full_usage \ | 2467 | #define rx_full_usage \ |
