busybox: alter help message in standalone shell mode
authorRon Yorston <rmy@frippery.org>
Sat, 30 May 2015 16:13:52 +0000 (17:13 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Oct 2015 18:00:38 +0000 (19:00 +0100)
Signed-off-by: Ron Yorston <rmy@frippery.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/appletlib.c

index 58bb2f1a00c80236db3a5dd4c66437422ff364a5..95e589e74e35b4fc26f38c42f5d5f5a8e46de212 100644 (file)
@@ -641,10 +641,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 build\n"
+                       "\tis configured to run built-in utilities without $PATH search.\n"
+                       "\tYou don't need to install a link to busybox for each utility.\n"
+                       "\tTo run external program, use full path (/sbin/ip instead of ip).\n"
+                       )
                        "\n"
                        "Currently defined functions:\n"
                );