aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--applets/usage.h29
-rw-r--r--include/usage.h29
-rw-r--r--usage.h29
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 \
diff --git a/usage.h b/usage.h
index db7963043..8ba86d569 100644
--- a/usage.h
+++ b/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 \