diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-07-21 21:32:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-07-21 21:32:12 +0000 |
commit | bf960f58e2fc56402cc5c3c090d90b706a4de5f2 (patch) | |
tree | ad4f94b99f7e82e9e4a1245c271ef4962b16e764 /busybox.c | |
parent | 7df345e1494e61ad94dd03f9a48f8e5b52a21d2b (diff) | |
download | busybox-w32-bf960f58e2fc56402cc5c3c090d90b706a4de5f2.tar.gz busybox-w32-bf960f58e2fc56402cc5c3c090d90b706a4de5f2.tar.bz2 busybox-w32-bf960f58e2fc56402cc5c3c090d90b706a4de5f2.zip |
Added 'renice' command, thanks to Dave Cinege <dcinege@psychosis.com>
-Erik
Diffstat (limited to 'busybox.c')
-rw-r--r-- | busybox.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -250,6 +250,9 @@ const struct BB_applet applets[] = { | |||
250 | #ifdef BB_REBOOT | 250 | #ifdef BB_REBOOT |
251 | {"reboot", reboot_main, _BB_DIR_SBIN, reboot_usage}, | 251 | {"reboot", reboot_main, _BB_DIR_SBIN, reboot_usage}, |
252 | #endif | 252 | #endif |
253 | #ifdef BB_RENICE | ||
254 | {"renice", renice_main, _BB_DIR_USR_BIN}, | ||
255 | #endif | ||
253 | #ifdef BB_RM | 256 | #ifdef BB_RM |
254 | {"rm", rm_main, _BB_DIR_BIN, rm_usage}, | 257 | {"rm", rm_main, _BB_DIR_BIN, rm_usage}, |
255 | #endif | 258 | #endif |
@@ -484,8 +487,9 @@ int main(int argc, char **argv) | |||
484 | #ifdef BB_SH | 487 | #ifdef BB_SH |
485 | /* Add in a special case hack -- whenever **argv == '-' | 488 | /* Add in a special case hack -- whenever **argv == '-' |
486 | * (i.e. '-su' or '-sh') always invoke the shell */ | 489 | * (i.e. '-su' or '-sh') always invoke the shell */ |
487 | if (**argv == '-') | 490 | if (**argv == '-' && *(*argv+1)!= '-') { |
488 | exit(((*(shell_main)) (argc, argv))); | 491 | exit(((*(shell_main)) (argc, argv))); |
492 | } | ||
489 | #endif | 493 | #endif |
490 | 494 | ||
491 | while (a->name != 0) { | 495 | while (a->name != 0) { |