aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/busybox.c6
-rw-r--r--applets/usage.c12
2 files changed, 17 insertions, 1 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 0c291d0c5..5b19e8a16 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -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) {
diff --git a/applets/usage.c b/applets/usage.c
index 1031f24bc..3f367f9b1 100644
--- a/applets/usage.c
+++ b/applets/usage.c
@@ -859,6 +859,18 @@ const char reboot_usage[] =
859 ; 859 ;
860#endif 860#endif
861 861
862
863#if defined BB_RENICE
864const char renice_usage[] =
865 "renice priority pid [pid ...]\n"
866#ifndef BB_FEATURE_TRIVIAL_HELP
867 "\nChanges priority of running processes. Allowed priorities range\n"
868 "from 20 (the process runs only when nothing else is running) to 0\n"
869 "(default priority) to -20 (almost nothing else ever gets to run).\n"
870#endif
871 ;
872#endif
873
862#if defined BB_RM 874#if defined BB_RM
863const char rm_usage[] = 875const char rm_usage[] =
864 "rm [OPTION]... FILE...\n" 876 "rm [OPTION]... FILE...\n"