summaryrefslogtreecommitdiff
path: root/busybox.c
diff options
context:
space:
mode:
authorEric Andersen2000-07-21 21:32:12 +0000
committerEric Andersen2000-07-21 21:32:12 +0000
commitbf960f58e2fc56402cc5c3c090d90b706a4de5f2 (patch)
treead4f94b99f7e82e9e4a1245c271ef4962b16e764 /busybox.c
parent7df345e1494e61ad94dd03f9a48f8e5b52a21d2b (diff)
downloadbusybox-bf960f58e2fc56402cc5c3c090d90b706a4de5f2.zip
busybox-bf960f58e2fc56402cc5c3c090d90b706a4de5f2.tar.gz
Added 'renice' command, thanks to Dave Cinege <dcinege@psychosis.com>
-Erik
Diffstat (limited to 'busybox.c')
-rw-r--r--busybox.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/busybox.c b/busybox.c
index 0c291d0..5b19e8a 100644
--- a/busybox.c
+++ b/busybox.c
@@ -250,6 +250,9 @@ const struct BB_applet applets[] = {
#ifdef BB_REBOOT
{"reboot", reboot_main, _BB_DIR_SBIN, reboot_usage},
#endif
+#ifdef BB_RENICE
+ {"renice", renice_main, _BB_DIR_USR_BIN},
+#endif
#ifdef BB_RM
{"rm", rm_main, _BB_DIR_BIN, rm_usage},
#endif
@@ -484,8 +487,9 @@ int main(int argc, char **argv)
#ifdef BB_SH
/* Add in a special case hack -- whenever **argv == '-'
* (i.e. '-su' or '-sh') always invoke the shell */
- if (**argv == '-')
+ if (**argv == '-' && *(*argv+1)!= '-') {
exit(((*(shell_main)) (argc, argv)));
+ }
#endif
while (a->name != 0) {