diff options
author | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-12 09:58:51 +0000 |
---|---|---|
committer | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-12 09:58:51 +0000 |
commit | 6d0ae3d1c4412e559aa2671eb53669ef34335ba1 (patch) | |
tree | 7e499f0e11f378c67d364330b56849eeaa21d82a | |
parent | 33fd1f21914de480e83d3d6db50106cd6463acae (diff) | |
download | busybox-w32-6d0ae3d1c4412e559aa2671eb53669ef34335ba1.tar.gz busybox-w32-6d0ae3d1c4412e559aa2671eb53669ef34335ba1.tar.bz2 busybox-w32-6d0ae3d1c4412e559aa2671eb53669ef34335ba1.zip |
Adjust ifconfig usage message for selected options and current functionality.
git-svn-id: svn://busybox.net/trunk/busybox@2040 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | applets/usage.h | 29 | ||||
-rw-r--r-- | include/usage.h | 29 | ||||
-rw-r--r-- | usage.h | 29 |
3 files changed, 69 insertions, 18 deletions
diff --git a/applets/usage.h b/applets/usage.h index db7963043..8ba86d569 100644 --- a/applets/usage.h +++ b/applets/usage.h | |||
@@ -401,23 +401,40 @@ | |||
401 | "\t-n\tprint a name instead of a number (with for -ug)\n" \ | 401 | "\t-n\tprint a name instead of a number (with for -ug)\n" \ |
402 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" | 402 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" |
403 | 403 | ||
404 | #ifdef SIOCSKEEPALIVE | 404 | #ifdef BB_FEATURE_IFCONFIG_SLIP |
405 | #define USAGE_SIOCSKEEPALIVE(a) a | 405 | #define USAGE_SIOCSKEEPALIVE(a) a |
406 | #else | 406 | #else |
407 | #define USAGE_SIOCSKEEPALIVE(a) | 407 | #define USAGE_SIOCSKEEPALIVE(a) |
408 | #endif | 408 | #endif |
409 | #ifdef BB_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ | ||
410 | #define USAGE_IFCONFIG_MII(a) a | ||
411 | #else | ||
412 | #define USAGE_IFCONFIG_MII(a) | ||
413 | #endif | ||
414 | #ifdef BB_FEATURE_IFCONFIG_HW | ||
415 | #define USAGE_IFCONFIG_HW(a) a | ||
416 | #else | ||
417 | #define USAGE_IFCONFIG_HW(a) | ||
418 | #endif | ||
419 | #ifdef BB_FEATURE_IFCONFIG_STATUS | ||
420 | #define USAGE_IFCONFIG_OPT_A(a) a | ||
421 | #else | ||
422 | #define USAGE_IFCONFIG_OPT_A(a) | ||
423 | #endif | ||
424 | |||
409 | #define ifconfig_trivial_usage \ | 425 | #define ifconfig_trivial_usage \ |
410 | "[-a] [-i] [-v] <interface> [<address>]" | 426 | USAGE_IFCONFIG_OPT_A("[-a]") " <interface> [<address>]" |
411 | #define ifconfig_full_usage \ | 427 | #define ifconfig_full_usage \ |
412 | "configure a network interface\n\n" \ | 428 | "configure a network interface\n\n" \ |
413 | "Options:\n" \ | 429 | "Options:\n" \ |
414 | "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \ | 430 | "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \ |
415 | "\t[netmask <address>] [dstaddr <address>] [tunnel <adress>]\n" \ | 431 | "\t[netmask <address>] [dstaddr <address>]\n" \ |
416 | USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \ | 432 | USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \ |
417 | "\t[hw ether <address>] [metric <NN>] [mtu <NN>]\n" \ | 433 | "\t" USAGE_IFCONFIG_HW("[hw ether <address>] ") \ |
434 | "[metric <NN>] [mtu <NN>]\n" \ | ||
418 | "\t[[-]trailers] [[-]arp] [[-]allmulti]\n" \ | 435 | "\t[[-]trailers] [[-]arp] [[-]allmulti]\n" \ |
419 | "\t[multicast] [[-]promisc]\n" \ | 436 | "\t[multicast] [[-]promisc] [txqueuelen <NN>] [[-]dynamic]\n" \ |
420 | "\t[mem_start <NN>] [io_addr <NN>] [irq <NN>] [media <type>]\n" \ | 437 | USAGE_IFCONFIG_MII("\t[mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \ |
421 | "\t[up|down] ..." | 438 | "\t[up|down] ..." |
422 | 439 | ||
423 | #define init_trivial_usage \ | 440 | #define init_trivial_usage \ |
diff --git a/include/usage.h b/include/usage.h index db7963043..8ba86d569 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -401,23 +401,40 @@ | |||
401 | "\t-n\tprint a name instead of a number (with for -ug)\n" \ | 401 | "\t-n\tprint a name instead of a number (with for -ug)\n" \ |
402 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" | 402 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" |
403 | 403 | ||
404 | #ifdef SIOCSKEEPALIVE | 404 | #ifdef BB_FEATURE_IFCONFIG_SLIP |
405 | #define USAGE_SIOCSKEEPALIVE(a) a | 405 | #define USAGE_SIOCSKEEPALIVE(a) a |
406 | #else | 406 | #else |
407 | #define USAGE_SIOCSKEEPALIVE(a) | 407 | #define USAGE_SIOCSKEEPALIVE(a) |
408 | #endif | 408 | #endif |
409 | #ifdef BB_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ | ||
410 | #define USAGE_IFCONFIG_MII(a) a | ||
411 | #else | ||
412 | #define USAGE_IFCONFIG_MII(a) | ||
413 | #endif | ||
414 | #ifdef BB_FEATURE_IFCONFIG_HW | ||
415 | #define USAGE_IFCONFIG_HW(a) a | ||
416 | #else | ||
417 | #define USAGE_IFCONFIG_HW(a) | ||
418 | #endif | ||
419 | #ifdef BB_FEATURE_IFCONFIG_STATUS | ||
420 | #define USAGE_IFCONFIG_OPT_A(a) a | ||
421 | #else | ||
422 | #define USAGE_IFCONFIG_OPT_A(a) | ||
423 | #endif | ||
424 | |||
409 | #define ifconfig_trivial_usage \ | 425 | #define ifconfig_trivial_usage \ |
410 | "[-a] [-i] [-v] <interface> [<address>]" | 426 | USAGE_IFCONFIG_OPT_A("[-a]") " <interface> [<address>]" |
411 | #define ifconfig_full_usage \ | 427 | #define ifconfig_full_usage \ |
412 | "configure a network interface\n\n" \ | 428 | "configure a network interface\n\n" \ |
413 | "Options:\n" \ | 429 | "Options:\n" \ |
414 | "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \ | 430 | "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \ |
415 | "\t[netmask <address>] [dstaddr <address>] [tunnel <adress>]\n" \ | 431 | "\t[netmask <address>] [dstaddr <address>]\n" \ |
416 | USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \ | 432 | USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \ |
417 | "\t[hw ether <address>] [metric <NN>] [mtu <NN>]\n" \ | 433 | "\t" USAGE_IFCONFIG_HW("[hw ether <address>] ") \ |
434 | "[metric <NN>] [mtu <NN>]\n" \ | ||
418 | "\t[[-]trailers] [[-]arp] [[-]allmulti]\n" \ | 435 | "\t[[-]trailers] [[-]arp] [[-]allmulti]\n" \ |
419 | "\t[multicast] [[-]promisc]\n" \ | 436 | "\t[multicast] [[-]promisc] [txqueuelen <NN>] [[-]dynamic]\n" \ |
420 | "\t[mem_start <NN>] [io_addr <NN>] [irq <NN>] [media <type>]\n" \ | 437 | USAGE_IFCONFIG_MII("\t[mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \ |
421 | "\t[up|down] ..." | 438 | "\t[up|down] ..." |
422 | 439 | ||
423 | #define init_trivial_usage \ | 440 | #define init_trivial_usage \ |
@@ -401,23 +401,40 @@ | |||
401 | "\t-n\tprint a name instead of a number (with for -ug)\n" \ | 401 | "\t-n\tprint a name instead of a number (with for -ug)\n" \ |
402 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" | 402 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" |
403 | 403 | ||
404 | #ifdef SIOCSKEEPALIVE | 404 | #ifdef BB_FEATURE_IFCONFIG_SLIP |
405 | #define USAGE_SIOCSKEEPALIVE(a) a | 405 | #define USAGE_SIOCSKEEPALIVE(a) a |
406 | #else | 406 | #else |
407 | #define USAGE_SIOCSKEEPALIVE(a) | 407 | #define USAGE_SIOCSKEEPALIVE(a) |
408 | #endif | 408 | #endif |
409 | #ifdef BB_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ | ||
410 | #define USAGE_IFCONFIG_MII(a) a | ||
411 | #else | ||
412 | #define USAGE_IFCONFIG_MII(a) | ||
413 | #endif | ||
414 | #ifdef BB_FEATURE_IFCONFIG_HW | ||
415 | #define USAGE_IFCONFIG_HW(a) a | ||
416 | #else | ||
417 | #define USAGE_IFCONFIG_HW(a) | ||
418 | #endif | ||
419 | #ifdef BB_FEATURE_IFCONFIG_STATUS | ||
420 | #define USAGE_IFCONFIG_OPT_A(a) a | ||
421 | #else | ||
422 | #define USAGE_IFCONFIG_OPT_A(a) | ||
423 | #endif | ||
424 | |||
409 | #define ifconfig_trivial_usage \ | 425 | #define ifconfig_trivial_usage \ |
410 | "[-a] [-i] [-v] <interface> [<address>]" | 426 | USAGE_IFCONFIG_OPT_A("[-a]") " <interface> [<address>]" |
411 | #define ifconfig_full_usage \ | 427 | #define ifconfig_full_usage \ |
412 | "configure a network interface\n\n" \ | 428 | "configure a network interface\n\n" \ |
413 | "Options:\n" \ | 429 | "Options:\n" \ |
414 | "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \ | 430 | "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \ |
415 | "\t[netmask <address>] [dstaddr <address>] [tunnel <adress>]\n" \ | 431 | "\t[netmask <address>] [dstaddr <address>]\n" \ |
416 | USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \ | 432 | USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \ |
417 | "\t[hw ether <address>] [metric <NN>] [mtu <NN>]\n" \ | 433 | "\t" USAGE_IFCONFIG_HW("[hw ether <address>] ") \ |
434 | "[metric <NN>] [mtu <NN>]\n" \ | ||
418 | "\t[[-]trailers] [[-]arp] [[-]allmulti]\n" \ | 435 | "\t[[-]trailers] [[-]arp] [[-]allmulti]\n" \ |
419 | "\t[multicast] [[-]promisc]\n" \ | 436 | "\t[multicast] [[-]promisc] [txqueuelen <NN>] [[-]dynamic]\n" \ |
420 | "\t[mem_start <NN>] [io_addr <NN>] [irq <NN>] [media <type>]\n" \ | 437 | USAGE_IFCONFIG_MII("\t[mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \ |
421 | "\t[up|down] ..." | 438 | "\t[up|down] ..." |
422 | 439 | ||
423 | #define init_trivial_usage \ | 440 | #define init_trivial_usage \ |