[PATCH] busybox: alter help message in standalone shell mode
Ron Yorston
rmy at frippery.org
Sat May 30 16:13:52 UTC 2015
Signed-off-by: Ron Yorston <rmy at pobox.com>
---
libbb/appletlib.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 46849e4..2fd3adc 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -642,10 +642,19 @@ static int busybox_main(char **argv)
)
" or: function [arguments]...\n"
"\n"
+ IF_NOT_FEATURE_SH_STANDALONE(
"\tBusyBox is a multi-call binary that combines many common Unix\n"
"\tutilities into a single executable. Most people will create a\n"
"\tlink to busybox for each function they wish to use and BusyBox\n"
"\twill act like whatever it was invoked as.\n"
+ )
+ IF_FEATURE_SH_STANDALONE(
+ "\tBusyBox is a multi-call binary that combines many common Unix\n"
+ "\tutilities into a single executable. The shell in this version\n"
+ "\thas been configured to prefer built-in utilities to external\n"
+ "\tbinaries. This avoids having to install a link to busybox for\n"
+ "\teach function to be invoked.\n"
+ )
"\n"
"Currently defined functions:\n"
);
--
2.1.0
More information about the busybox
mailing list