Stuf
[oweals/busybox.git] / applets / busybox.c
index 29a112b12f088933100ad8a8fd4c2920d669de15..af81ad8a2996b15dd8a291a7ab352dedf9f6cd2c 100644 (file)
@@ -72,6 +72,9 @@ static const struct Applet applets[] = {
 #ifdef BB_INIT                 //sbin
     {"init", init_main},
 #endif
+#ifdef BB_FEATURE_LINUXRC      //
+    {"linuxrc", init_main},
+#endif
 #ifdef BB_KILL                 //bin
     {"kill", kill_main},
 #endif
@@ -148,15 +151,21 @@ static const struct Applet applets[] = {
 #ifdef BB_SLEEP                        //bin
     {"sleep", sleep_main},
 #endif
-#ifdef BB_TAR                  //bin
-    {"tar", tar_main},
+#ifdef BB_SYNC                 //bin
+    {"sync", sync_main},
+#endif
+#ifdef BB_SYSLOGD              //sbin
+    {"syslogd", syslogd_main},
+#endif
+#ifdef BB_LOGGER               //usr/bin
+    {"logger", logger_main},
 #endif
 #ifdef BB_SWAPONOFF            //sbin
     {"swapon", swap_on_off_main},
     {"swapoff", swap_on_off_main},
 #endif
-#ifdef BB_SYNC                 //bin
-    {"sync", sync_main},
+#ifdef BB_TAR                  //bin
+    {"tar", tar_main},
 #endif
 #ifdef BB_TOUCH                        //usr/bin
     {"touch", touch_main},
@@ -174,9 +183,9 @@ static const struct Applet applets[] = {
 #ifdef BB_UPDATE               //sbin
     {"update", update_main},
 #endif
-#ifdef BB_ZCAT                 //bin
-    {"zcat", zcat_main},
-    {"gunzip", zcat_main},
+#ifdef BB_GUNZIP               //bin
+    {"zcat", gunzip_main},
+    {"gunzip", gunzip_main},
 #endif
 #ifdef BB_GZIP                 //bin
     {"gzip", gzip_main},
@@ -220,12 +229,12 @@ int busybox_main(int argc, char **argv)
 
     if (been_there_done_that == 1 || argc < 1) {
        const struct Applet *a = applets;
-       fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n",
+       fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n",
                BB_VER, BB_BT);
-       fprintf(stderr, "\nUsage:\t[function] [arguments]...\n");
-       fprintf(stderr, "\tbusybox [function] [arguments]...\n");
+       fprintf(stderr, "Usage: busybox [function] [arguments]...\n");
+       fprintf(stderr, "   or: [function] [arguments]...\n\n");
        fprintf(stderr,
-               "\n\tMost people will create a symlink to busybox for each\n"
+               "\tMost people will create a symlink to busybox for each\n"
                "\tfunction name, and busybox will act like whatever you invoke it as.\n");
        fprintf(stderr, "\nCurrently defined functions:\n");