Add in ifconfig and route
[oweals/busybox.git] / usage.c
diff --git a/usage.c b/usage.c
index 534958e7d1fadc0685c9df223ef1f30547b4bd1e..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"
@@ -377,7 +387,15 @@ const char find_usage[] =
        "\nEXPRESSION may consist of:\n"
        "\t-follow\t\tDereference symbolic links.\n"
        "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n"
-       "\t-print\t\tprint the full file name followed by a newline to stdout."
+#ifdef BB_FEATURE_FIND_TYPE
+       "\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)\n"
+#endif
+#ifdef BB_FEATURE_FIND_PERM
+       "\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN); or exactly (NNN)\n"
+#endif
+#ifdef BB_FEATURE_FIND_MTIME
+       "\t-mtime TIME\tModified time is greater than (+N); less than (-N); or exactly (N) days\n"
+#endif
 #endif
        ;
 #endif
@@ -538,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]..."
@@ -951,9 +989,13 @@ const char mv_usage[] =
 
 #if defined BB_NC
 const char nc_usage[] =
-       "nc [IP] [port]" 
+       "nc [-p PORT] IP PORT\n"
+       "   or: nc -l -p PORT"
 #ifndef BB_FEATURE_TRIVIAL_HELP
-       "\n\nNetcat opens a pipe to IP:port"
+       "\n\nNetcat opens a pipe to IP:PORT\n"
+       "Options:\n"
+       "\t-l\tListen on the socket.\n"
+       "\t-p PORT\tBind the local port to PORT."
 #endif
        ;
 #endif
@@ -990,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"
@@ -1112,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"
@@ -1487,6 +1548,15 @@ const char uuencode_usage[] =
        ;
 #endif
 
+#if defined BB_WATCHDOG
+const char watchdog_usage[] =
+       "watchdog dev\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "\nPeriodically write to watchdog device \"dev\".\n"
+#endif
+       ;
+#endif
+
 #if defined BB_WC
 const char wc_usage[] =
        "wc [OPTION]... [FILE]..."