Add in ifconfig and route
[oweals/busybox.git] / usage.c
diff --git a/usage.c b/usage.c
index 1686910d59052c352bd17c3a875a3a6c4102438e..bdd4d3d835454daf9ff3d1cebcac1ba8d6d38a39 100644 (file)
--- a/usage.c
+++ b/usage.c
@@ -241,13 +241,23 @@ const char dos2unix_usage[] =
        ;
 #endif
 
+#if defined BB_DPKG
+const char dpkg_usage[] =
+       "udpkg <-i|-r|--unpack|--configure> my.deb\n"
+       "WORK IN PROGRESS, only usefull for debian-installer\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+#endif
+       ;
+#endif
+
 #if defined BB_DPKG_DEB
 const char dpkg_deb_usage[] =
         "dpkg-deb [-cexX] file directory"
 #ifndef BB_FEATURE_TRIVIAL_HELP
        "\n\nPerform actions on debian packages (.debs)\n\n"
        "Options:\n"
-       "\t-c\tList contents of filesystem tree\n"
+       "\t-c\tList contents of filesystem tree (verbose)\n"
+       "\t-l\tList contents of filesystem tree (.list format)\n"
        "\t-e\tExtract control files to directory\n"    
        "\t-x\tExctract packages filesystem tree to directory\n"
        "\t-X\tVerbose extract"
@@ -546,6 +556,26 @@ const char id_usage[] =
        ;
 #endif
 
+#if defined BB_IFCONFIG
+const char ifconfig_usage[] =
+       "ifconfig [-a] [-i] [-v] <interface> [<address>]"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "\n\nconfigure a network interface\n\n"
+       "Options:\n"
+       "  [[-]broadcast [<address>]]  [[-]pointopoint [<address>]]\n"
+       "  [netmask <address>]  [dstaddr <address>]  [tunnel <adress>]\n"
+#ifdef SIOCSKEEPALIVE
+       "  [outfill <NN>] [keepalive <NN>]\n"
+#endif
+       "  [hw ether <address>]  [metric <NN>]  [mtu <NN>]\n"
+       "  [[-]trailers]  [[-]arp]  [[-]allmulti]\n"
+       "  [multicast]  [[-]promisc]\n"
+       "  [mem_start <NN>]  [io_addr <NN>]  [irq <NN>]  [media <type>]\n"
+       "  [up|down] ..."
+#endif
+       ;
+#endif
+
 #if defined BB_INSMOD
 const char insmod_usage[] =
        "insmod [OPTION]... MODULE [symbol=value]..."
@@ -1002,6 +1032,16 @@ const char ping_usage[] =
 #endif
 #endif
 
+#if defined BB_PIVOT_ROOT
+const char pivot_root_usage[] =
+       "pivot_root new_root put_old"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "\n\nMove the current root file system to put_old and make new_root\n"
+       "the new root file system."
+#endif
+       ;
+#endif
+
 #if defined BB_POWEROFF
 const char poweroff_usage[] =
        "poweroff"
@@ -1124,6 +1164,15 @@ const char rmmod_usage[] =
        ;
 #endif
 
+#if defined BB_ROUTE
+const char route_usage[] =
+       "route [{add|del|flush}]"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "\n\nEdit the kernel's routing tables"
+#endif
+       ;
+#endif
+
 #if defined BB_RPMUNPACK
 const char rpmunpack_usage[] =
        "rpmunpack < package.rpm | gunzip | cpio -idmuv"