diff options
author | Pere Orga <gotrunks@gmail.com> | 2011-04-11 03:29:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-11 03:29:49 +0200 |
commit | 5bc8c005a8e15c43285bc595a8d404de67a482ac (patch) | |
tree | 98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /networking/ifenslave.c | |
parent | 73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff) | |
download | busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.bz2 busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip |
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ifenslave.c')
-rw-r--r-- | networking/ifenslave.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/networking/ifenslave.c b/networking/ifenslave.c index 0b3ebf72a..208623e7d 100644 --- a/networking/ifenslave.c +++ b/networking/ifenslave.c | |||
@@ -98,6 +98,33 @@ | |||
98 | * set version to 1.1.0 | 98 | * set version to 1.1.0 |
99 | */ | 99 | */ |
100 | 100 | ||
101 | //usage:#define ifenslave_trivial_usage | ||
102 | //usage: "[-cdf] MASTER_IFACE SLAVE_IFACE..." | ||
103 | //usage:#define ifenslave_full_usage "\n\n" | ||
104 | //usage: "Configure network interfaces for parallel routing\n" | ||
105 | //usage: "\nOptions:" | ||
106 | //usage: "\n -c,--change-active Change active slave" | ||
107 | //usage: "\n -d,--detach Remove slave interface from bonding device" | ||
108 | //usage: "\n -f,--force Force, even if interface is not Ethernet" | ||
109 | /* //usage: "\n -r,--receive-slave Create a receive-only slave" */ | ||
110 | //usage: | ||
111 | //usage:#define ifenslave_example_usage | ||
112 | //usage: "To create a bond device, simply follow these three steps:\n" | ||
113 | //usage: "- ensure that the required drivers are properly loaded:\n" | ||
114 | //usage: " # modprobe bonding ; modprobe <3c59x|eepro100|pcnet32|tulip|...>\n" | ||
115 | //usage: "- assign an IP address to the bond device:\n" | ||
116 | //usage: " # ifconfig bond0 <addr> netmask <mask> broadcast <bcast>\n" | ||
117 | //usage: "- attach all the interfaces you need to the bond device:\n" | ||
118 | //usage: " # ifenslave bond0 eth0 eth1 eth2\n" | ||
119 | //usage: " If bond0 didn't have a MAC address, it will take eth0's. Then, all\n" | ||
120 | //usage: " interfaces attached AFTER this assignment will get the same MAC addr.\n\n" | ||
121 | //usage: " To detach a dead interface without setting the bond device down:\n" | ||
122 | //usage: " # ifenslave -d bond0 eth1\n\n" | ||
123 | //usage: " To set the bond device down and automatically release all the slaves:\n" | ||
124 | //usage: " # ifconfig bond0 down\n\n" | ||
125 | //usage: " To change active slave:\n" | ||
126 | //usage: " # ifenslave -c bond0 eth0\n" | ||
127 | |||
101 | #include "libbb.h" | 128 | #include "libbb.h" |
102 | 129 | ||
103 | /* #include <net/if.h> - no. linux/if_bonding.h pulls in linux/if.h */ | 130 | /* #include <net/if.h> - no. linux/if_bonding.h pulls in linux/if.h */ |